Limit which vaults agents can reach
Permissions and secrets
Agents run with the server's environment. That means an agent can use the 1Password service account token to read anything the service account can access.
T3 Code docs: secrets 1password service account
What it’s for
Use it to keep sensitive vaults out of agents' reach, while still letting T3 Code resolve the secrets it needs.
T3 Code docs: secrets 1password service account
When to use it
Use it when you put OP_SERVICE_ACCOUNT_TOKEN in the server's environment, because agents run with that environment and can use the token.
T3 Code docs: secrets 1password service account
How to use it
Give the service account access only to vaults whose items you would let an agent read.
T3 Code docs: secrets 1password service account
Give the service account only vaults whose items you would let an agent read, then use references as usual, for example op://Automation/provider-token/credential.
T3 Code docs: secrets 1password service account
Unofficial notes. Not affiliated with Theo or t3.gg.