Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate plugin options in ConfigureWrapper #41

Merged
merged 2 commits into from Jun 28, 2022

Conversation

johanbrandhorst
Copy link
Collaborator

It seems we forgot to include this when migrating to the new kms wrapper in #32.

fix: Make testplugin functional

The testplugin as previously implemented didn't support the Encrypt or Decrypt methods, since it did not have an AEAD cipher configured. This change configures an AES cipher with a hardcoded key, so that we can do Encrypt
and Decrypt operations in tests.

fix: Propagate plugin options in configureWrapper

The configureWrapper was not propagating plugin options. Propagate these options and add a test to ensure they work.

The testplugin as previously implemented didn't
support the Encrypt or Decrypt methods,
since it did not have an AEAD cipher configured.
This change configures an AES cipher with
a hardcoded key, so that we can do Encrypt
and Decrypt operations in tests.
The configureWrapper was not propagating
plugin options. Propagate these options
and add a test to ensure they work.
Copy link
Member

@tmessi tmessi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, but I would definitely wait for jim and/or jeff to review since I am not very familiar with everything here.

@jimlambrt jimlambrt merged commit bf6d78e into main Jun 28, 2022
@johanbrandhorst johanbrandhorst deleted the jbrandhorst-propagate-plugin-options branch June 28, 2022 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants