mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
UI: k8s auth openapi update (#25218)
This commit is contained in:
@@ -26,6 +26,7 @@ export default AuthConfig.extend({
|
||||
helpText:
|
||||
'A service account JWT used to access the TokenReview API to validate other JWTs during login. If not set the JWT used for login will be used to access the API',
|
||||
}),
|
||||
useAnnotationsAsAliasMetadata: attr('boolean'),
|
||||
|
||||
pemKeys: attr({
|
||||
editType: 'stringArray',
|
||||
@@ -37,7 +38,7 @@ export default AuthConfig.extend({
|
||||
default: ['kubernetesHost', 'kubernetesCaCert'],
|
||||
},
|
||||
{
|
||||
'Kubernetes Options': ['tokenReviewerJwt', 'pemKeys'],
|
||||
'Kubernetes Options': ['tokenReviewerJwt', 'pemKeys', 'useAnnotationsAsAliasMetadata'],
|
||||
},
|
||||
];
|
||||
if (this.newFields) {
|
||||
|
||||
@@ -605,6 +605,14 @@ const kubernetes = {
|
||||
label: 'Token Reviewer JWT',
|
||||
type: 'string',
|
||||
},
|
||||
useAnnotationsAsAliasMetadata: {
|
||||
editType: 'boolean',
|
||||
fieldGroup: 'default',
|
||||
helpText:
|
||||
'Use annotations from the client token\'s associated service account as alias metadata for the Vault entity. Only annotations with the prefix "vault.hashicorp.com/alias-metadata-" will be used. Note that Vault will need permission to read service accounts from the Kubernetes API.',
|
||||
label: 'Use annotations of JWT service account as alias metadata',
|
||||
type: 'boolean',
|
||||
},
|
||||
},
|
||||
role: {
|
||||
name: {
|
||||
|
||||
Reference in New Issue
Block a user