7bf3476be9
* remove unused response-wrapping route and controller
* move to using the internal mounts endpoint for the secrets list and individual engine lookup
* remove errors about sys/mounts access because we don't need it anymore 🎉
* use modelFor instead of peekRecord for looking up the secret-engine
* remove test because we removed that error page - in the worst case scenario, a user will only have access to cubbyhole, but will see that in the secrets engines list
* make the dev CSP the same as the Go CSP
* update serializer to handle SSH responses as well as new engine fetches
* back out some changes to ttl-picker and field test object so that tests pass
* get rid of trailing space in the secret engine link
* add secrets-engine adapater tests for new query behavior
41 lines
1.1 KiB
Handlebars
41 lines
1.1 KiB
Handlebars
{{#if (eq model.httpStatus 404)}}
|
|
{{not-found model=model}}
|
|
{{else}}
|
|
<header class="page-header">
|
|
<div class="level">
|
|
<div class="level-left">
|
|
<h1 class="title is-3 has-text-grey">
|
|
{{#if (eq model.httpStatus 403)}}
|
|
Not authorized
|
|
{{else}}
|
|
Error
|
|
{{/if}}
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="box is-sideless has-background-white-bis has-text-grey has-text-centered">
|
|
{{#if (and
|
|
(eq model.httpStatus 403)
|
|
(eq model.policyPath 'sys/capabilities-self')
|
|
)
|
|
}}
|
|
<p>
|
|
Your auth token does not have access to <code>{{model.policyPath}}</code>. Vault Enterprise uses this endpoint to determine what actions are allowed in the interface.
|
|
</p>
|
|
<p>
|
|
Make sure the policy for the path <code>{{model.policyPath}}</code> includes <code>capabilities = ['update']</code>.
|
|
</p>
|
|
{{else}}
|
|
{{#if model.message}}
|
|
<p>{{model.message}}</p>
|
|
{{/if}}
|
|
{{#each model.errors as |error|}}
|
|
<p>
|
|
{{error}}
|
|
</p>
|
|
{{/each}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|