Skip to content

Support stdin and hidden-prompt input for Worker secrets #150

Not planned

Description

@tonydehnke

Request

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.

Activity

  1. workers-devprod commented on Nov 24, 2026

    @workers-devprod
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions