Standing approvals: always allow for this repository (v0.16.0) #19
Reference in New Issue
Block a user
Delete Branch "feature/standing-approval"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Standing approvals for signing keys: "always allow this, for this repository" (asked for by Mark on 2026-11-11; the app side is Custos
docs/15_standing_approvals.md).What
signing.standing: rules of repository + key (id andcreated) + kind + pipeline + origin (local/remote), and for an approval the targets it was granted for. Compared exactly, no wildcards.standing_can_grant,standing_grant,standing_rule_for,standing_rules,standing_revoke.signing_sign(req, Approval::Standing, now): signs only when a rule fits, records the new outcomestanding, counts the use (uses,lastUsed).standing-granted,standing-revoked(written only by grant and revoke;security_noterefuses them).docs/SIGNING.md("Standing approvals", the audit table, compatibility, the API),docs/FORMAT.md(values older cores refuse). Version 0.16.0.Never covered by a rule: another repository, key, kind, pipeline or origin; a request out of the key's scope (and a scope narrowed later stops the rule); a request without a run; a key's first signature; an approval target the rule was not granted for; a release signature asked through the mailbox; anything while
card-signingis ticked.Tests
Workspace: 240 passed, 0 failed (
cargo test --workspace --release). New:tests/standing.rs12, unit 3 (a_key_made_again_under_the_same_id_does_not_inherit_the_rule,an_older_reader_refuses_a_vault_in_which_a_standing_approval_was_granted,a_broken_standing_approval_makes_the_vault_refuse_to_open), and mandatory test 2 (no_api_path_returns_a_private_key) now also drives grant,Approval::Standingand the rule list.First red: 10 of the 12 integration tests failed against stubs (
standing_can_grantrefusing,standing_rule_forreturning none). The other two (a_test_key_and_a_server_runners_release_signature_cannot_start_a_rule,signing_with_standing_and_no_rule_is_refused_and_recorded) assert refusals and cannot fail against a refusing stub. The three unit tests were written after the code and were not seen red.Self-review
standing_grantstored the rule and then validated it, and on failure removed the rule with that id, so a grant that pushed an approval rule past 64 targets would have deleted the existing rule. Now the candidate is validated first and the stored rule is untouched on failure. No test covers the 64-target limit.ApprovalandOutcomegained a variant: a downstream exhaustivematchstops compiling (the desktop compares with==, the web vault does not readsigning).approvedorstanding, at or after the key'screated). The signing audit is never trimmed, so this holds; if it ever gets a limit, this rule needs its own flag on the key.standing_rule_forruns the fullcheckagain insidesigning_sign(two checks per signature). Cheap; kept for one code path.Not verified
custos-wasm) was not rebuilt; it does not readsigning.