[team] Review fixes: deployment ticket on target.request, unknown author under others, refuse after sign (v0.18.1) #24
Reference in New Issue
Block a user
Delete Branch "fix/team-review"
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?
Fixes from an independent review of v0.18.0 (Custos docs/27_team_vault.md, "Review"). v0.18.1.
What
team_signmakes a 32-byte ticket per signed request and keeps it 25 hours. The ticket goes only into the sealedsign.reply(ticket).target.requestnow ends with"mac": HMAC-SHA256(ticket, domain ‖ the request withoutmac).team_target_releaserefuses a request without the right MAC.othersno longer fails open. With 2+ members, an empty author, or one no member is, isUnsatisfiable, andmay_approvesays why.team_refuseisReplayedonce the request was signed, so a refusal can never contradict a signature.Tests
cargo test --workspace --release: 275 passed, 0 failed.may_approve;Self-review
hmac(already a workspace dependency); verification is constant time (verify_slice).SecretStringin the body, only in the sealed reply, never in a view.target.requestwithoutmacno longer parses. Nothing used it outside this team's own repositories: Fabrica (T2) is told to use v0.18.1.