mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
* router changes and appropriate file shuffling * changelog * fix test routes * handle redirect... is this okay? * test redirect coverage * move configure-secret-backend test and cleanup * coverage for non configurable secret engine: * clean up * remove redirect
52 lines
1.3 KiB
Handlebars
52 lines
1.3 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<PageHeader as |p|>
|
|
<p.top>
|
|
<KeyValueHeader
|
|
@baseKey={{this.model}}
|
|
@path="vault.cluster.secrets.backend"
|
|
@root={{this.root}}
|
|
@showCurrent={{true}}
|
|
/>
|
|
</p.top>
|
|
<p.levelLeft>
|
|
<h1 class="title is-3" data-test-backend-configure-title={{this.model.type}}>
|
|
Configure
|
|
{{get (options-for-backend this.model.type) "displayName"}}
|
|
</h1>
|
|
</p.levelLeft>
|
|
</PageHeader>
|
|
|
|
<Toolbar>
|
|
<ToolbarActions>
|
|
<ToolbarLink @route="vault.cluster.secrets.backend" @model={{this.model.id}} data-test-backend-view-link>
|
|
View backend
|
|
</ToolbarLink>
|
|
</ToolbarActions>
|
|
</Toolbar>
|
|
|
|
{{#if (eq this.model.type "aws")}}
|
|
<ConfigureAwsSecret
|
|
@model={{this.model}}
|
|
@tab={{this.tab}}
|
|
@accessKey={{this.accessKey}}
|
|
@secretKey={{this.secretKey}}
|
|
@region={{this.region}}
|
|
@iamEndpoint={{this.iamEndpoint}}
|
|
@stsEndpoint={{this.stsEndpoint}}
|
|
@saveAWSRoot={{action "save" "saveAWSRoot"}}
|
|
@saveAWSLease={{action "save" "saveAWSLease"}}
|
|
/>
|
|
{{else if (eq this.model.type "ssh")}}
|
|
<ConfigureSshSecret
|
|
@model={{this.model}}
|
|
@configured={{this.configured}}
|
|
@saveConfig={{action "saveConfig"}}
|
|
@loading={{this.loading}}
|
|
/>
|
|
{{/if}}
|
|
|
|
{{outlet}} |