mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
UI/database cg read role (#12111)
* Add type param to secret show, handle CG in database role show * If roleType is passed to credential, only make one creds API call * Clean up db role adapter and serializer * url param roleType passed to credentials call * Role list capabilities check for static and dynamic separately * Add changelog * Consistent adapter response for single or double call * Prioritize dynamic response if control group on role/creds
This commit is contained in:
@@ -54,8 +54,10 @@ export default class DatabaseRoleEdit extends Component {
|
||||
}
|
||||
|
||||
@action
|
||||
generateCreds(roleId) {
|
||||
this.router.transitionTo('vault.cluster.secrets.backend.credentials', roleId);
|
||||
generateCreds(roleId, roleType = '') {
|
||||
this.router.transitionTo('vault.cluster.secrets.backend.credentials', roleId, {
|
||||
queryParams: { roleType },
|
||||
});
|
||||
}
|
||||
|
||||
@action
|
||||
|
||||
Reference in New Issue
Block a user