-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat(api): redact secrets in logs. Fixes #8685 #9859
Closed
anilkumar-pcs
wants to merge
14
commits into
argoproj:master
from
anilkumar-pcs:hide-secrets-in-logs
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b1ba634
fix: Hide secrets in logs. Fixes #8685
anilkumar-pcs dc5e925
fix: Added tests. Fixes #8685
anilkumar-pcs 47fee7b
fix: retrigger checks
anilkumar-pcs b8333af
fix: retrigger checks
anilkumar-pcs 9e3a1f5
fix: added right test yaml
anilkumar-pcs 0276b22
fix: retrigger checks
anilkumar-pcs ac964fe
fix: retrigger checks
anilkumar-pcs f35fa08
fix: use * to hide the secrets
anilkumar-pcs eedd376
fix: update test
anilkumar-pcs 7966c34
fix: address review comments
anilkumar-pcs 9a1a528
fix: retrigger checks
anilkumar-pcs b4b5ece
fix: retrigger checks
anilkumar-pcs 4589605
fix: retrigger checks
anilkumar-pcs b284fb5
feat: remove env configuration
anilkumar-pcs 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: secrets- | ||
spec: | ||
entrypoint: print-secret | ||
templates: | ||
- name: print-secret | ||
container: | ||
image: argoproj/argosay:v2 | ||
args: [echo, "secret from env: $MYSECRETPASSWORD"] | ||
env: | ||
- name: MYSECRETPASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: test-secret | ||
key: testpassword |
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
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 don't think we want to list all the secrets. See #8534
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.
@terrytangyuan I can see the GetSecret method is available but it requires the service account name and we can only fetch the secrets associated with a service account using this method.
One approach is using Service account Lister to get all the service accounts and fetch the secrets of each SA using above mentioned GetSecret method. Although we might not have all the secrets with this approach.
Can you suggest any other alternate approaches?
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.
@terrytangyuan @anilkumar-pcs
I'd like to resolve #8685 but I don't have any better idea then
but I think those feature make large burden on argo-workflows....
any suggestion on this??