feat(secrets): add interactive masked prompt for secrets set by sbs44 · Pull Request #4861 · supabase/cli

@sbs44

- Prompt for secret values when name provided without value
- Display asterisks per character for input length verification
- Handle Ctrl+C, backspace, and non-printable character filtering
- Maintain backwards compatibility with NAME=VALUE inline syntax
- Skip SUPABASE_ prefixed names before prompting

@sbs44 sbs44 mentioned this pull request

Feb 16, 2026

@sbs44

- Check read byte count before accessing buffer to fix G602 gosec warnings
- Explicitly discard term.Restore error to fix errcheck warning

coderabbitai[bot]

@sbs44

Bytes >= 128 were silently dropped, corrupting UTF-8 secrets.