Skip to content

Conversation

@rmvangun
Copy link
Contributor

The onepassword CLI secret provider used shell.ExecSilent. This function returns output when run via --verbose. Because the secret had not yet been retrieved, it was not yet being scrubbed.

The fix is to just use the direct exec.Command call, reducing any more code that could introduce such leakages and retreiving the secret directly from the command.

The onepassword CLI secret provider used `shell.ExecSilent`. This function returns output when run via `--verbose`. Because the secret had not yet been retrieved, it was not yet being scrubbed.

The fix is to just use the direct `exec.Command` call, reducing any more code that could introduce such leakages and retreiving the secret directly from the command.
@rmvangun rmvangun added the bug Something isn't working label Jul 21, 2025
@rmvangun rmvangun merged commit 5eb841e into main Jul 21, 2025
13 checks passed
@rmvangun rmvangun deleted the fix/secret-leak-verbose-output branch July 21, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants