Repository navigation
fix(template): show the secretspec read with a reason - #59
runewright[bot] wants to merge 1 commit into
Conversation
The comment in secretspec.toml showed `secretspec run -- <command>` and a bare `secretspec get <NAME>`. Secretspec 0.21.1 refuses both in an agent session, because require_reason defaults to agents, and the bare get prints the value into the transcript. The comment now shows one read with --reason and says an agent session must give one. The template and the root copy change together. Change secret-read-reason. Co-Authored-By: Martin Zeman <N4M3Z@users.noreply.github.com>
|
review/correctness round 1 started on |
|
Claude finished @Runewright[bot]'s task in 1m 18s —— View job ReviewLooks good. The comment change is confined to
No other reviewer findings and no open review threads on this head. |
Runeseer review — cleanLooks good. The head commit is unchanged since the last review, no new code landed, and no reviewer findings are open.
No open findings · Reviewed |
The pull request body changed after the verdict; the approval is stale.
|
review/correctness round 2 started on |
Shows the example read in
secretspec.tomlwith--reason, which secretspec requires from an agent session.Plan
Change
secret-read-reason: proposal, one ADDED delta (secret-read-reason), and tasks underdocs/changes/secret-read-reason/.Changes
templates/base/secretspec.toml.jinjaand the rootsecretspec.toml: the read issecretspec run --reason "<why>" -- <command>, and the baresecretspec get <NAME>example is gone, because it prints the value.CHANGELOG.mdline.Testing
--reasonexits 1 with "Accessing secrets requires a reason", and the same read with--reasonsucceeds. The probe used a scratch manifest with a synthetic value.rune spec validate secret-read-reasonpasses. The guarded push pipeline passed on this head.Release Notes
secretspec.tomlcomment shows a read that works in an agent session.Note
Show
secretspec run --reasonexample in template commentsAgent sessions must give a reason when reading secrets, so the old comment example (
secretspec get) would fail if copied. Updates the comments in secretspec.toml and templates/base/secretspec.toml.jinja to show asecretspec run --reasonexample instead.docs/changes/secret-read-reason/secretspec.tomldeclarations themselves are unchangedMacroscope summarized 6b530e4.