{{#if encoded_token}}

{{#if otp}} Encoded Operation Token {{else}} Encrypted Operation Token {{/if}}

{{encoded_token}}
{{#if otp}}

One Time Password (otp)

{{otp}}
{{#let (concat 'vault operator generate-root -dr-token -otp="' otp '" -decode="' encoded_token '"') as |cmd|}}

DR Operation Token Command

{{cmd}}
{{/let}}
{{/if}}
{{else if (and generateAction (not started))}}
{{message-error errors=errors}} {{#if (eq generateStep 'chooseMethod')}}

Updating or promoting this cluster requires an operation token. Let's generate one by inputting the master key shares. If you'd like to encrypt the token with a PGP Key, please click "Provide PGP Key" below, otherwise we can begin generation of the Operation Token.

or
{{/if}} {{#if (eq generateStep 'providePGPKey')}}

Choose a PGP Key from your computer or paste the contents of one in the form below. This key will be used to Encrypt the generated Operation Token.

{{pgp-file index='' key=pgpKeyFile onChange=(action 'setKey')}}
{{/if}} {{#if (eq generateStep 'beginGenerationWithPGP')}}

Below is the base-64 encoded PGP Key that will be used to encrypt the generated Operation Token. Next we'll enter portions of the master key to generate an Operation Token. Click the "Generate Operation Token" button to proceed.

PGP Key {{pgpKeyFile.fileName}}

{{pgp_key}}
{{/if}}
{{else}}
{{#if errors}}
{{message-error errors=errors}}
{{/if}}
{{#if (has-block)}} {{yield}} {{else if formText}} {{formText}} {{/if}}
{{input class="input"type="password" name="key" value=key data-test-shamir-input=true}}
{{#if (or started hasProgress)}} {{/if}}
{{/if}}