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:
Chelsea Shaw
2021-07-20 11:28:44 -05:00
committed by GitHub
parent 276b08d624
commit 6d0d241190
13 changed files with 116 additions and 61 deletions

View File

@@ -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