diff --git a/changelog/20964.txt b/changelog/20964.txt new file mode 100644 index 000000000..8bd9563c1 --- /dev/null +++ b/changelog/20964.txt @@ -0,0 +1,3 @@ +```release-note:bug +identity: Fixes duplicate groups creation with the same name but unique IDs. +``` \ No newline at end of file diff --git a/vault/identity_store_groups.go b/vault/identity_store_groups.go index 3ba22abeb..5355a5d13 100644 --- a/vault/identity_store_groups.go +++ b/vault/identity_store_groups.go @@ -69,8 +69,11 @@ func groupPaths(i *IdentityStore) []*framework.Path { }, Fields: groupPathFields(), - Callbacks: map[logical.Operation]framework.OperationFunc{ - logical.UpdateOperation: i.pathGroupRegister(), + Operations: map[logical.Operation]framework.OperationHandler{ + logical.UpdateOperation: &framework.PathOperation{ + Callback: i.pathGroupRegister(), + ForwardPerformanceStandby: true, + }, }, HelpSynopsis: strings.TrimSpace(groupHelp["register"][0]),