mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
backport of commit 5299707a3e (#19465)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f82e51f5e0
commit
bfe328ed66
3
changelog/19429.txt
Normal file
3
changelog/19429.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
ui: pass encodeBase64 param to HMAC transit-key-actions.
|
||||||
|
```
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
<form onsubmit={{action @doSubmit (hash input=@input algorithm=@algorithm key_version=@key_version)}}>
|
<form
|
||||||
|
onsubmit={{action
|
||||||
|
@doSubmit
|
||||||
|
(hash input=@input algorithm=@algorithm key_version=@key_version encodedBase64=@encodedBase64)
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div class="box is-sideless is-fullwidth is-marginless">
|
<div class="box is-sideless is-fullwidth is-marginless">
|
||||||
<NamespaceReminder @mode="perform" @noun="HMAC creation" />
|
<NamespaceReminder @mode="perform" @noun="HMAC creation" />
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
@@ -322,6 +322,8 @@ module('Integration | Component | transit key actions', function (hooks) {
|
|||||||
`);
|
`);
|
||||||
await fillIn('#algorithm', 'sha2-384');
|
await fillIn('#algorithm', 'sha2-384');
|
||||||
await blur('#algorithm');
|
await blur('#algorithm');
|
||||||
|
await fillIn('[data-test-component="code-mirror-modifier"] textarea', 'plaintext');
|
||||||
|
await click('input[data-test-transit-input="encodedBase64"]');
|
||||||
await click('button[type="submit"]');
|
await click('button[type="submit"]');
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
this.storeService.callArgs,
|
this.storeService.callArgs,
|
||||||
@@ -331,6 +333,7 @@ module('Integration | Component | transit key actions', function (hooks) {
|
|||||||
id: 'akey',
|
id: 'akey',
|
||||||
payload: {
|
payload: {
|
||||||
algorithm: 'sha2-384',
|
algorithm: 'sha2-384',
|
||||||
|
input: 'plaintext',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'passes expected args to the adapter'
|
'passes expected args to the adapter'
|
||||||
|
|||||||
Reference in New Issue
Block a user