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

AWS upgrade role entries #7025

Merged
merged 58 commits into from
Jul 5, 2019
Merged

AWS upgrade role entries #7025

merged 58 commits into from
Jul 5, 2019

Conversation

mjarmy
Copy link
Contributor

@mjarmy mjarmy commented Jun 30, 2019

AWS Roles are now upgraded and saved to the latest version just after the AWS
credential plugin is mounted. If the upgrade has already been run, it is not
run again.

The upgrade only happens if either:

  • The vault server is a local mount.
  • The vault server is not a performance replicated standby cluster.

This change is implemented by adding an Initialize() method to
sdk.logical.Backend, that any sdk.framework.Backend plugin can choose to
implement, to allow it to handle any initialization tasks that need to be
performed.

Initialize() is called from four different places:

  • after mounting secrets backends during post-unseal,
  • after mounting credentials backends during post-unseal,
  • after explicitly mounting a secrets backend
  • after explicitly mounting a credentials backend

@mjarmy mjarmy changed the title [DRAFT] Aws upgrade role entries AWS upgrade role entries Jul 2, 2019
@mjarmy mjarmy marked this pull request as ready for review July 2, 2019 12:50
@mjarmy mjarmy requested a review from jefferai July 2, 2019 13:32
@mjarmy
Copy link
Contributor Author

mjarmy commented Jul 4, 2019

I've added an end-to-end test that verifies that the initialization happens when a cluster is created, and when the cluster is sealed and then unsealed.

briankassouf pushed a commit that referenced this pull request Jul 5, 2019
@briankassouf briankassouf merged commit c48159e into master Jul 5, 2019
@briankassouf briankassouf deleted the aws-upgrade-role-entries-v2 branch July 5, 2019 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants