diff --git a/ui/app/templates/vault/cluster/init.hbs b/ui/app/templates/vault/cluster/init.hbs index 4d4f722df84b..f6a50ff33572 100644 --- a/ui/app/templates/vault/cluster/init.hbs +++ b/ui/app/templates/vault/cluster/init.hbs @@ -1,15 +1,16 @@ {{#if keyData}} - {{#with (or keyData.recovery_keys keyData.keys) as |keyArray|}} + {{#let (or keyData.recovery_keys keyData.keys) as |keyArray|}}

- Vault has been initialized! {{#if (eq keyArray.length 1)}} + Vault has been initialized! + {{#if (eq keyArray.length 1)}} Here is your key. {{else}} Here are your {{pluralize keyArray.length "key"}}. {{/if}}

- {{/with}} + {{/let}}
@@ -29,8 +30,14 @@ {{/if}}

-
- +
+

Initial Root Token @@ -38,8 +45,12 @@ {{keyData.root_token}}

- {{#each (or keyData.recovery_keys_base64 keyData.recovery_keys keyData.keys_base64 keyData.keys) as |key index| }} -
+ {{#each (or keyData.recovery_keys_base64 keyData.recovery_keys keyData.keys_base64 keyData.keys) as |key index|}} +

@@ -53,20 +64,36 @@
{{#if (and model.sealed (not keyData.recovery_keys))}} -
+
{{#link-to 'vault.cluster.unseal' model.name class="button is-primary"}} Continue to Unseal {{/link-to}}
{{else}} -
- {{#link-to 'vault.cluster.auth' model.name class=(concat (if model.sealed 'is-loading ' '') 'button is-primary') disabled=model.sealed}} +
+ {{#link-to 'vault.cluster.auth' + model.name + class=(concat (if model.sealed 'is-loading ' '') 'button is-primary') + disabled=model.sealed + }} Continue to Authenticate {{/link-to}}
{{/if}} - + Download Keys
@@ -81,67 +108,112 @@
+ id="init" + >
-
-
- - + {{#if use_pgp}}

The output unseal keys will be encrypted and hex-encoded, in order, with the given public keys.

- +
{{/if}} - + {{#if use_pgp_for_root}}

The root unseal key will be encrypted and hex-encoded with the given public key.

- +
{{/if}}
- -
{{partial "svg/initialize"}}