guardry/

guardry/Answers/Human-in-the-loop approval

What is human-in-the-loop approval for secrets?

Human-in-the-loop approval means an AI agent must ask a person before it receives a sensitive secret, and the person approves or denies the request.

Human-in-the-loop approval for secrets means an AI agent cannot read a sensitive value by itself. The agent asks, a person sees what is being asked for and why, and the value is released only if that person approves. The approval covers one narrow request for a short time and is not a standing permission.

Why it matters

Some secrets are too sensitive for an agent to read whenever it likes, such as a production key that can move money or delete data. Approval puts a person's decision at the moment of use. An agent that has been misled by something it read cannot quietly take the value, because a person has to say yes first.

What good looks like

  • The request names the exact secrets and gives a purpose.
  • The approval is tied to that request, expires, and can be used a limited number of times.
  • The person can deny it.
  • The agent cannot approve its own request.
  • It is kept for the secrets that warrant it. A person who is asked too often may start approving without reading.

How Guardry does it

One of the permissions on an agent credential is to read secret values only after a person approves each request. An approval, which the CLI calls a grant, is tied to the exact entries and versions, expires, and has a use limit. A person approves or denies it in the dashboard.

The agent asks to read a named secret and says why, waits for the decision, then reads with the grant:

guardry grants request --read API_KEY --purpose "Run the billing migration"
guardry grants status GRANT_ID
guardry secrets read API_KEY --grant GRANT_ID

Approval also applies to services, where the agent never receives the stored credential at all:

guardry grants request --service SERVICE_ID --operation repository.read --purpose "Inspect the assigned repository" --minutes 5
guardry services execute SERVICE_ID --grant GRANT_ID

Limits

After a value is approved and released, the agent has it. An agent that can read a secret can copy it.

Approval in Guardry Secrets is about stored credentials. Guardry Approvals, a separate product that puts a person in the loop before an agent takes a consequential action, is planned and has no date.

Questions

Can an agent approve its own request?

No. An agent cannot approve anything. A person approves or denies each request in the dashboard.

How long does an approval last?

An approval expires and has a use limit. Both are shown on the request before you decide, and in the service example above the agent asks for five minutes.

Does approval apply to variables?

No. Variables are visible to every agent credential that covers their environment, without approval.