Always forward entity merge requests from perfStandby (#24325)

Update requests to /sys/identity/entity/merge perform merges on perfStandby nodes in memory and skip the persist call.

This commit changes the behavior for the merge endpoint, forcing it to be forwarded from the standby to the active node. This change is specifically scoped to manual merges, as automatic merges are not isolated to a specific endpoint and require careful consideration for all callers.
This commit is contained in:
Mike Palmiotto
2023-12-01 09:47:32 -05:00
committed by GitHub
parent 06b9325bb9
commit 4a7bee5a02
2 changed files with 6 additions and 1 deletions

4
changelog/24325.txt Normal file
View File

@@ -0,0 +1,4 @@
```release-note:change
identity (enterprise): POST requests to the `/identity/entity/merge` endpoint
are now always forwarded from standbys to the active node.
```

View File

@@ -231,7 +231,8 @@ func entityPaths(i *IdentityStore) []*framework.Path {
},
Operations: map[logical.Operation]framework.OperationHandler{
logical.UpdateOperation: &framework.PathOperation{
Callback: i.pathEntityMergeID(),
Callback: i.pathEntityMergeID(),
ForwardPerformanceStandby: true,
},
},