diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b410b084..bb7ab4083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/ui/app/routes/vault/cluster/secrets/backend/credentials.js b/ui/app/routes/vault/cluster/secrets/backend/credentials.js index ecbd745b0..20219f018 100644 --- a/ui/app/routes/vault/cluster/secrets/backend/credentials.js +++ b/ui/app/routes/vault/cluster/secrets/backend/credentials.js @@ -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) {