Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: fix start up policy loading race condition on perf standbys #17801

Merged
merged 3 commits into from Nov 3, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions vault/policy_store.go
Expand Up @@ -264,6 +264,11 @@ func (c *Core) setupPolicyStore(ctx context.Context) error {
return nil
}

if c.perfStandby {
// Policies will sync from the active
return nil
}

// Ensure that the default policy exists, and if not, create it
if err := c.policyStore.loadACLPolicy(ctx, defaultPolicyName, defaultPolicy); err != nil {
return err
Expand Down