Ask for a signed approval
Have a person approve one exact action with a passkey, and check Laze's single-use token in a GitHub workflow or any receiver.
An app's server function can ask a person to approve one exact action, such as applying a plan to production, with a passkey. Laze signs the approval as a short, single-use token that the outside system checks with Laze's public keys, so a GitHub workflow trusts the person's approval and not the app's word.
Turn it on
Signing is behind the workspace flag signing. An Owner or Admin switches it:
laze flags set signing on
laze flags listWhile it is off, a request from a function is refused with signing_off.
Grant the app a target
A target is what the approval is for, such as github:acme/infra. An app asks only for targets an Owner or Admin granted it. A grant names:
- the app and the target
- the people who may approve
- how many different people must approve, 1 or 2
- whether each approver needs a passkey, the default, or a plain press
- whether the person who triggered the request may approve it
Only an Owner or Admin signed in as themselves, with a passkey proof, creates, changes or revokes a grant. A github:<owner>/<repo> target also needs the workspace's Laze GitHub App to cover that repository. Grants are managed through the REST API under /api/signing/grants/<workspace>. Settings has no page for them.
Ask from a server function
const request = await env.LAZE.approvals.request({
for: "github:acme/infra",
what: "Apply plan 812 to production",
hash: "sha256:<hex of the plan>",
});
// request: { id, status, url }Post url where the approvers see it. Asking again for the same target, text, details and hash while the first request waits returns the same request.
| Call | What it does |
|---|---|
approvals.get(id) | Reads the status: waiting, approved, refused, expired or cancelled |
approvals.token(id) | Returns the signed token once, after the last needed press |
approvals.cancel(id) | Withdraws a waiting request |
The token must be fetched within 10 minutes of the last press. Fetching it a second time is refused with signing_already_issued.
Approve or refuse
The link opens the Approval sheet on the Laze site, drawn from the stored request, never from the app. It shows what is asked, Applies to, App with its version and function, Plan, the expiry and how many approvals are still needed.
Press Approve with passkey, or Approve when the grant allows a plain press, or Refuse. Only people in the grant, signed in as themselves, can press. API keys, CLI tokens and agent keys never reach the sheet's buttons, and a Laze staff support visit is refused.
The passkey signs the exact text the sheet shows. A press for one request never fits another request, person or text.
What the token holds
The token is an RS256 JWT issued by https://laze.so, with the target as its audience. It names the workspace, the app and its version, the function, the plan hash, the line that was approved and each approver with their verified email. It expires 5 minutes after it is issued.
The public keys are at /.well-known/jwks.json and the discovery document at /.well-known/openid-configuration, so any JWT library or OIDC trust setup can check the token.
Check it in a GitHub workflow
The verify-approval composite action, kept at actions/verify-approval in the Laze repository, checks the token for the repository it runs in, then burns it so it runs once. Copy it into your repository, for example under .github/actions/verify-approval, and call it before the step that applies the plan:
- uses: ./.github/actions/verify-approval
with:
token: ${{ inputs.laze_token }}
plan-hash: sha256:<hex of the plan file>
workspace-id: <workspace id>
app-id: <app id>
approvers: ada@acme.com,bea@acme.com
min-approvers: "1"
require-passkey: "true"The action fails, and burns nothing, when the repository, workspace, app or plan hash differs, when an approver is not on approvers, when fewer people approved than min-approvers, or when a plain press reaches it with require-passkey on. It outputs approval-id and approvers.
The allow list lives in the receiving repository, under its own review, so a Laze admin who adds themselves to a grant still fails it.
Check it from another receiver
| Request | Effect |
|---|---|
POST /api/v1/signing/tokens/consume | Checks the token against the audience and plan hash you name, and burns it for your consumer id |
POST /api/v1/signing/tokens/introspect | Checks the token without burning it |
The same consumer may call consume again and gets the same answer. Any other consumer is refused with signing_token_used.
What is recorded
Every request, press, refusal, cancel, token issue, burn and grant change is an entry in the workspace audit log, under signing.*, with refusals carrying their code.
Also check: App hooks, Build apps with agents.