Merge branch 'master-oss' into identity-upgrade-nil-check
This commit is contained in:
commit
06e4acece7
|
@ -75,6 +75,9 @@ BUG FIXES:
|
|||
* ui: Fixed an issue where policies with commas would not render in the
|
||||
interface properly [GH-4398]
|
||||
* ui: Corrected the saving of mount tune ttls for auth methods [GH-4431]
|
||||
* ui: Credentials generation no longer checks capabilities before making
|
||||
api calls. This should fix needing "update" capabilites to read IAM
|
||||
credentials in the AWS secrets engine [GH-4446]
|
||||
|
||||
## 0.10.0 (April 10th, 2018)
|
||||
|
||||
|
|
|
@ -10,14 +10,6 @@ export default Ember.Route.extend(UnloadModel, {
|
|||
return this.modelFor('vault.cluster.secrets.backend');
|
||||
},
|
||||
|
||||
pathQuery(role, backend) {
|
||||
const type = this.backendModel().get('type');
|
||||
if (type === 'pki') {
|
||||
return `${backend}/issue/${role}`;
|
||||
}
|
||||
return `${backend}/creds/${role}`;
|
||||
},
|
||||
|
||||
model(params) {
|
||||
const role = params.secret;
|
||||
const backendModel = this.backendModel();
|
||||
|
@ -26,18 +18,11 @@ export default Ember.Route.extend(UnloadModel, {
|
|||
if (!SUPPORTED_DYNAMIC_BACKENDS.includes(backendModel.get('type'))) {
|
||||
return this.transitionTo('vault.cluster.secrets.backend.list-root', backend);
|
||||
}
|
||||
return this.store
|
||||
.queryRecord('capabilities', { id: this.pathQuery(role, backend) })
|
||||
.then(capabilities => {
|
||||
if (!capabilities.get('canUpdate')) {
|
||||
return this.transitionTo('vault.cluster.secrets.backend.list-root', backend);
|
||||
}
|
||||
return Ember.RSVP.resolve({
|
||||
backend,
|
||||
id: role,
|
||||
name: role,
|
||||
});
|
||||
});
|
||||
return Ember.RSVP.resolve({
|
||||
backend,
|
||||
id: role,
|
||||
name: role,
|
||||
});
|
||||
},
|
||||
|
||||
setupController(controller) {
|
||||
|
|
Loading…
Reference in New Issue