-
Notifications
You must be signed in to change notification settings - Fork 14
feat: Add --redact to mask execs that stdout/err secrets #159
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
base: main
Are you sure you want to change the base?
Conversation
| SSORegistrationScopes string `ini:"sso_registration_scopes,omitempty"` | ||
| } | ||
|
|
||
| // AwsVaultSection is an [aws-vault] section of the config file |
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 suggest we minimise introducing changes to AWS config file, and if you could please align it with existing approach used for other options - combo of CLI argument and ENV variable? I think this would avoid adding cutom things, which might affect other parsers.
| BoolVar(&input.UseStdout) | ||
|
|
||
| cmd.Flag("redact", "Redact AWS credentials from subprocess output"). | ||
| BoolVar(&input.RedactSecrets) |
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.
We should default to false
| // When redaction is disabled, try doExecSyscall first for better performance | ||
| err = doExecSyscall(input.Command, input.Args, cmdEnv) // will not return if exec syscall succeeds |
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.
Could we perhaps leave the existing handling path here for backwards compatibility?
|
Thanks for your contribution, I've left few suggestions and questions. |
|
@Lingnik does the feedback make sense? |
|
Hi @Lingnik , are you still working on this? |
Like how
op run -- fooredacts secrets it's aware of.Because sometimes you want Claude Code to have access to your AWS account, but not the keys.