2018-06-12 21:06:37 +00:00
|
|
|
<PageHeader as |p|>
|
|
|
|
<p.levelLeft>
|
|
|
|
<h1 class="title is-3">
|
|
|
|
Secrets Engines
|
|
|
|
</h1>
|
|
|
|
</p.levelLeft>
|
|
|
|
</PageHeader>
|
2018-04-03 14:16:57 +00:00
|
|
|
|
2019-02-14 16:04:46 +00:00
|
|
|
<Toolbar>
|
|
|
|
<ToolbarActions>
|
|
|
|
<ToolbarAddButton @params={{array 'vault.cluster.settings.mount-secret-backend'}}>
|
|
|
|
Enable new engine
|
|
|
|
</ToolbarAddButton>
|
|
|
|
</ToolbarActions>
|
|
|
|
</Toolbar>
|
|
|
|
|
2018-04-03 14:16:57 +00:00
|
|
|
{{#each supportedBackends as |backend|}}
|
2018-07-10 19:38:02 +00:00
|
|
|
{{#linked-block
|
2018-04-03 14:16:57 +00:00
|
|
|
"vault.cluster.secrets.backend.list-root"
|
|
|
|
backend.id
|
2018-07-10 19:38:02 +00:00
|
|
|
class="list-item-row"
|
2018-05-23 16:25:52 +00:00
|
|
|
data-test-secret-backend-row=backend.id
|
2018-04-03 14:16:57 +00:00
|
|
|
}}
|
|
|
|
<div class="level is-mobile">
|
|
|
|
<div class="level-left">
|
|
|
|
<div>
|
2018-10-21 19:19:34 +00:00
|
|
|
<ToolTip @horizontalPosition="left" as |T|>
|
|
|
|
<T.trigger>
|
2018-11-05 23:12:51 +00:00
|
|
|
<ICon @glyph={{concat "enable/" (or backend.engineType "secrets")}} @size="24" @class="has-text-grey-light" />
|
2018-10-21 19:19:34 +00:00
|
|
|
</T.trigger>
|
|
|
|
<T.content @class="tool-tip">
|
|
|
|
<div class="box">
|
2018-11-05 23:12:51 +00:00
|
|
|
{{backend.engineType}}
|
2018-10-21 19:19:34 +00:00
|
|
|
</div>
|
|
|
|
</T.content>
|
|
|
|
</ToolTip>
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#link-to "vault.cluster.secrets.backend.list-root" backend.id
|
2018-04-24 21:30:44 +00:00
|
|
|
class="has-text-black has-text-weight-semibold"
|
2018-08-16 17:48:24 +00:00
|
|
|
data-test-secret-path=true
|
2018-10-21 19:19:34 +00:00
|
|
|
}}
|
|
|
|
{{backend.path}}
|
|
|
|
{{/link-to}}
|
2018-04-03 14:16:57 +00:00
|
|
|
<br />
|
2018-04-09 21:49:52 +00:00
|
|
|
<code class="has-text-grey is-size-8">
|
|
|
|
{{#if (eq backend.options.version 2)}}
|
|
|
|
v2
|
|
|
|
{{/if}}
|
|
|
|
</code>
|
2018-04-03 14:16:57 +00:00
|
|
|
<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">
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#popup-menu name="engine-menu"}}
|
|
|
|
<nav class="menu">
|
|
|
|
<ul class="menu-list">
|
|
|
|
<li class="action">
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#link-to "vault.cluster.secrets.backend.configuration" backend.id}}
|
2019-03-29 23:40:12 +00:00
|
|
|
View configuration
|
2018-08-16 17:48:24 +00:00
|
|
|
{{/link-to}}
|
2018-05-23 16:25:52 +00:00
|
|
|
</li>
|
2018-11-07 19:25:35 +00:00
|
|
|
{{#unless (eq backend.type "cubbyhole")}}
|
|
|
|
<li class="action">
|
|
|
|
<ConfirmAction
|
|
|
|
@confirmButtonClasses="button is-primary"
|
|
|
|
@buttonClasses="link is-destroy"
|
|
|
|
@onConfirmAction={{perform disableEngine backend}}
|
2019-03-29 23:40:12 +00:00
|
|
|
@confirmMessage={{concat "Are you sure you want to disable the " backend.engineType " Secrets Engine at " backend.path "?"}}
|
2019-01-09 18:30:19 +00:00
|
|
|
@showConfirm={{get this (concat "shouldDelete-" (dot-to-dash backend.id))}}
|
|
|
|
@class={{if (get this (concat "shouldDelete-" (dot-to-dash backend.id))) "message is-block is-warning is-outline"}}
|
2018-11-07 19:25:35 +00:00
|
|
|
@containerClasses="message-body is-block"
|
|
|
|
@messageClasses="is-block"
|
|
|
|
@confirmButtonText="Disable"
|
|
|
|
data-test-engine-disable>
|
|
|
|
Disable
|
|
|
|
</ConfirmAction>
|
|
|
|
</li>
|
|
|
|
{{/unless}}
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#if item.updatePath.isPending}}
|
|
|
|
<li class="action">
|
2018-11-09 18:04:58 +00:00
|
|
|
<button disabled type="button" class="link button is-loading is-transparent"></button>
|
2018-05-23 16:25:52 +00:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{/popup-menu}}
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-10 19:38:02 +00:00
|
|
|
{{/linked-block}}
|
2018-04-03 14:16:57 +00:00
|
|
|
{{/each}}
|
|
|
|
{{#each unsupportedBackends as |backend|}}
|
2018-08-16 17:48:24 +00:00
|
|
|
<div class="list-item-row" data-test-secret-backend-row={{backend.id}}>
|
2018-04-03 14:16:57 +00:00
|
|
|
<div class="level is-mobile">
|
|
|
|
<div class="level-left">
|
|
|
|
<div>
|
2018-07-10 13:55:28 +00:00
|
|
|
<div data-test-secret-path class="has-text-weight-semibold has-text-grey">
|
2018-10-21 19:19:34 +00:00
|
|
|
<ToolTip @horizontalPosition="left" as |T|>
|
|
|
|
<T.trigger>
|
2018-11-05 23:12:51 +00:00
|
|
|
<ICon @glyph={{concat "enable/" (or backend.engineType "secrets")}} @size=24 @class="has-text-grey-light"/>
|
2018-10-21 19:19:34 +00:00
|
|
|
</T.trigger>
|
|
|
|
<T.content @class="tool-tip">
|
|
|
|
<div class="box">
|
2018-11-05 23:12:51 +00:00
|
|
|
{{backend.engineType}}
|
2018-10-21 19:19:34 +00:00
|
|
|
</div>
|
|
|
|
</T.content>
|
|
|
|
</ToolTip>
|
|
|
|
{{backend.path}}
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
|
|
|
<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">
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#popup-menu name="engine-menu"}}
|
|
|
|
<nav class="menu">
|
|
|
|
<ul class="menu-list">
|
|
|
|
<li class="action">
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#link-to "vault.cluster.secrets.backend.configuration" backend.id data-test-engine-config}}
|
2019-03-29 23:40:12 +00:00
|
|
|
View configuration
|
2018-08-16 17:48:24 +00:00
|
|
|
{{/link-to}}
|
2018-05-23 16:25:52 +00:00
|
|
|
</li>
|
2018-11-07 19:25:35 +00:00
|
|
|
<li>
|
|
|
|
<ConfirmAction
|
|
|
|
@confirmButtonClasses="button is-primary"
|
|
|
|
@buttonClasses="link is-destroy"
|
|
|
|
@onConfirmAction={{perform disableEngine backend}}
|
2019-03-29 23:40:12 +00:00
|
|
|
@confirmMessage={{concat "Are you sure you want to disable the " backend.engineType " Secrets Engine at " backend.path "?"}}
|
2019-01-09 18:30:19 +00:00
|
|
|
@showConfirm={{get this (concat "shouldDelete-" (dot-to-dash backend.id))}}
|
|
|
|
@class={{if (get this (concat "shouldDelete-" (dot-to-dash backend.id))) "message is-block is-warning is-outline"}}
|
2018-11-07 19:25:35 +00:00
|
|
|
@containerClasses="message-body is-block"
|
|
|
|
@messageClasses="is-block"
|
|
|
|
@confirmButtonText="Disable"
|
|
|
|
data-test-engine-disable
|
|
|
|
>
|
|
|
|
Disable
|
|
|
|
</ConfirmAction>
|
|
|
|
</li>
|
2018-05-23 16:25:52 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{/popup-menu}}
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|