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

Fix DB static role credential rotation replication issue #8105

Merged
merged 3 commits into from
Jan 10, 2020

Conversation

michelvocks
Copy link
Contributor

@michelvocks michelvocks commented Jan 7, 2020

This PR fixes a bug that prevents Vault performance secondaries and performance standby's to successfully forward a manual static role credential rotation request e.g. vault write -f database/rotate-role/education.

To prevent the client to run in a timeout:

if r.LastRemoteWAL() > 0 && !vault.WaitUntilWALShipped(rawReq.Context(), core, r.LastRemoteWAL()) {

And the manual static role credential rotation method does not store anything in the backend (which usually triggers a guard check), we have to store a canary to make sure that a guard check is triggered.

@briankassouf
Copy link
Contributor

Maybe we should get this merged so it can be used here and in your other PR? #7175

@kalafut
Copy link
Contributor

kalafut commented Jan 7, 2020

#7175 is now merged.

@michelvocks michelvocks force-pushed the fix_db_static_rotate_replication_issue branch from dc7f79b to 8511489 Compare January 8, 2020 10:30
@michelvocks
Copy link
Contributor Author

Thanks, @kalafut & @briankassouf! Done

@briankassouf briankassouf modified the milestones: 1.4, 1.3.2 Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants