Add default to allowed values for algorithm_signer (#17894)
* Add default to allowed values for algorithm_signer * Add possible values for algorithm signer in ui
This commit is contained in:
parent
b24e3cc6b0
commit
1582b743aa
|
@ -333,7 +333,7 @@ func pathRoles(b *backend) *framework.Path {
|
|||
When supplied, this value specifies a signing algorithm for the key. Possible values:
|
||||
ssh-rsa, rsa-sha2-256, rsa-sha2-512, default, or the empty string.
|
||||
`,
|
||||
AllowedValues: []interface{}{"", ssh.SigAlgoRSA, ssh.SigAlgoRSASHA2256, ssh.SigAlgoRSASHA2512},
|
||||
AllowedValues: []interface{}{"", DefaultAlgorithmSigner, ssh.SigAlgoRSA, ssh.SigAlgoRSASHA2256, ssh.SigAlgoRSASHA2512},
|
||||
DisplayAttrs: &framework.DisplayAttributes{
|
||||
Name: "Signing Algorithm",
|
||||
},
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ui: allow selection of "default" for ssh algorithm_signer in web interface
|
||||
```
|
|
@ -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'],
|
||||
}),
|
||||
|
||||
showFields: computed('keyType', function () {
|
||||
|
|
Loading…
Reference in New Issue