mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
* Expose ssh algorithm_signer in web interface (#10114) * Adds allowed values for algorithm_signer to ssh plugin API * Adds algorithm_signer as field in UI * Add changelog entry Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> Co-authored-by: Alexander Scheel <alex.scheel@hashicorp.com>
This commit is contained in:
@@ -380,6 +380,7 @@ func pathRoles(b *backend) *framework.Path {
|
|||||||
When supplied, this value specifies a signing algorithm for the key. Possible values:
|
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.
|
ssh-rsa, rsa-sha2-256, rsa-sha2-512, default, or the empty string.
|
||||||
`,
|
`,
|
||||||
|
AllowedValues: []interface{}{"", ssh.SigAlgoRSA, ssh.SigAlgoRSASHA2256, ssh.SigAlgoRSASHA2512},
|
||||||
DisplayAttrs: &framework.DisplayAttributes{
|
DisplayAttrs: &framework.DisplayAttributes{
|
||||||
Name: "Signing Algorithm",
|
Name: "Signing Algorithm",
|
||||||
},
|
},
|
||||||
|
3
changelog/10299.txt
Normal file
3
changelog/10299.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
ui: Add algorithm-signer as a SSH Secrets Engine UI field
|
||||||
|
```
|
@@ -37,6 +37,7 @@ const CA_FIELDS = [
|
|||||||
'allowUserKeyIds',
|
'allowUserKeyIds',
|
||||||
'keyIdFormat',
|
'keyIdFormat',
|
||||||
'notBeforeDuration',
|
'notBeforeDuration',
|
||||||
|
'algorithmSigner',
|
||||||
];
|
];
|
||||||
|
|
||||||
export default Model.extend({
|
export default Model.extend({
|
||||||
@@ -117,6 +118,9 @@ export default Model.extend({
|
|||||||
keyIdFormat: attr('string', {
|
keyIdFormat: attr('string', {
|
||||||
helpText: 'When supplied, this value specifies a custom format for the key id of a signed certificate',
|
helpText: 'When supplied, this value specifies a custom format for the key id of a signed certificate',
|
||||||
}),
|
}),
|
||||||
|
algorithmSigner: attr('string', {
|
||||||
|
helpText: 'When supplied, this value specifies a signing algorithm for the key',
|
||||||
|
}),
|
||||||
|
|
||||||
showFields: computed('keyType', function () {
|
showFields: computed('keyType', function () {
|
||||||
const keyType = this.keyType;
|
const keyType = this.keyType;
|
||||||
|
Reference in New Issue
Block a user