Repository navigation
uigraph secrets set, link, list - #28
Draft
Manasa-uigraph wants to merge 2 commits into
Draft
Manasa-uigraph wants to merge 2 commits into
Manasa-uigraph wants to merge 2 commits into
Conversation
`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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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