-
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
Add default to allowed values for algorithm_signer #17894
Conversation
a2331d8
to
afb37d9
Compare
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.
Our design team got back to me and requested that this be a dropdown select instead!
in role-ssh.js
could you add possibleValues to the attribute
@cipherboy - if you want to confirm I got these right?
algorithmSigner: attr('string', {
helpText: 'When supplied, this value specifies a signing algorithm for the key',
possibleValues: ['', 'default', 'ssh-rsa', 'rsa-sha2-256', 'rsa-sha2-512']
}),
@hellobontempo -- the last one should have a |
whoops - typo! thanks :) |
ui/app/models/role-ssh.js
Outdated
@@ -120,6 +120,7 @@ export default Model.extend({ | |||
}), | |||
algorithmSigner: attr('string', { | |||
helpText: 'When supplied, this value specifies a signing algorithm for the key', | |||
possibleValues: ['', 'default', 'ssh-rsa', 'rsa-sha2-256', 'rsa-sha2-512'], |
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.
Thanks for the swift change!
Reviewing #14006 - since an empty string updates to default
can we remove that from the array of possibleValues
here? My apologies for the rigamarole, I noticed this while testing. It's slightly awkward UX to select nothing from the dropdown and then after saving have it magically change to "Signing Algorithm: default"
form
config
@cipherboy - not sure if you have an argument to keep it as a dropdown option? If so, then we can remove line 123 all together if the options are going to be the same as the backend as the dropdown complies automagically when
AllowedValues
exist
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.
@hellobontempo that actually makes a lot of sense, made that change.
a249c0f
to
0a5c083
Compare
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.
thank you!
@cipherboy Do you know how to get the Vercel status check to run here? |
@hellobontempo I don't think Vercel is holding this one up, I think |
Oh, I didn't even see that one. Can someone in your channel admin merge? Or should I post elsewhere? |
default
to allowed values for algorithm_signer to ssh plugin API introduced in Expose ssh algorithm_signer in web interface (#10114) #10299