2018-08-16 17:48:24 +00:00
|
|
|
{{#with (options-for-backend model.engineType) as |options|}}
|
2018-06-12 21:06:37 +00:00
|
|
|
<PageHeader as |p|>
|
|
|
|
<p.top>
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#key-value-header
|
|
|
|
baseKey=baseKey
|
|
|
|
path="vault.cluster.secrets.backend.list"
|
|
|
|
root=backendCrumb
|
|
|
|
}}
|
|
|
|
<li>
|
|
|
|
<span class="sep">/</span>
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#link-to "vault.cluster.secrets"}}
|
2018-05-23 16:25:52 +00:00
|
|
|
secrets
|
2018-08-16 17:48:24 +00:00
|
|
|
{{/link-to}}
|
2018-05-23 16:25:52 +00:00
|
|
|
</li>
|
|
|
|
{{/key-value-header}}
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.top>
|
|
|
|
<p.levelLeft>
|
2018-05-23 16:25:52 +00:00
|
|
|
<h1 class="title is-3">
|
2018-11-05 23:12:51 +00:00
|
|
|
{{i-con glyph=(or (concat "enable/" model.engineType) "enable/secrets") size=24 class="has-text-grey-light"}}
|
2018-05-23 16:25:52 +00:00
|
|
|
{{model.id}}
|
|
|
|
{{#if (eq model.options.version 2)}}
|
2018-10-21 19:19:34 +00:00
|
|
|
<span class="tag">
|
2018-05-23 16:25:52 +00:00
|
|
|
Version 2
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.levelLeft>
|
|
|
|
<p.levelRight>
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#unless (or isCertTab isConfigure)}}
|
|
|
|
<div class="control">
|
|
|
|
{{#secret-link
|
|
|
|
mode="create"
|
2018-10-06 03:04:48 +00:00
|
|
|
secret=''
|
2018-11-02 17:03:46 +00:00
|
|
|
queryParams=(query-params initialKey=(or filter baseKey.id))
|
2018-05-23 16:25:52 +00:00
|
|
|
class="button has-icon-right is-ghost is-compact"
|
|
|
|
data-test-secret-create=true
|
|
|
|
}}
|
|
|
|
{{options.create}}
|
|
|
|
{{i-con glyph="chevron-right" size=11}}
|
|
|
|
{{/secret-link}}
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
{{#if (or (eq model.type "aws") (eq model.type "ssh") (eq model.type "pki"))}}
|
|
|
|
<div class="control">
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#link-to "vault.cluster.settings.configure-secret-backend" model.id
|
2018-05-23 16:25:52 +00:00
|
|
|
class="button has-icon-right is-ghost is-compact"
|
|
|
|
data-test-secret-backend-configure=true
|
2018-08-16 17:48:24 +00:00
|
|
|
}}
|
|
|
|
Configure {{i-con glyph="chevron-right" size=11}}
|
|
|
|
{{/link-to}}
|
2018-05-23 16:25:52 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.levelRight>
|
|
|
|
</PageHeader>
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#if options.tabs}}
|
|
|
|
<div class="box is-bottomless is-marginless is-fullwidth is-paddingless">
|
2018-10-21 19:19:34 +00:00
|
|
|
<nav class="tabs">
|
2018-05-23 16:25:52 +00:00
|
|
|
<ul>
|
|
|
|
{{#each options.tabs as |oTab|}}
|
|
|
|
{{#if oTab.tab}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.list-root' (query-params tab=oTab.tab) tagName="li" activeClass="is-active" data-test-tab=oTab.label}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.list-root' (query-params tab=oTab.tab)}}
|
|
|
|
{{oTab.label}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{else}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.list-root' (query-params tab='') tagName="li" activeClass="is-active" data-test-tab=oTab.label}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.list-root' (query-params tab='')}}
|
|
|
|
{{oTab.label}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.configuration' tagName="li" activeClass="is-active"}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.configuration' }}
|
|
|
|
Configuration
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{!-- if there are no tabs in the options, we'll hardcode them here --}}
|
|
|
|
<div class="box is-bottomless is-marginless is-fullwidth is-paddingless">
|
2018-10-21 19:19:34 +00:00
|
|
|
<nav class="tabs">
|
2018-05-23 16:25:52 +00:00
|
|
|
<ul>
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#if (contains model.engineType (supported-secret-backends))}}
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#link-to 'vault.cluster.secrets.backend.list-root' tagName="li" activeClass="is-active" current-when="vault.cluster.secrets.backend.list-root vault.cluster.secrets.backend.list"}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.list-root'}}
|
|
|
|
{{capitalize (pluralize options.item)}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.configuration' tagName="li" activeClass="is-active"}}
|
|
|
|
{{#link-to 'vault.cluster.secrets.backend.configuration' }}
|
|
|
|
Configuration
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/with}}
|