Check a 1Password service account can read secrets
Permissions and secrets
You can test from the server's machine that the service account token reads a secret. Run op with a clean environment so only the token can sign in.
T3 Code docs: secrets 1password service account
What it’s for
Use it to confirm the token works before relying on references. The test checks your shell, not the server's environment. To confirm the server itself can read the secret, use the reference in a setting and then use that feature.
T3 Code docs: secrets 1password service account
When to use it
Use it when a feature shows an error naming the secret provider. That error appears if the server cannot read the secret, including when 1Password takes longer than 45 seconds.
T3 Code docs: secrets 1password service account
How to use it
On the server's machine, set OP_SERVICE_ACCOUNT_TOKEN in your shell to the token the server uses, then test reading a secret in a clean environment.
T3 Code docs: secrets 1password service account
Run the exact command on the cited lines, substituting your own secret reference for the example reference.
T3 Code docs: secrets 1password service account
If it prints Secret read, the token can read that secret.
T3 Code docs: secrets 1password service account
Unofficial notes. Not affiliated with Theo or t3.gg.