Repository navigation
Release setup 2026-12-01.1: Slack invite request and review verification #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -482,6 +482,91 @@ has set another. You cannot see which, so never state a number as that project's | |
| project default belongs to a project owner or an organization owner or admin; the agent does not | ||
| change it. | ||
|
|
||
| ## How the approver proves who they are | ||
|
|
||
| By default an approver proves who they are by signing in to Keel. A review rule can ask for a | ||
| stronger proof with an optional `verification` object. Leave it out and nothing changes: Keel | ||
| sign-in, no extra step. It is a user policy decision. Write it only when the user asks for it; | ||
| never add it as a protection of your own. | ||
|
|
||
| **Where it goes.** The schema allows it in two places: | ||
|
|
||
| - **Project owner review** (`require_attestation` with `attestor` exactly `project_owner`): | ||
| `require_attestation.verification`. It may ask for an Okta level, a security key, or both. No | ||
| other attestor can carry it. | ||
| - **Typed approvers** (`approval_requirement`, Enterprise): `approval_requirement.verification`. | ||
| An Okta level goes only on a `user` requirement, and Keel refuses it when the policy is saved | ||
| unless that user is the project owner. A security key may go on `org_role`, `approver_group`, | ||
| `team`, `user`, or `email`, never on `service_principal` (an API key has no security key). Both | ||
| together only on the owner's `user` requirement. | ||
|
|
||
| **Never both on one rule.** A rule names `require_attestation` or `approval_requirement`, never | ||
| both. Keel refuses to save a rule that names both (422 `approval_requirement_ambiguous`), and a rule | ||
| saved that way before that check denies every request it matches (`policy.rule_denied`, detail | ||
| `approval_requirement_ambiguous`). For the project owner under `approval_requirement`, use type | ||
| `user` with the owner's user id. If an existing policy has such a rule, tell the user and keep only | ||
| `approval_requirement`; do not guess which one they meant to keep. | ||
|
|
||
| An Okta-group review ("Your team" in the dashboard, approval type `idp_group`) takes an Okta level | ||
| only, on its `approval_requirement.verification`. This schema does not publish `idp_group`, so do | ||
| not write one: tell the user to set that review up in the dashboard. | ||
|
|
||
| ```json | ||
| "verification": { | ||
| "require": ["idp_level"], | ||
| "idp_level": { | ||
| "identity_source_id": "<the user's Keel identity source id>", | ||
| "identity_source_issuer": "<that source's exact issuer>", | ||
| "accepted_acr": ["phrh"] | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| `require` lists the checks; all of them must be met. Each listed check has its own object, and an | ||
| unlisted one must not. A security key is `"require": ["security_key"], "security_key": {}`. Its | ||
| only class is `hardware_attested`, so there is nothing to choose. `version` may be left out. | ||
|
|
||
| **Okta level.** `accepted_acr` lists the levels Okta must report in its signed token for that | ||
| sign-in, such as `phr` (phishing-resistant) or `phrh` (phishing-resistant, hardware-protected). | ||
| Keel checks what Okta reports. It does not see the device the approver used, so Touch ID or a | ||
| passkey can meet a level only through Okta, if the user's Okta counts it at that level. The level | ||
| is met on the review sheet, so an approval from the dashboard or with an API key is refused. | ||
| `identity_source_id` and `identity_source_issuer` are facts about the user's own setup: ask for | ||
| them, never guess them. When the policy is saved Keel checks that the source is active in the | ||
| organization with exactly that issuer and that every level is one the source already accepts | ||
| (422 `policy.review_verification_invalid` if not). An owner with no operator link in that source | ||
| could never approve, so that rule is refused with 409 `policy.review_verification_unsatisfiable`. | ||
| A project with no organization cannot use a level. | ||
|
|
||
| **Security key.** Each approval is signed with the approver's own registered hardware security key | ||
| over the exact approval terms, and Keel verifies the signature before the vote counts. It is | ||
| available in production. A deployment that has it switched off | ||
| (`KEEL_REVIEW_VERIFICATION_SECURITY_KEY_ENABLED`) refuses to save a rule that asks for it, with 422 | ||
| `policy.review_verification_invalid`. A rule nobody able to approve could meet, because none of | ||
| them has a usable key, is refused with 409 `policy.review_verification_unsatisfiable`. | ||
|
|
||
| **Security key on every review.** That organization-wide setting is not part of a policy. Only an | ||
| organization owner can turn it on, in the dashboard. Never write a policy field for it. When it is | ||
| on, it applies to every review in the organization on top of the rule, and a rule cannot loosen | ||
| it. | ||
|
|
||
| **What the Permit can prove.** A Permit approved with a security key carries the key's signature | ||
| over the approval terms and Keel's signed statement for that vote (the Permit, request, approver, | ||
| key, and that the key was active). keel-verifier 3.39.0 or later checks it offline. When the key's | ||
| registration evidence is present it also checks that the key is hardware. Its execution Permit | ||
| carries Keel's signed check that the key was still active at dispatch. This covers approvals made | ||
| after keel-api began exporting the proof (2026-12-01). Earlier security-key approvals cannot be | ||
| downloaded and read as missing approval proof. | ||
|
|
||
| **Do not claim more than this.** That the key belongs to the approver rests on Keel's signed | ||
| statement, not on anything the verifier can check without Keel. A security key shows that a | ||
| registered key signed the terms. It does not show that the approver read them, or who held the | ||
| key. An Okta level is what Okta reported; Keel does not see the device. Only approving needs the | ||
| check; rejecting never does. | ||
|
|
||
| In the readback, say what the approver will have to do, in words: "to approve, the project owner | ||
| must sign in through Okta at the phishing-resistant, hardware-protected level (`phrh`)". | ||
|
|
||
| ## What requires a user decision | ||
|
|
||
| Three categories. Telling them apart is what keeps invention out of the document. | ||
|
|
@@ -740,6 +825,9 @@ Work this before showing anyone a draft. | |
| - [ ] **Availability.** Every threshold on a fallible fact is paired with a companion rule on | ||
| `<fact>.state`, or its absence is stated in the handoff. A threshold alone is silent | ||
| whenever Keel could not establish the value. | ||
| - [ ] **Review verification.** Any `verification` was asked for by the user, sits where the | ||
| schema allows it, and names an identity source the user gave you. No rule names both | ||
|
Comment on lines
+828
to
+829
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Require an identity source only for The documented security-key-only configuration uses Keep the user-request and placement checks for all verification objects. Apply the identity-source check only when
|
||
| `require_attestation` and `approval_requirement`. | ||
| - [ ] **Examples.** Nothing carried over from an example file that this user did not ask for. | ||
|
|
||
| Provenance catches invention; completeness catches silent omission. Faithfulness runs both ways: | ||
|
|
@@ -944,6 +1032,9 @@ and never allows customer deletion. `examples/stripe-refund-approval-enterprise. | |
| the same user decisions with an Enterprise-only `admin` organization-role approval requirement. | ||
| Note the rule order — the deny and unavailable-state guard come before the amount branches — and | ||
| that `$100` appears as `100000000`. | ||
| `examples/stripe-refund-owner-okta-level.json` sends every Stripe refund to the project owner, | ||
| who must sign in through Okta at level `phrh` to approve. Its identity source id and issuer are | ||
| placeholders for the user's own. | ||
|
|
||
| **Every restriction in that file was explicitly requested by the user in that scenario.** It | ||
| shows the JSON shape; it is not a menu of protections. Do not carry its deny rule, its $100 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| "name": "Stripe refunds with project-owner review at Okta level phrh (Production)", | ||
| "rules": [ | ||
| { | ||
| "if": { | ||
| "all": [ | ||
| { | ||
| "field": "context._keel.action_envelope.connector.identity.value", | ||
| "op": "eq", | ||
| "value": "stripe" | ||
| }, | ||
| { | ||
| "field": "context._keel.action_envelope.connector.tool_name.value", | ||
| "op": "in", | ||
| "value": [ | ||
| "create_refund", | ||
| "refund_payment" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "action": "require_human_review", | ||
| "require_attestation": { | ||
| "attestor": "project_owner", | ||
| "timeout_seconds": 3600, | ||
| "verification": { | ||
| "require": [ | ||
| "idp_level" | ||
| ], | ||
| "idp_level": { | ||
| "identity_source_id": "00000000-0000-4000-8000-000000000000", | ||
| "identity_source_issuer": "https://example.okta.com", | ||
| "accepted_acr": [ | ||
| "phrh" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description has a stale manifest hash.
The PR description says the website and dashboard will pin
SHA256SUMSata02a1cca735fa25aa87978d19b910c7638c77e8620018f7105878028425f2ec1. TheSHA256SUMSfile at this head hashes to4d254a5b9b0ecfef64a8ab922ec0a72411f6d6d75d5dc456d81be54625c22b8d. The valuea02a1ccadoes not appear in the repository. A consumer that pins the description value can reject this release when it verifies the manifest.Confirm the final hash before any consumer pins it:
Update the PR description and every consumer pin to the value that this command prints. Confirm the updated pins with both consumer owners before release.