Files
vault/ui/app/templates/vault/cluster/secrets/backend/configuration/edit.hbs
Angel Garbarino 01709e992a Swap route settings.configure-secret-backend for nested edit and index route under secret.configuration (#27918)
* 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
2024-08-01 16:06:04 -06:00

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}}