mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-15 19:17:02 +02:00
* Adding explicit MPL license for sub-package. This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Adding explicit MPL license for sub-package. This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Updating the license from MPL to Business Source License. Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog, FAQ at www.hashicorp.com/licensing-faq, and details of the license at www.hashicorp.com/bsl. * add missing license headers * Update copyright file headers to BUS-1.1 * Fix test that expected exact offset on hcl file --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Sarah Thompson <sthompson@hashicorp.com> Co-authored-by: Brian Kassouf <bkassouf@hashicorp.com>
62 lines
2.8 KiB
Handlebars
62 lines
2.8 KiB
Handlebars
{{!
|
||
Copyright (c) HashiCorp, Inc.
|
||
SPDX-License-Identifier: BUSL-1.1
|
||
~}}
|
||
|
||
{{#each-in this.groups as |group fields|}}
|
||
<ToggleButton
|
||
@isOpen={{eq this.showGroup group}}
|
||
@openLabel={{concat "Hide " group}}
|
||
@closedLabel={{group}}
|
||
@onClick={{fn this.toggleGroup group}}
|
||
class="is-block"
|
||
data-test-toggle-group={{group}}
|
||
/>
|
||
{{#if (eq this.showGroup group)}}
|
||
<div class="box is-marginless" data-test-group={{group}}>
|
||
{{#if (eq group "Key parameters")}}
|
||
<p class="has-bottom-margin-m" data-test-toggle-group-description>
|
||
{{#if (eq @model.type "internal")}}
|
||
This certificate type is internal. This means that the private key will not be returned and cannot be retrieved
|
||
later. Below, you will name the key and define its type and key bits.
|
||
{{else if (eq @model.type "kms")}}
|
||
This certificate type is kms, meaning managed keys will be used. Below, you will name the key and tell Vault
|
||
where to find it in your KMS or HSM.
|
||
<DocLink @path="/vault/docs/enterprise/managed-keys">Learn more about managed keys.</DocLink>
|
||
{{else if (eq @model.type "exported")}}
|
||
This certificate type is exported. This means the private key will be returned in the response. Below, you will
|
||
name the key and define its type and key bits.
|
||
{{else if (eq @model.type "existing")}}
|
||
You chose to use an existing key. This means that we’ll use the key reference to create the CSR or root. Please
|
||
provide the reference to the key.
|
||
{{else}}
|
||
Please choose a type to see key parameter options.
|
||
{{/if}}
|
||
</p>
|
||
{{#if this.keyParamFields}}
|
||
<PkiKeyParameters @model={{@model}} @fields={{this.keyParamFields}} @modelValidations={{@modelValidations}} />
|
||
{{/if}}
|
||
{{else}}
|
||
<p class="has-bottom-margin-m" data-test-toggle-group-description>
|
||
{{#if (eq group "Subject Alternative Name (SAN) Options")}}
|
||
SAN fields are an extension that allow you specify additional host names (sites, IP addresses, common names,
|
||
etc.) to be protected by a single certificate.
|
||
{{else if (eq group "Additional subject fields")}}
|
||
These fields provide more information about the client to which the certificate belongs.
|
||
{{/if}}
|
||
</p>
|
||
{{#each fields as |fieldName|}}
|
||
{{#let (find-by "name" fieldName @model.allFields) as |attr|}}
|
||
<FormField
|
||
data-test-field
|
||
@attr={{attr}}
|
||
@model={{@model}}
|
||
@showHelpText={{false}}
|
||
@modelValidations={{@modelValidations}}
|
||
/>
|
||
{{/let}}
|
||
{{/each}}
|
||
{{/if}}
|
||
</div>
|
||
{{/if}}
|
||
{{/each-in}} |