mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
* [UI] Ember Data Migration - Secrets Engine Resource (#30791) * adds base factory for resources and secrets engine resource * updates dashboard and secret-engine list route to fetch mounts from api service * updates secret backends routes to use api service * updates secrets engine config routes to use api service * updates secrets backend route to use internal mounts endpoint and fixes error handling * updates property casing in config details card component * fixes dashboard tests * fixes issues with engine configuration * updates api service to only set token header if value is defined in auth service * fixes more tests * Update ui/app/routes/vault/cluster/secrets/backend/configuration/index.js Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com> * removes alwaysRender from publicKey field in secret engine configuration details component * removes unused hideToggle arg from secret engine mount config template * updates kv config route to load secret-engine model * fixes kv config route --------- Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com> * [UI] Ember Data Migration - Secrets Engine Forms (#30951) * adds secrets engine form class * updates mount-secret-backend route and form component to use secrets engine form class and api service * updates to form class proxy for nested form data properties * adds form classes for configurable secrets engines * updates secrets engine config edit route and components to use form classes and api service * adds missing copyright header * fixes tests * fixes type error * updates configure-ssh component to use form class and api service * updates configure-ssh tests * updates configuration-wif component tests * fixes mount secret backend and form tests * adds method to normalize request key casing to api service * addresses pr review feedback * removes unused secrets engine config models, adapters and serializers (#30980) * fixes azure config tests * fixes more ent tests --------- Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
48 lines
1.5 KiB
Handlebars
48 lines
1.5 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<TabPageHeader @model={{@backendModel}} @breadcrumbs={{@breadcrumbs}}>
|
|
<:toolbarActions>
|
|
{{#if @configModel}}
|
|
<ConfirmAction
|
|
@buttonText="Rotate root"
|
|
class="toolbar-button"
|
|
@buttonColor="secondary"
|
|
@onConfirmAction={{perform this.rotateRoot}}
|
|
@confirmTitle="Rotate root?"
|
|
@confirmMessage="After rotation, Vault will generate a new root password in your directory server."
|
|
@modalColor="warning"
|
|
@isRunning={{this.rotateRoot.isRunning}}
|
|
data-test-toolbar-rotate-action
|
|
/>
|
|
{{/if}}
|
|
<ToolbarLink @route="configure" data-test-toolbar-config-action>
|
|
{{if @configModel "Edit configuration" "Configure LDAP"}}
|
|
</ToolbarLink>
|
|
</:toolbarActions>
|
|
</TabPageHeader>
|
|
|
|
{{#if @configModel}}
|
|
{{#each this.defaultFields as |field|}}
|
|
<InfoTableRow @label={{field.label}} @value={{field.value}} @formatTtl={{field.formatTtl}} @alwaysRender={{true}} />
|
|
{{/each}}
|
|
|
|
<h2 class="title is-4 has-top-margin-xl">TLS Connection</h2>
|
|
<hr class="is-marginless" />
|
|
|
|
{{#each this.connectionFields as |field|}}
|
|
<InfoTableRow @label={{field.label}} @value={{field.value}} @alwaysRender={{true}} />
|
|
{{/each}}
|
|
{{else if @configError}}
|
|
<Page::Error @error={{@configError}} />
|
|
{{else}}
|
|
<ConfigCta />
|
|
{{/if}}
|
|
|
|
<SecretsEngineMountConfig
|
|
@secretsEngine={{@backendModel}}
|
|
class="has-top-margin-xl has-bottom-margin-xl"
|
|
data-test-mount-config
|
|
/> |