-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conversation
@@ -56,6 +56,17 @@ export default class MountBackendForm extends Component { | |||
} | |||
} | |||
|
|||
typeChangeSideEffect(type) { | |||
if (!this.args.mountType === 'secret') return; |
There was a problem hiding this comment.
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'?
There was a problem hiding this comment.
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
}
There was a problem hiding this comment.
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 🙃
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.