guardry/Answers/Credential brokering
What is credential brokering?
Credential brokering means a service uses a stored credential on behalf of an AI agent, so the agent gets the result and never the credential.
Credential brokering is a way for an AI agent to use a credential without receiving it. The agent asks a trusted service to perform an operation, the service performs it with the stored credential, and the agent gets back only the result. The credential stays in the store the whole time.
Why it matters
An agent that can read a secret can copy it. That is true of every system that hands values to agents. Brokering removes the read. There is no value for the agent to paste into a conversation, print in a log or write into a file.
Brokering also narrows what the credential can be used for. The agent can ask only for the operations the broker offers, which is usually far less than the credential itself would allow.
What good looks like
- The operations are few, named and narrow.
- The credential never leaves the store.
- An agent needs permission for each service it uses, and a person can be asked first.
- The limits are stated plainly. Brokering works only for operations the broker has built.
How Guardry does it
In Guardry a stored secret can be bound to a service. An agent with a service-only credential asks Guardry to perform the operation and never receives the secret.
Two services exist today, and only these:
- GitHub repository and issue reads for one named repository. The operation name is
repository.read. - TOTP one-time code generation from a stored seed. The operation name is
totp.generate.
The agent lists its services, asks for approval, then runs the operation with the grant:
guardry services list 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
For any other kind of credential, an agent that needs it has to read the secret, if its permissions allow. A TOTP code is itself sensitive for the short time it is valid. Guardry does not generate dynamic or short-lived provider credentials on demand, other than TOTP codes.
Questions
Does the agent ever see the GitHub token?
No. An agent with a service-only credential asks Guardry to perform the read and never receives the stored token.
Does the agent see the TOTP code?
The agent receives the code and never the seed. Treat the code as sensitive for the short time it is valid.
What if I need brokering for another provider?
Guardry does not offer it today. Services are limited to GitHub reads and TOTP. Guardry Actions, a planned product for approved agent actions against databases, APIs and private services, has no date.