-
Notifications
You must be signed in to change notification settings - Fork 219
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
Remote vault patch 1 #1605
Merged
Merged
Remote vault patch 1 #1605
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4aa764f
add Secret to Argument struct
PatMis16 9701887
read path and secret to get vault secret
PatMis16 ed7f02b
update vault test to test changes with path and key
PatMis16 c3ca460
rename argument secret to key to be allign with vault terminology
PatMis16 870b7d2
use Key as specified in the arguments at vault.go
PatMis16 d364dcd
update CHANGELOG.md
PatMis16 b297693
update CHANGELOG.md add link to issue
PatMis16 0f238ba
update documentation to reflect changes for remote.vault
PatMis16 0890edc
remove unused imports
PatMis16 ed755fd
change attribut `key` to be optional
PatMis16 59c04dc
add if-else to allow both methods
PatMis16 6e99d93
add test cases with and without key argument
PatMis16 639b3f9
fix typo and change required to "no" for key argument
PatMis16 73cdebb
adapt client to work with both variants
PatMis16 cf413a2
update vault_test.go to use path and key to fetch secret
PatMis16 1ca45b5
add code documentation
PatMis16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,8 @@ func Test_GetSecrets(t *testing.T) { | |
|
||
cfg := fmt.Sprintf(` | ||
server = "%s" | ||
path = "secret/test" | ||
path = "" | ||
secret = "secret/test" | ||
|
||
reread_frequency = "0s" | ||
|
||
|
@@ -86,7 +87,8 @@ func Test_PollSecrets(t *testing.T) { | |
|
||
cfg := fmt.Sprintf(` | ||
server = "%s" | ||
path = "secret/test" | ||
path = "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this have a path to more accurately test the issue? Should it be |
||
key = "secret/test" | ||
|
||
reread_frequency = "100ms" | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel we need a way to allow for backwards compatibility. Likely we need to have both behaviors. If
key
is empty use existing behavior.Nit: Typo in retrieve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mattdurham ,
I get that. So what I can do is wrap it in an if-else.
And I think we have to define the argument
key
as optional.Thanks,
Patrick