a517fe35a1
* Update secret backend partial to components * Added jsdoc to components
44 lines
1.1 KiB
Handlebars
44 lines
1.1 KiB
Handlebars
<PageHeader as |p|>
|
|
<p.top>
|
|
<KeyValueHeader @baseKey={{model}} @path="vault.cluster.secrets.backend" @root={{root}} @showCurrent={{true}} />
|
|
</p.top>
|
|
<p.levelLeft>
|
|
<h1 class="title is-3">
|
|
Configure {{get (options-for-backend model.type) "displayName"}}
|
|
</h1>
|
|
</p.levelLeft>
|
|
</PageHeader>
|
|
|
|
<Toolbar>
|
|
<ToolbarActions>
|
|
<ToolbarLink
|
|
@params={{array "vault.cluster.secrets.backend" model.id}}
|
|
@data-test-backend-view-link=true
|
|
>
|
|
View backend
|
|
</ToolbarLink>
|
|
</ToolbarActions>
|
|
</Toolbar>
|
|
|
|
{{#if (eq model.type "aws")}}
|
|
<ConfigureAwsSecret
|
|
@model={{model}}
|
|
@tab={{tab}}
|
|
@accessKey={{accessKey}}
|
|
@secretKey={{secretKey}}
|
|
@region={{region}}
|
|
@iamEndpoint={{iamEndpoint}}
|
|
@stsEndpoint={{stsEndpoint}}
|
|
@saveAWSRoot={{action "save" "saveAWSRoot"}}
|
|
@saveAWSLease={{action "save" "saveAWSLease"}} />
|
|
{{else if (eq model.type "pki")}}
|
|
<ConfigurePkiSecret />
|
|
{{else if (eq model.type "ssh")}}
|
|
<ConfigureSshSecret
|
|
@model={{model}}
|
|
@configured={{configured}}
|
|
@saveConfig={{action "saveConfig"}} />
|
|
{{/if}}
|
|
|
|
{{outlet}}
|