mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
UI: k8s auth openapi update (#25218)
This commit is contained in:
@@ -26,6 +26,7 @@ export default AuthConfig.extend({
|
|||||||
helpText:
|
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',
|
'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({
|
pemKeys: attr({
|
||||||
editType: 'stringArray',
|
editType: 'stringArray',
|
||||||
@@ -37,7 +38,7 @@ export default AuthConfig.extend({
|
|||||||
default: ['kubernetesHost', 'kubernetesCaCert'],
|
default: ['kubernetesHost', 'kubernetesCaCert'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'Kubernetes Options': ['tokenReviewerJwt', 'pemKeys'],
|
'Kubernetes Options': ['tokenReviewerJwt', 'pemKeys', 'useAnnotationsAsAliasMetadata'],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
if (this.newFields) {
|
if (this.newFields) {
|
||||||
|
|||||||
@@ -605,6 +605,14 @@ const kubernetes = {
|
|||||||
label: 'Token Reviewer JWT',
|
label: 'Token Reviewer JWT',
|
||||||
type: 'string',
|
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: {
|
role: {
|
||||||
name: {
|
name: {
|
||||||
|
|||||||
Reference in New Issue
Block a user