open-vault/ui/app/templates/vault/cluster/secrets/backends.hbs

110 lines
3.6 KiB
Handlebars

<PageHeader as |p|>
<p.levelLeft>
<h1 class="title is-3">
Secrets Engines
</h1>
</p.levelLeft>
<p.levelRight>
{{#link-to 'vault.cluster.settings.mount-secret-backend' class="button has-icon-right is-ghost is-compact"}}
Enable new engine
{{i-con glyph="chevron-right" size=11}}
{{/link-to}}
</p.levelRight>
</PageHeader>
{{#each supportedBackends as |backend|}}
{{#linked-block
"vault.cluster.secrets.backend.list-root"
backend.id
class="list-item-row"
data-test-secret-backend-row=backend.id
}}
<div class="level is-mobile">
<div class="level-left">
<div>
{{#link-to "vault.cluster.secrets.backend.list-root" backend.id
class="has-text-black has-text-weight-semibold"
data-test-secret-path=true
}}{{i-con glyph="folder" size=14 class="has-text-grey-light"}}{{backend.path}}{{/link-to}}
<br />
<span class="tag">
{{#if (eq backend.type 'plugin')}}
{{backend.type}}: {{backend.config.plugin_name}}
{{else}}
{{backend.type}}
{{/if}}
</span>
<code class="has-text-grey is-size-8">
{{#if (eq backend.options.version 2)}}
v2
{{/if}}
</code>
<code class="has-text-grey is-size-8">
{{backend.accessor}}
</code>
</div>
</div>
<div class="level-right is-flex is-paddingless is-marginless">
<div class="level-item">
{{#popup-menu name="engine-menu"}}
<nav class="menu">
<ul class="menu-list">
<li class="action">
{{#link-to "vault.cluster.secrets.backend.configuration" backend.id}}
View Configuration
{{/link-to}}
</li>
{{#if item.updatePath.isPending}}
<li class="action">
<button disabled=true type="button" class="link button is-loading is-transparent"></button>
</li>
{{/if}}
</ul>
</nav>
{{/popup-menu}}
</div>
</div>
</div>
{{/linked-block}}
{{/each}}
{{#each unsupportedBackends as |backend|}}
<div class="list-item-row" data-test-secret-backend-row={{backend.id}}>
<div class="level is-mobile">
<div class="level-left">
<div>
<div data-test-secret-path class="has-text-weight-semibold has-text-grey">
{{i-con glyph="folder" size=14 class="has-text-grey-light"}} {{backend.path}}
</div>
<span class="tag">
<code>
{{#if (eq backend.type 'plugin')}}
{{backend.type}}: {{backend.config.plugin_name}}
{{else}}
{{backend.type}}
{{/if}}
</code>
</span>
<code class="has-text-grey is-size-8">
{{backend.accessor}}
</code>
</div>
</div>
<div class="level-right is-flex is-paddingless is-marginless">
<div class="level-item">
{{#popup-menu name="engine-menu"}}
<nav class="menu">
<ul class="menu-list">
<li class="action">
{{#link-to "vault.cluster.secrets.backend.configuration" backend.id data-test-engine-config}}
View Configuration
{{/link-to}}
</li>
</ul>
</nav>
{{/popup-menu}}
</div>
</div>
</div>
</div>
{{/each}}