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

Pluggable component: Secret store #6733

Merged
merged 31 commits into from
Aug 16, 2023

Conversation

pravinpushkar
Copy link
Contributor

@pravinpushkar pravinpushkar commented Jul 27, 2023

Description

  • Proto definition
  • client implementation
  • unit tests

Issue reference

Please reference the issue this PR will close: #5635

Checklist

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

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #6733 (b882726) into master (7371a5c) will decrease coverage by 0.15%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #6733      +/-   ##
==========================================
- Coverage   65.05%   64.90%   -0.15%     
==========================================
  Files         231      232       +1     
  Lines       20595    20640      +45     
==========================================
- Hits        13398    13397       -1     
- Misses       6089     6126      +37     
- Partials     1108     1117       +9     
Files Changed Coverage Δ
pkg/components/pubsub/pluggable.go 57.57% <ø> (ø)
pkg/components/secretstores/registry.go 83.33% <ø> (-0.67%) ⬇️
pkg/components/state/pluggable.go 77.13% <ø> (ø)
pkg/components/secretstores/pluggable.go 50.00% <50.00%> (ø)

... and 2 files with indirect coverage changes

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
@pravinpushkar pravinpushkar marked this pull request as ready for review August 1, 2023 08:39
@pravinpushkar pravinpushkar requested review from a team as code owners August 1, 2023 08:39
@pravinpushkar pravinpushkar changed the title [WIP]Pluggable component: Secret store Pluggable component: Secret store Aug 1, 2023
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
// GetSecretRequest is the message to get secret from secret store.
message GetSecretRequest {
// The name of secret key.
string key = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Silly question, but should field numbering generally start at 1?

Copy link
Contributor

Choose a reason for hiding this comment

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

it's not strictly necessary. The most important thing is that once you set a number, you never change it. https://protobuf.dev/programming-guides/proto3/#updating

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I numbered it with 2 purposefully while trying to match the runtime/proto definition. I think, to make it consistent I will change with 1.

ItalyPaleAle
ItalyPaleAle previously approved these changes Aug 1, 2023
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
@ItalyPaleAle ItalyPaleAle added the autoupdate DaprBot will keep the Pull Request up to date with master branch label Aug 4, 2023
@pravinpushkar
Copy link
Contributor Author

@artursouza @yaron2 @mukundansundar Can we merge this if it is being planned for 1.12 ? In that way I will try to get the sandbox-sdk PR also ready before 14th.

@artursouza artursouza self-assigned this Aug 16, 2023
@artursouza artursouza merged commit 9e94546 into dapr:master Aug 16, 2023
18 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoupdate DaprBot will keep the Pull Request up to date with master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Secret Store Pluggable Component Design
5 participants