2018-06-12 21:06:37 +00:00
|
|
|
<PageHeader as |p|>
|
|
|
|
<p.top>
|
|
|
|
{{key-value-header
|
|
|
|
baseKey=model
|
|
|
|
path="vault.cluster.secrets.backend.list"
|
|
|
|
mode=mode
|
|
|
|
root=root
|
|
|
|
showCurrent=true
|
|
|
|
}}
|
|
|
|
</p.top>
|
|
|
|
<p.levelLeft>
|
|
|
|
<h1 class="title is-3" data-test-secret-header="true">
|
|
|
|
{{#if (eq mode "create") }}
|
|
|
|
Create an AWS Role
|
|
|
|
{{else if (eq mode 'edit')}}
|
2018-08-28 00:54:30 +00:00
|
|
|
Edit AWS Role <code>{{model.id}}</code>
|
2018-06-12 21:06:37 +00:00
|
|
|
{{else}}
|
|
|
|
AWS Role <code>{{model.id}}</code>
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
</p.levelLeft>
|
|
|
|
<p.levelRight>
|
|
|
|
<div class="field is-grouped">
|
|
|
|
{{#if (eq mode "show") }}
|
|
|
|
{{#if (or model.canUpdate model.canDelete)}}
|
|
|
|
<div class="control">
|
|
|
|
{{#secret-link
|
|
|
|
secret=model.id
|
|
|
|
mode="edit"
|
|
|
|
replace=true
|
|
|
|
class="button has-icon-right is-ghost is-compact"
|
2018-04-03 14:16:57 +00:00
|
|
|
}}
|
2018-06-12 21:06:37 +00:00
|
|
|
Edit role
|
|
|
|
{{i-con glyph="chevron-right" size=11}}
|
|
|
|
{{/secret-link}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if model.canGenerate}}
|
|
|
|
<div class="control">
|
|
|
|
{{#secret-link
|
|
|
|
mode="credentials"
|
|
|
|
secret=model.id
|
|
|
|
class="button has-icon-right is-ghost is-compact"
|
|
|
|
data-test-backend-credentials="iam"
|
|
|
|
}}
|
2018-08-28 00:54:30 +00:00
|
|
|
Generate credentials
|
2018-06-12 21:06:37 +00:00
|
|
|
{{i-con glyph="chevron-right" size=11}}
|
|
|
|
{{/secret-link}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.levelRight>
|
|
|
|
</PageHeader>
|
2018-04-03 14:16:57 +00:00
|
|
|
|
|
|
|
{{#if (or (eq mode 'edit') (eq mode 'create'))}}
|
|
|
|
{{partial 'partials/role-aws/form'}}
|
|
|
|
{{else}}
|
|
|
|
{{partial 'partials/role-aws/show'}}
|
|
|
|
{{/if}}
|