Repository navigation
feat(launch): read unset profile secrets through secretspec - #84
runewright[bot] wants to merge 2 commits into
Conversation
A launch profile's from_env key that the shell leaves unset is read with secretspec get from a manifest: the new secrets config key, RUNE_SECRETS, or ~/.config/rune/secretspec.toml when it exists and no env file is named. An empty secrets value turns the manifest off. With a manifest the env file is not read, so a stale ~/.env cannot answer for a failed read. Without one, the env file works as before. Each read passes a reason and the caller fields, so secretspec's audit log names the profile and the key. A missing manifest, a missing binary, or a failed read stops the launch with the key, the manifest, and a cause from a fixed list. Secretspec's own report is never repeated: a dotenv parse error quotes the failing line, which can hold a value. The SecretSource trait leaves room for the SDK. Change launch-secret-declaration-lookup. Co-Authored-By: Martin Zeman <N4M3Z@users.noreply.github.com>
|
review/correctness stood down on |
|
review/correctness stood down on |
Main carries this change already, as be0f4fc, with the follow-ups that hide values in the dry run, record the proof, and add secrets_profile. The merge takes the main side of every conflict, so the branch matches main. Co-Authored-By: Martin Zeman <N4M3Z@users.noreply.github.com>
|
review/correctness round 1 started on |
|
Claude finished @N4M3Z's task in 1m 19s —— View job
Looks good. The branch head carries the same tree as
|
Runeseer review — cleanLooks good. The branch head carries the same tree as
No open findings · Reviewed |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
review/correctness round 2 started on |
|
Claude finished @N4M3Z's task in 46s —— View job Runeseer review
Looks good. The branch head carries the same tree as
|
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The supplied base-to-head comparison is empty; the feature is already present on main. This PR introduces no additional behavior or risk. Notes:
You can add or adjust custom eligibility rules. Learn more. |
rune launchandrune runread a profile'sfrom_envkey that the shell leaves unset through secretspec, from a manifest the newsecretsconfig key names.Plan
Change
launch-secret-declaration-lookup: proposal, design, one ADDED delta (launch-secret-declaration-lookup), tasks, andadr.mdunderdocs/changes/launch-secret-declaration-lookup/.Changes
secretsconfig key and theRUNE_SECRETSoverride (src/ontology.rs). With neither set and no env file named, use~/.config/rune/secretspec.tomlwhen it exists. An empty value turns the manifest off.rune config set secrets <path>works.src/cli/launch/secrets.rs: theSecretSourcetrait andSecretspecBinary, which runssecretspec get <KEY> --file <manifest>with a reason and--caller rune, and returns stdout byte for byte.apply_profile_envwhen one applies, and never read the env file then. Without a manifest, keep the env file fallback. Read each key once per launch.config.example.yaml,docs/config-reference.json,docs/Manual Testing.md, andCHANGELOG.md.Testing
cargo test --workspace --all-features: every test binary passes. New tests cover the manifest read, the environment winning, one read per key, a failed read, a missing manifest, the argument list, and a fakesecretspecbinary.cargo clippy --workspace --all-targets --all-features -- -D warningsandcargo fmt --checkclean.rune spec validate launch-secret-declaration-lookuppasses.sol@claudewith no shell variable and no env file: secretspec's audit log shows the Keychain servedCLIPROXY_API_KEYwith rune's reason and caller.Release Notes
rune launchandrune runread unsetfrom_envkeys through secretspec from~/.config/rune/secretspec.toml, or the manifest thatsecretsorRUNE_SECRETSnames. Without a manifest, the env file works as before.Note
Read unset profile secrets through secretspec in launch
The PR diff contains only blank-line changes. There are no functional changes to the launch code, despite the stated intent in the title.
Macroscope summarized 6d8abce.