change-approval attestor
Records one person's approval of one exact change: the repository, the base and head commits, the digest of the changed paths the gate showed, the policy release the approval is for, and the sensitive watchpoints the person reviewed.
| Field | Value |
|---|---|
| Name | change- |
| Predicate type | https: |
| Lifecycle | prematerial |
| Default binary? | Yes |
What it captures
The predicate fields, as the attestor signs them:
repository:github.com/.<owner>/ <repo> base_,commit head_: full commit ids. The approval coverscommit base..headand nothing else.changes_: hex sha256 of the observed changes the gate showed fordigest base..head.release_: hex sha256 of the policy release the approval is for.digest watchpoints[]:{ id,for each touched sensitive watchpoint the person reviewed. Empty when none were touched.path, category } decision: alwaysapprove.signer_: the email the person signs in as. A verifier requires it to equal the certificate's email.email approved_at: UTC, truncated to the second.
Subjects emitted: commitsha: (the head commit id), changes:, and, for a SHA-1 head, https://. That last one is the shape an external attestation's commitSubject can declare, so a verify seeded by the commit (--subjects sha1:) finds the approval.
When to use
When a policy needs proof that a named person looked at a specific change before it landed, for example a gate that holds a push touching sensitive paths until a person approves that exact base..head and policy release. A person signs it; an agent cannot.
Flags
Each is a cilock run / cilock attest flag (see cilock run --help-).
| Flag | Required | Purpose |
|---|---|---|
--attestor-change- | Yes | Repository the change is in, github.. |
--attestor- | Yes | Full commit id the change is based on (the protected branch tip the gate diffed from). |
--attestor- | Yes | Full commit id of the exact change being approved. |
--attestor-change- | Yes | Hex sha256 of the observed changes for base..head. |
--attestor-change- | Yes | Hex sha256 of the policy release the approval is for. |
--attestor-change- | Yes | Email you sign in as. |
--attestor-change- | No | Path to a JSON array of {id,. A relative path resolves against the working directory. |
Gotchas
- Human only.
Attestrefuses unless the run signs through--human(the platform's browser login). An enrolled agent or a stored key would sign an approval no person gave, so the attestor returns an error instead. Seecilock run. - Never auto-detected. The detector fires only when
CILOCK_is set. Name the attestor withCHANGE_ APPROVAL -a change-; the run still needs every required flag or it refuses.approval - Every field is validated before signing. A missing or malformed value fails the run rather than producing a partial approval.
CLI example
cilock attest --human --step change-approval -a change-approval \
--attestor-change-approval-repository github.com/acme/widget \
--attestor-change-approval-base "$BASE_SHA" \
--attestor-change-approval-head "$HEAD_SHA" \
--attestor-change-approval-changes-digest "$CHANGES_DIGEST" \
--attestor-change-approval-release-digest "$RELEASE_DIGEST" \
--attestor-change-approval-signer-email [email protected]See also
- Catalog row
design-, the same human-only pattern for a design documentsignoff github-,review gitlab-,review code-review
Reference generated from the product documentation. Match commands and support details to your installed release.