Add secret commands#324
Merged
Merged
Conversation
Add `signadot secret` command set (create / update / get / list / delete) wrapping the Secrets API from the go-sdk. Values can be supplied via --value, --value-file, --value-stdin, or a flat YAML file with `-f` (with `--set var=val` expansion). Get/list print metadata only, since the API never returns plaintext. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Member
|
Worth adding a "## Secrets" section to
Otherwise the entire secrets feature is invisible to agents that load this skill, and #323's |
# Conflicts: # go.mod # go.sum
Add a Secrets section to agent-skills/signadot-cli/SKILL.md so agents loading the skill discover the new `signadot secret` commands and the plan run --param-secret binding. Also list secret/secrets in the skill description and argument-hint. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
@scott-cotton, added secrets to the skill in 03a0949. |
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.
Summary
signadot secret(aliassecrets) withcreate,update,get,list(aliasls), anddelete(aliasrm) subcommands wrapping the Secrets API from the go-sdk.--value(warns about shell history),--value-file,--value-stdin, or a flat YAML/JSON file with-f(with--set var=valexpansion). Value is required on both create and update, matching server-side validation.get/listprint metadata only (NAME,DESCRIPTION,CREATED,UPDATED) since the API never returns plaintext.-o json|yamlsupported throughout.go-sdkto a version that includes thesecretsclient.Test plan
go build ./...andgo vet ./...pass (verified locally)signadot secret --helpand each subcommand--helprender correctly--value,--value-file,--value-stdin, and-fpaths--value,--value-file,--value-stdinare rejected together-fis rejected with positional NAME and with--value*/--descriptionupdatedAtchanges ongetlistshows all secrets anddelete NAME/delete -f FILEremove themget/listnever include avaluefield in JSON/YAML output🤖 Generated with Claude Code