UI: Remove "encryption" from transit actions (#27346)

* Remove encryption from transit actions

* Update encryption key > cryptographic key. Fixes #25780

* Add changelog
This commit is contained in:
Chelsea Shaw
2024-06-04 15:51:20 -05:00
committed by GitHub
parent af47fc927e
commit 131d1e2d66
12 changed files with 18 additions and 15 deletions

3
changelog/27346.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:improvement
ui: Update language in Transit secret engine to reflect that not all keys are for encyryption
```

View File

@@ -10,11 +10,11 @@
<p.levelLeft> <p.levelLeft>
<h1 class="title is-3"> <h1 class="title is-3">
{{#if (eq this.mode "create")}} {{#if (eq this.mode "create")}}
Create Encryption Key Create Key
{{else if (eq this.mode "edit")}} {{else if (eq this.mode "edit")}}
Edit Encryption Key Edit Key
{{else}} {{else}}
Encryption Key Key
<code>{{this.key.id}}</code> <code>{{this.key.id}}</code>
{{/if}} {{/if}}
</h1> </h1>

View File

@@ -126,7 +126,7 @@
<div class="field is-grouped box is-fullwidth is-bottomless"> <div class="field is-grouped box is-fullwidth is-bottomless">
<Hds::ButtonSet> <Hds::ButtonSet>
<Hds::Button <Hds::Button
@text="Create encryption key" @text="Create key"
@icon={{if @requestInFlight "loading"}} @icon={{if @requestInFlight "loading"}}
data-test-transit-key="create" data-test-transit-key="create"
type="submit" type="submit"

View File

@@ -50,7 +50,7 @@
</div> </div>
</div> </div>
<p class="help"> <p class="help">
The minimum decryption version required to reverse transformations performed with the encryption key. Results from The minimum decryption version required to reverse transformations performed with the cryptographic key. Results from
lower key versions may be rewrapped with the new key version using the lower key versions may be rewrapped with the new key version using the
<code>rewrap</code> <code>rewrap</code>
action. action.

View File

@@ -52,7 +52,7 @@
<ToolbarActions> <ToolbarActions>
{{#if (and (eq @tab "versions") @key.canRotate)}} {{#if (and (eq @tab "versions") @key.canRotate)}}
<ConfirmAction <ConfirmAction
@buttonText="Rotate encryption key" @buttonText="Rotate key"
class="toolbar-button" class="toolbar-button"
@buttonColor="secondary" @buttonColor="secondary"
@confirmTitle="Rotate this key?" @confirmTitle="Rotate this key?"
@@ -65,7 +65,7 @@
{{#if (eq @mode "show")}} {{#if (eq @mode "show")}}
{{#if (or @capabilities.canUpdate @capabilities.canDelete)}} {{#if (or @capabilities.canUpdate @capabilities.canDelete)}}
<ToolbarSecretLink @secret={{@key.id}} @backend={{@key.backend}} @mode="edit" replace={{true}}> <ToolbarSecretLink @secret={{@key.id}} @backend={{@key.backend}} @mode="edit" replace={{true}}>
Edit encryption key Edit key
</ToolbarSecretLink> </ToolbarSecretLink>
{{/if}} {{/if}}
{{/if}} {{/if}}

View File

@@ -7,7 +7,7 @@
<div class="box is-sideless is-fullwidth is-marginless"> <div class="box is-sideless is-fullwidth is-marginless">
<NamespaceReminder @mode="perform" @noun="datakey creation" /> <NamespaceReminder @mode="perform" @noun="datakey creation" />
<div class="content has-bottom-margin-l"> <div class="content has-bottom-margin-l">
<p>Generate a new high-entropy key and value using <code>{{@key.name}}</code> as the encryption key.</p> <p>Generate a new high-entropy key and value using <code>{{@key.name}}</code> as the cryptographic key.</p>
</div> </div>
<div class="field"> <div class="field">
<label for="param" class="is-label">Output format</label> <label for="param" class="is-label">Output format</label>

View File

@@ -6,7 +6,7 @@
<form {{on "submit" (fn @doSubmit (hash ciphertext=@ciphertext context=@context nonce=@nonce))}} ...attributes> <form {{on "submit" (fn @doSubmit (hash ciphertext=@ciphertext context=@context nonce=@nonce))}} ...attributes>
<div class="box is-sideless is-fullwidth is-marginless"> <div class="box is-sideless is-fullwidth is-marginless">
<div class="content has-bottom-margin-l"> <div class="content has-bottom-margin-l">
<p>You can decrypt ciphertext using <code>{{@key.name}}</code> as the encryption key.</p> <p>You can decrypt ciphertext using <code>{{@key.name}}</code> as the cryptographic key.</p>
</div> </div>
<div class="field"> <div class="field">
<div id="ciphertext-control" class="control"> <div id="ciphertext-control" class="control">

View File

@@ -10,7 +10,7 @@
<div class="box is-sideless is-fullwidth is-marginless"> <div class="box is-sideless is-fullwidth is-marginless">
<NamespaceReminder @mode="perform" @noun="encryption" /> <NamespaceReminder @mode="perform" @noun="encryption" />
<div class="content has-bottom-margin-l"> <div class="content has-bottom-margin-l">
<p>You can encrypt plaintext data using <code>{{@key.name}}</code> as the encryption key.</p> <p>You can encrypt plaintext data using <code>{{@key.name}}</code> as the cryptographic key.</p>
</div> </div>
<KeyVersionSelect @key={{@key}} @onVersionChange={{fn (mut @key_version)}} @key_version={{@key_version}} /> <KeyVersionSelect @key={{@key}} @onVersionChange={{fn (mut @key_version)}} @key_version={{@key_version}} />
<div class="field"> <div class="field">

View File

@@ -16,7 +16,7 @@
> >
<div class="box is-sideless is-fullwidth is-marginless"> <div class="box is-sideless is-fullwidth is-marginless">
<div class="content"> <div class="content">
<p>Export a key using <code>{{@key.name}}</code> as the encryption key.</p> <p>Export a key using <code>{{@key.name}}</code> as the cryptographic key.</p>
</div> </div>
<div class="field"> <div class="field">
<label for="type" class="is-label">Key type</label> <label for="type" class="is-label">Key type</label>

View File

@@ -13,7 +13,7 @@
<p> <p>
You can rewrap the provided ciphertext using the latest version of You can rewrap the provided ciphertext using the latest version of
<code>{{@key.name}}</code> <code>{{@key.name}}</code>
as the encryption key. as the cryptographic key.
</p> </p>
</div> </div>
<KeyVersionSelect @key={{@key}} @onVersionChange={{fn (mut @key_version)}} @key_version={{@key_version}} /> <KeyVersionSelect @key={{@key}} @onVersionChange={{fn (mut @key_version)}} @key_version={{@key_version}} />

View File

@@ -27,7 +27,7 @@
<p> <p>
Return the cryptographic signature of the given data using Return the cryptographic signature of the given data using
<code>{{@key.name}}</code> <code>{{@key.name}}</code>
as the encryption key and the specified hash algorithm. as the cryptographic key and the specified hash algorithm.
</p> </p>
</div> </div>
<KeyVersionSelect @key={{@key}} @onVersionChange={{fn (mut @key_version)}} @key_version={{@key_version}} /> <KeyVersionSelect @key={{@key}} @onVersionChange={{fn (mut @key_version)}} @key_version={{@key_version}} />

View File

@@ -140,11 +140,11 @@ const SECRET_BACKENDS = {
transit: { transit: {
searchPlaceholder: 'Filter keys', searchPlaceholder: 'Filter keys',
item: 'key', item: 'key',
create: 'Create encryption key', create: 'Create key',
navigateTree: false, navigateTree: false,
editComponent: 'transit-edit', editComponent: 'transit-edit',
listItemPartial: 'secret-list/item', listItemPartial: 'secret-list/item',
firstStep: `To use transit, you'll need to create an encryption key`, firstStep: `To use transit, you'll need to create a key`,
}, },
}; };