Approvals

Ask rules stop a request for a person to answer, with a fresh second factor each time

Not available yet Ask rules decide Deny until approvals are switched on with enforcement.

An Ask rule puts a person in front of an action that matters: a payment, a write to production, a host you have not seen before.

Ask  use  payment-keys
Ask  net  api.github.com  DELETE  /repos/*

What happens

  1. The request is refused at once. Pod never holds the connection open. A web request gets a 403 whose body names the rule, a reference that starts ask_, and when to retry. The agent can carry on with other work.
  2. The request is stored. The Ask outlives the connection and the sandbox's sleep. An Ask nobody answers ends as Deny after 24 hours.
  3. An approver sees it. Approvers see the Ask under Permissions, then Approvals.
  4. A person answers. The approver reads the decoded request and answers with a fresh second factor.
  5. The retry goes through. The answer takes effect on the sandbox with no restart, and the agent's retry is decided again: let through if allowed, recorded with the approver's name.

What the approver sees

A host name alone is never the whole question. The approver sees the method, the full address with its path, the size and type of what is sent, which tool's key would be attached, which sandbox asks and whom it works for, the rule that asked, and exactly what each answer would allow. Anything the agent says about why it wants this is shown apart, marked as the agent's claim.

When many sandboxes under one policy ask the same question, it is shown once, with the sandboxes listed. An answer covers the sandboxes listed and never sandboxes made later.

Answers

AnswerCoversHow long
Allow onceThis sandbox and this exact requestOne use, within 10 minutes
Allow for a timeThis sandbox, and the rule and thing as shown1 hour unless the approver picks another time, up to the policy's cap (24 hours unless the policy sets less)
DenyThe same as Allow for a timeThe same time, so retries do not ask again

There is no "always". A lasting change is a change to the policy, with what it newly allows shown first and a second factor of its own. A fork inherits no answers: each one names a single sandbox.

Who may answer

WhoMay answer?
A person named as an approver for the project, signed in, with a fresh second factorYes
The same person without a fresh second factor, or in a session an agent is drivingNo
Any API key, or any automated systemNo
Anything inside a sandboxNever
A webhookNo
Mapier staffNever

A fresh second factor means an authenticator app or a passkey, confirmed after the Ask was opened, good for this one answer. A phone code is never accepted.

Set the approvers under Permissions, then Approvals, then Who may answer, or with setApprovers. A project has at most 100 approvers. Changing the list takes the admin role and a fresh second factor.

Limits that keep Asks rare

People approve almost everything when they are asked too often, so Pod limits how many Asks reach them. When a limit is reached, further Ask rules decide Deny, with the reason limit.

LimitDefault
Open Asks for one sandbox3
New Asks for one sandbox in an hour10
Open Asks for one project50, with one notice to the project's admins
Asks shown to one approver at once10; the rest wait, oldest first
Answers by one approver in an hour30; new Asks go to another approver or wait

If one rule asks often, change the policy instead: allow what is always fine, deny what never is, and keep Ask for the rest.

From code and the command line

Read Asks with listAsks and getAsk, with an API key that has permissions:read. Answers come only from a person in the dashboard.

mpod approvals reads the same requests from your terminal:

mpod approvals --project prj_… list --kind spend
mpod approvals --project prj_… get ask_…

list shows waiting requests by default; --state answered shows answered and expired ones.