diff --git a/vault/identity_store.go b/vault/identity_store.go index d04e9f187..8c1bc3173 100644 --- a/vault/identity_store.go +++ b/vault/identity_store.go @@ -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, })