policy: allow tags to own tags (#2930)

This commit is contained in:
Kristoffer Dalby 2025-12-06 10:23:35 +01:00 committed by GitHub
parent eb788cd007
commit 15c84b34e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 404 additions and 32 deletions

View file

@ -3234,7 +3234,7 @@ func TestIssue2830_ExistingNodeReregistersWithExpiredKey(t *testing.T) {
// Create a valid key (will expire it later)
expiry := time.Now().Add(1 * time.Hour)
pak, err := app.state.CreatePreAuthKey(types.UserID(user.ID), false, false, &expiry, nil)
pak, err := app.state.CreatePreAuthKey(user.TypedID(), false, false, &expiry, nil)
require.NoError(t, err)
machineKey := key.NewMachine()