Skip to content

uigraph secrets set, link, list - #28

Draft
Manasa-uigraph wants to merge 2 commits into
mainfrom
autopilot/p3-secrets-cli
Draft

Manasa-uigraph wants to merge 2 commits into
mainfrom
autopilot/p3-secrets-cli

Conversation

@Manasa-uigraph

Copy link
Copy Markdown
Contributor

CLI side of P3. The value is read from a hidden prompt or stdin, never argv (no --value flag; an extra argument is refused and not echoed). link stores a vault:// or aws-sm:// reference. Checked: go test -race ./... and lint pass; the tests fail if argv values or echo are allowed. Adds golang.org/x/term.

🤖 Generated with Claude Code

Manasa-uigraph and others added 2 commits December 1, 2026 18:28
`uigraph secrets set <service> <NAME>` reads the value from a hidden prompt or
stdin and never from argv: an extra argument or --value is refused without
echoing it, so a value can't end up in shell history or a process list.
`secrets link <service> <NAME> --from <ref>` stores a reference (vault:// or
aws-sm://) instead of a value, and `secrets list` shows names and status
only. Configuration comes from UIGRAPH_AUTOPILOT_URL, UIGRAPH_ORG_ID and
UIGRAPH_USER_TOKEN.

Adds golang.org/x/term for the hidden prompt.

Tests: a value as a third argument or --value is refused and never echoed (each
shown failing without its check).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
set <service> <NAME> reads the value from a hidden prompt on a terminal
or from stdin, never from argv: there is no --value flag, and an extra
argument is refused without being repeated or sent. The value is not
echoed. link <service> <NAME> --from vault://... or aws-sm://... stores
a reference for Autopilot to resolve at use time. list shows status,
never values. Uses UIGRAPH_USER_TOKEN, UIGRAPH_AUTOPILOT_URL and
UIGRAPH_ORG_ID like the runtime commands.

Adds golang.org/x/term for the no-echo prompt.

Tests fail with the guards removed: accepting the value as an argument,
echoing it, and echoing arguments in the error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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