mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-21 09:48:01 -04:00
Ensure only primary stores the case sensitivity state (#7820)
* Ensure only primary stores the case sensitivity state * Update the check
This commit is contained in:
parent
583be49d5e
commit
c27a1c1840
1 changed files with 5 additions and 0 deletions
|
|
@ -112,6 +112,11 @@ func (i *IdentityStore) paths() []*framework.Path {
|
|||
}
|
||||
|
||||
func (i *IdentityStore) initialize(ctx context.Context, req *logical.InitializationRequest) error {
|
||||
// Only primary should write the status
|
||||
if i.System().ReplicationState().HasState(consts.ReplicationPerformanceSecondary | consts.ReplicationPerformanceStandby | consts.ReplicationDRSecondary) {
|
||||
return nil
|
||||
}
|
||||
|
||||
entry, err := logical.StorageEntryJSON(caseSensitivityKey, &casesensitivity{
|
||||
DisableLowerCasedNames: i.disableLowerCasedNames,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue