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

UI: add Database static role password rotation #14268

Merged
merged 9 commits into from
Feb 25, 2022

Conversation

hashishaw
Copy link
Contributor

@hashishaw hashishaw commented Feb 24, 2022

Building off @berciq's work on #11941, this PR adds the ability to rotate Database secret engine static credentials in the UI from both the role list page and role show page.

Options on static type roles now have rotate credentials option
list-static

Options on dynamic type roles do not have the option
list-dynamic

New toolbar options on static role
Screen Shot 2022-02-24 at 4 48 34 PM

@hashishaw hashishaw added this to the 1.10 milestone Feb 24, 2022
@vercel vercel bot temporarily deployed to Preview – vault February 24, 2022 22:53 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook February 24, 2022 22:55 Inactive
@hashishaw hashishaw linked an issue Feb 24, 2022 that may be closed by this pull request
@@ -130,4 +130,6 @@ export default Model.extend({
canGetCredentials: alias('staticCredentialPath.canRead'),
databasePath: lazyCapabilities(apiPath`${'backend'}/config/${'database[0]'}`, 'backend', 'database'),
canUpdateDb: alias('databasePath.canUpdate'),
rotateRolePath: lazyCapabilities(apiPath`${'backend'}/rotate-role/${'id'}`, 'backend', 'id'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but wanted to see if design had a chance to review. I suspect it's totally fine, but thought it worth pointing out.

@hashishaw
Copy link
Contributor Author

Looks good to me, but wanted to see if design had a chance to review. I suspect it's totally fine, but thought it worth pointing out.

Good question, I ran it by Ivana and she made a note about the toolbar buttons not quite aligning, but we'll handle that in a separate PR since it's a far-reaching change

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.

Allow for manual database password rotation in the Web UI
3 participants