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
- The request is refused at once. Pod never holds the connection open. A web request gets a
403whose body names the rule, a reference that startsask_, and when to retry. The agent can carry on with other work. - The request is stored. The Ask outlives the connection and the sandbox's sleep. An Ask nobody answers ends as Deny after 24 hours.
- An approver sees it. Approvers see the Ask under Permissions, then Approvals.
- A person answers. The approver reads the decoded request and answers with a fresh second factor.
- 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
| Answer | Covers | How long |
|---|---|---|
| Allow once | This sandbox and this exact request | One use, within 10 minutes |
| Allow for a time | This sandbox, and the rule and thing as shown | 1 hour unless the approver picks another time, up to the policy's cap (24 hours unless the policy sets less) |
| Deny | The same as Allow for a time | The 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
| Who | May answer? |
|---|---|
| A person named as an approver for the project, signed in, with a fresh second factor | Yes |
| The same person without a fresh second factor, or in a session an agent is driving | No |
| Any API key, or any automated system | No |
| Anything inside a sandbox | Never |
| A webhook | No |
| Mapier staff | Never |
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.
| Limit | Default |
|---|---|
| Open Asks for one sandbox | 3 |
| New Asks for one sandbox in an hour | 10 |
| Open Asks for one project | 50, with one notice to the project's admins |
| Asks shown to one approver at once | 10; the rest wait, oldest first |
| Answers by one approver in an hour | 30; 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.