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:
Michael Dempsey 2023-02-09 10:03:53 -08:00 committed by GitHub
parent b24e3cc6b0
commit 1582b743aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -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",
},

3
changelog/17894.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: allow selection of "default" for ssh algorithm_signer in web interface
```

View File

@ -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 () {