-
Notifications
You must be signed in to change notification settings - Fork 124
Periodically Cleanup Orphaned Shadow Secrets #980
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
Open
jaireddjawed
wants to merge
41
commits into
main
Choose a base branch
from
jaireddjawed-feature-cleanup-shadow-secrets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 32 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
24f760a
create goroutine that runs every 5 minutes to remove orphaned shadow …
jaireddjawed 1bd34e6
updated to use only one goroutine for all HVSapps
jaireddjawed c6bdb47
remove old goroutine for removing secrets by hvs app name
jaireddjawed 4cdba66
created a new goroutine that will remove shadow secrets by going from…
jaireddjawed 8138ee8
updated goroutine to go from secrets -> app instead of app -> secrets
jaireddjawed 43f0cb5
update log message for successful deletion
jaireddjawed 857159f
added comment explaining that shadow secret cleanup is indefinite
jaireddjawed dee2d4d
update code to satisfy comments
jaireddjawed d8a8bc5
added labelOwnerRefUID for testing
jaireddjawed 2e9bdf5
add unit tests to test cleanupOrphanedShadowSecrets, also delete secr…
jaireddjawed a13989a
Merge branch 'main' into jaireddjawed-feature-cleanup-shadow-secrets
jaireddjawed 17ede69
Fixed issue mismatch secret owner check to delete secret or app
jaireddjawed e1ccab4
Update controllers/hcpvaultsecretsapp_controller.go
jaireddjawed 79d09ee
Remove TypeMeta from test
jaireddjawed 5fb25eb
updated LabelOwnerRefUID to use in helpers
jaireddjawed 5cb26b0
initiate cleanup through mgr.Add
jaireddjawed a73b23a
Merge branch 'main' into jaireddjawed-feature-cleanup-shadow-secrets
jaireddjawed 293e859
removed cleanupOrphanedShadowSecrets bool flag
jaireddjawed 6acf268
fixed labelownerrefid variable error
jaireddjawed 607af89
Merge remote-tracking branch 'refs/remotes/origin/jaireddjawed-featur…
jaireddjawed cca9093
change to allow a user to specify the time interval
jaireddjawed 47c20d1
Added test case with non dynamic secret
jaireddjawed 2e56774
updated cleanup method to not block other secrets along in list to no…
jaireddjawed 1d7100d
add cleanup orphaned shadow secrets command line option
jaireddjawed 428bace
run orphaned shadow secret once in leader
jaireddjawed 9050ebb
changed the select case for the cleanuporphanedshadowsecretinterval
jaireddjawed cb8ffc9
changed vsoEnvOptionValue
jaireddjawed 1a95fa4
include changes to satisfy comments
jaireddjawed 544a8e0
fixed unit test since cleanupOrphanedShadowSecrets no longer returns …
jaireddjawed a7c1153
change break to return to prevent for loop break issue
jaireddjawed 296d880
added client back into unit test
jaireddjawed 6fb9622
Merge branch 'main' into jaireddjawed-feature-cleanup-shadow-secrets
jaireddjawed 713167d
updated to satisfy comments
jaireddjawed 3ef25d5
match variable name wording with cli and env var name options
jaireddjawed 17b527c
Update main.go
jaireddjawed 688a47a
Update internal/options/env.go
jaireddjawed 4379ee7
update to only log error if defined
jaireddjawed dfcf105
Merge branch 'main' into jaireddjawed-feature-cleanup-shadow-secrets
jaireddjawed 54d260b
Fixed remaining issues
jaireddjawed b7c5a76
Merge remote-tracking branch 'refs/remotes/origin/jaireddjawed-featur…
jaireddjawed b164562
Merge branch 'main' into jaireddjawed-feature-cleanup-shadow-secrets
jaireddjawed 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.