You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support stdin and hidden-prompt input for Worker secrets #150
Please support reading Worker secret values from stdin and through a hidden interactive prompt, with secret values redacted from normal and dry-run output.
Current behavior
In cf 1.0.0-beta.9, cf workers secrets update --help offers --text, --key-base64, and --body, but no documented stdin or hidden-prompt input. Passing a real secret as a command argument can expose it through process inspection, shell history, or agent command transcripts.
Suggested interface
For example, a --text-stdin option or a hidden prompt when the value is omitted, plus stdin JSON input for bulk secret updates. Input should not be echoed or included in error/debug/dry-run output. EOF or empty input should fail clearly unless an empty value is explicitly requested.
This would let agents and automation read values from an existing credential store and pipe them directly into cf without placing the value in arguments or writing a temporary plaintext file.
Related: #103 covers output redaction. This request adds the secure input side; it does not request broader permissions or a change to authentication. No real credentials are included in this report.
Thanks for the suggestion! As of cf 1.0.0-rc.2, cf workers secrets update NAME --worker W --type secret_text without --text reads the value from piped stdin (for example printf '%s' "$VALUE" | cf workers secrets update ...), or shows a masked prompt on a terminal; empty input fails, and --dry-run redacts the value. Documenting this in --help and adding stdin input for bulk updates with cf workers secrets bulk-edit would be changes to cf, which we now track at #764, so please follow and upvote it there.
Activity
workers-devprod commentedon Nov 24, 2026
Thanks for the suggestion! As of
cf1.0.0-rc.2,cf workers secrets update NAME --worker W --type secret_textwithout--textreads the value from piped stdin (for exampleprintf '%s' "$VALUE" | cf workers secrets update ...), or shows a masked prompt on a terminal; empty input fails, and--dry-runredacts the value. Documenting this in--helpand adding stdin input for bulk updates withcf workers secrets bulk-editwould be changes tocf, which we now track at #764, so please follow and upvote it there.