mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +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">
|
||||
<NamespaceReminder @mode="perform" @noun="HMAC creation" />
|
||||
<div class="content">
|
||||
|
||||
@@ -322,6 +322,8 @@ module('Integration | Component | transit key actions', function (hooks) {
|
||||
`);
|
||||
await fillIn('#algorithm', 'sha2-384');
|
||||
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"]');
|
||||
assert.deepEqual(
|
||||
this.storeService.callArgs,
|
||||
@@ -331,6 +333,7 @@ module('Integration | Component | transit key actions', function (hooks) {
|
||||
id: 'akey',
|
||||
payload: {
|
||||
algorithm: 'sha2-384',
|
||||
input: 'plaintext',
|
||||
},
|
||||
},
|
||||
'passes expected args to the adapter'
|
||||
|
||||
Reference in New Issue
Block a user