-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap route settings.configure-secret-backend for nested edit and inde…
…x 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
- Loading branch information
1 parent
68a5741
commit 01709e9
Showing
17 changed files
with
123 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
ui: Move secret-engine configuration create/edit from routing `vault/settings/secrets/configure/<backend>` to `vault/secrets/<backend>/configuration/edit` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
52 changes: 52 additions & 0 deletions
52
ui/app/templates/vault/cluster/secrets/backend/configuration/index.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{{! | ||
Copyright (c) HashiCorp, Inc. | ||
SPDX-License-Identifier: BUSL-1.1 | ||
~}} | ||
|
||
<SecretListHeader | ||
@model={{this.model}} | ||
@backendCrumb={{hash | ||
label=this.model.id | ||
text=this.model.id | ||
path="vault.cluster.secrets.backend.list-root" | ||
model=this.model.id | ||
}} | ||
@isConfigure={{true}} | ||
/> | ||
|
||
{{#if this.isConfigurable}} | ||
<Toolbar> | ||
<ToolbarActions> | ||
<ToolbarLink | ||
@route="vault.cluster.secrets.backend.configuration.edit" | ||
@model={{this.model.id}} | ||
data-test-secret-backend-configure | ||
> | ||
Configure | ||
</ToolbarLink> | ||
</ToolbarActions> | ||
</Toolbar> | ||
|
||
<SecretEngine::ConfigurationDetails @model={{this.model}} /> | ||
<SecretsEngineMountConfig @model={{this.model}} class="has-top-margin-xl has-bottom-margin-xl" data-test-mount-config /> | ||
|
||
{{else}} | ||
<div class="box is-fullwidth is-sideless is-paddingless is-marginless"> | ||
{{#each this.model.attrs as |attr|}} | ||
{{#if (eq attr.type "object")}} | ||
<InfoTableRow | ||
@alwaysRender={{not (is-empty-value (get this.model attr.name))}} | ||
@label={{or attr.options.label (to-label attr.name)}} | ||
@value={{stringify (get this.model (or attr.options.fieldValue attr.name))}} | ||
/> | ||
{{else}} | ||
<InfoTableRow | ||
@alwaysRender={{and (not (is-empty-value (get this.model attr.name))) (not-eq attr.name "version")}} | ||
@formatTtl={{eq attr.options.editType "ttl"}} | ||
@label={{or attr.options.label (to-label attr.name)}} | ||
@value={{get this.model (or attr.options.fieldValue attr.name)}} | ||
/> | ||
{{/if}} | ||
{{/each}} | ||
</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters