Skip to content

fix(cli): mask secret environment variable input during prompts#159

Merged
ben-rogerson merged 3 commits into
mainfrom
fix/secret-env-prompts-not-masked
May 13, 2026
Merged

fix(cli): mask secret environment variable input during prompts#159
ben-rogerson merged 3 commits into
mainfrom
fix/secret-env-prompts-not-masked

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

When prompting for environment variables marked secret: true, the user's input was echoed to the terminal and captured in scrollback. Switch to a silent output stream for readline when reading secret values, masking the input while keeping the prompt text visible.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

When prompting for environment variables marked `secret: true`, the user's input was echoed to the terminal and captured in scrollback. Switch to a silent output stream for readline when reading secret values, masking the input while keeping the prompt text visible.
@ben-rogerson ben-rogerson enabled auto-merge (squash) May 13, 2026 22:20
@ben-rogerson ben-rogerson merged commit 6acaa44 into main May 13, 2026
1 check passed
@ben-rogerson ben-rogerson deleted the fix/secret-env-prompts-not-masked branch May 13, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant