backport of commit 8931e4790b46df81cca615865e1f33a127276e1d (#20972)

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-06-08 14:59:55 -04:00 committed by GitHub
parent e4867f0e7d
commit 03a8d1268a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

3
changelog/20964.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
identity: Fixes duplicate groups creation with the same name but unique IDs.
```

View File

@ -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]),