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

Additional tests for Hashicorp Vaul Secret Store certification. #2316

Merged
merged 5 commits into from
Nov 30, 2022

Conversation

tmacam
Copy link
Contributor

@tmacam tmacam commented Nov 26, 2022

Description

  • This PR adds additional tests to complete vault certification. A detailed test plann is added to its README.
  • Fixes a vault behaviour regarding its multiple key-values per secret behaviour when its valueType flag is set to text.

This is a follow up to #2140.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1926

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

* This PR adds additional tests to complete vault certification.
  A detailed test plann is added to its README.
* Fixes a vault behaviour regarding its multiple key-values per
  secret behaviour when its `valueType` flag is set to `text`.

This is a follow up to dapr#2140.

Closes dapr#1926.

Signed-off-by: Tiago Alves Macambira <[email protected]>
@codecov
Copy link

codecov bot commented Nov 26, 2022

Codecov Report

Merging #2316 (b56d13a) into master (86cf34e) will increase coverage by 38.22%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master    #2316       +/-   ##
===========================================
+ Coverage        0   38.22%   +38.22%     
===========================================
  Files           0      202      +202     
  Lines           0    25501    +25501     
===========================================
+ Hits            0     9747     +9747     
- Misses          0    14993    +14993     
- Partials        0      761      +761     
Impacted Files Coverage Δ
secretstores/hashicorp/vault/vault.go 37.25% <100.00%> (ø)
configuration/redis/internal/redis_value.go 80.00% <0.00%> (ø)
state/memcached/memcached.go 37.16% <0.00%> (ø)
internal/authentication/azure/storage.go 0.00% <0.00%> (ø)
bindings/smtp/smtp.go 50.00% <0.00%> (ø)
configuration/azure/appconfig/appconfig.go 73.68% <0.00%> (ø)
bindings/mqtt/mqtt.go 30.63% <0.00%> (ø)
configuration/redis/redis.go 31.96% <0.00%> (ø)
state/rethinkdb/rethinkdb.go 3.90% <0.00%> (ø)
internal/component/kafka/scram_client.go 0.00% <0.00%> (ø)
... and 193 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tmacam tmacam marked this pull request as ready for review November 28, 2022 00:58
@tmacam tmacam requested review from a team as code owners November 28, 2022 00:58
* Removes emojis from output
* Auto-generate certificates on the fly
* Move helper methods out of vault_test.go and into helper files.

Signed-off-by: Tiago Alves Macambira <[email protected]>
tmacam added a commit to tmacam/dapr-docs that referenced this pull request Nov 30, 2022
With dapr/components-contrib#2316 we should complete Hashicorp Vault certification and promote it to stable.

Signed-off-by: Tiago Alves Macambira <[email protected]>
tmacam added a commit to tmacam/dapr-docs that referenced this pull request Nov 30, 2022
With dapr/components-contrib#2316 we should complete Hashicorp Vault certification and promote it to stable.

Signed-off-by: Tiago Alves Macambira <[email protected]>
Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

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

Wow, you were super thorough.

@berndverst berndverst merged commit 52404f3 into dapr:master Nov 30, 2022
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.

Hashicorp Vault secret store as Stable
4 participants