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: Mount PKI options + allowed_managed_keys #19791

Merged
merged 14 commits into from
Apr 7, 2023

Conversation

hashishaw
Copy link
Collaborator

Customizes the secret engine mount settings for PKI type. Includes TTL's moved out of the toggle, and max TTL automatically gets a value of ~10years.

This PR also adds the allowed_managed_keys param to this and all other secret engine types.

Screenshot 2023-03-27 at 4 35 55 PM

@hashishaw hashishaw added the ui label Mar 28, 2023
@hashishaw hashishaw added this to the 1.14 milestone Mar 28, 2023
@hashishaw hashishaw marked this pull request as ready for review March 28, 2023 17:17
@hashishaw hashishaw requested a review from a team as a code owner March 29, 2023 18:50
@hashishaw hashishaw enabled auto-merge (squash) April 7, 2023 20:07
@@ -56,6 +56,17 @@ export default class MountBackendForm extends Component {
}
}

typeChangeSideEffect(type) {
if (!this.args.mountType === 'secret') return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we checking to see if there's no mountType or this.args.mountType !== 'secret'? If we're checking if there's no mountType, it won't ever equal 'secret'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good question! Here I essentially want to continue with the side effects only if mountType is secret (auth is the other possibility). If it makes more sense to read as below, I'm happy to update it

if (this.args.mountType === 'secret') {
  // do stuff
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it - that makes sense to me! I was reading it like !this.args.mountType === 'secrets' but it's really just checking (!(this.args.mountType === 'secrets')). I think we can keep it as it is! Thanks for clarifying 🙃

@hashishaw hashishaw merged commit 05c1fb0 into main Apr 7, 2023
@hashishaw hashishaw deleted the ui/VAULT-6510/mount-pki-engine branch April 7, 2023 21:16
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.

None yet

2 participants