feat: expose agents-webhook-secret-regenerate (destructive)#10
Merged
Conversation
Closes Backlog row cmousycjv ("Parity port: agents-webhook-secret-regenerate
(destructive) → cueapi-action") — Drift-audit deferred 2026-05-07,
re-claimed by cueapi-secondary 2026-05-09 after pre-verify of action.yml
confirmed it was genuinely missing.
Wraps `cueapi agents webhook-secret regenerate <ref> --yes`. Always passes
--yes since CI has no interactive confirmation; the CLI sends the
X-Confirm-Destructive: true header automatically.
Operator caveat: rotation drops the old secret immediately. Any in-flight
webhook deliveries already signed with the old secret will fail signature
verification on the consumer side. Coordinate consumer-side updates if you
need zero-downtime rotation.
Files changed:
- action.yml: add `agents-webhook-secret-regenerate` to command description
+ new `runs.steps` case branch passing --yes; update unsupported-command
error message
- parity-manifest.json: move from `commands_missing_from_action` to
`commands_exposed_via_action` with provenance note
Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
Exposes
cueapi agents webhook-secret regenerateas theagents-webhook-secret-regenerateAction command. Closes Backlog rowcmousycjv(Drift-audit deferred 2026-05-07; re-claimed + verified-genuinely-open 2026-05-09 via action.yml inspection).What's added
action.yml:agents-webhook-secret-regenerateto thecommandinput description (Agent identity section), with a callout noting it's destructive + always passes--yessince CI has no interactive confirm.runs.stepscase branch:cmd=(cueapi agents webhook-secret regenerate); [ -n "$REF" ] && cmd+=("$REF"); cmd+=(--yes).parity-manifest.json:commands_missing_from_actiontocommands_exposed_via_action.Behavior
Server-side: the underlying
POST /v1/agents/{ref}/webhook-secret/regeneraterequiresX-Confirm-Destructive: true(substrate gate against accidental rotation). The CLI sends this header automatically when invoked with--yes. The new secret is printed to stdout for the caller to capture (e.g. viaoutputs:in a downstream step).Operator caveat: rotation drops the old secret immediately. In-flight webhook deliveries already signed with the old secret will fail signature verification on the consumer side. Coordinate consumer-side updates if you need zero-downtime rotation.
Stats
Test plan
python3 -c "import yaml; yaml.safe_load(open('action.yml'))"passespython3 -c "import json; json.load(open('parity-manifest.json'))"passescueapi agents webhook-secret regenerate <ref> --yesexists in cueapi-cli (PR #28, merged 2026-05-04). Action invocation matches the CLI shape.agents-webhook-secret-getcase (added immediately after for visual proximity).Related
cmousycjv(Parity port: agents-webhook-secret-regenerate destructive → cueapi-action)cueapi agentscommand group (messaging primitive — identity + inbox + sent) cueapi-cli#28 (merged 2026-05-04 — added the full agents commands group including this subcommand)POST /v1/agents/{ref}/webhook-secret/regenerate(cueapi-core; documented indocs/agents.mdshipped today via PR #68)Closes
cmousycjv000504jr0zsiu826(Parity port: agents-webhook-secret-regenerate destructive → cueapi-action)🤖 Generated with Claude Code