1Password
Circuit reads from 1Password. It never creates or changes anything there.
Any value in a secrets file can be a 1Password reference, op://vault/item/field. Circuit reads it with the 1Password CLI, op, by itself, so you don't need op run.
You need op installed and signed in. It may ask you to unlock 1Password once a session. Circuit can also remember what it read for a while, so 1Password asks less often. See Remembering for a while.
There are two ways to use 1Password, and you can mix them:
| A. The password in 1Password (recommended) | B. Values in 1Password | |
|---|---|---|
| In git | .circuit/secrets, every value encrypted | .circuit/secrets, with op:// references |
| In 1Password | The one password that opens the file | Each password |
| Pick it when | You want secrets in git, opened by one shared password | The passwords are already in 1Password |
A. The password in 1Password
Put the password into a 1Password field yourself.
Tell Circuit where it is:
shcircuit secrets password --1password "op://Network/Circuit/password"Circuit checks that it opens the file, then writes the reference in it:
sh# .circuit/secrets CIRCUIT_SECRETS_PASSWORD="op://Network/Circuit/password" EDGE_01_PASSWORD="encrypted:AQx…"Commit
.circuit/secrets.
Only a reference may go there. The commit check stops a password written in plain text. circuit secrets list tells you where Circuit gets the password now.
A teammate needs op signed in, with access to that vault. There is nothing to pass around, and Circuit never asks them for the password.
To change the password, see Changing the password.
To stop using 1Password, run circuit secrets password --forget-1password. Circuit then asks for the password again.
To use 1Password in CI, see Run in CI.
B. The values in 1Password
A value in the secrets file points to a 1Password field:
circuit secrets set SNMP_COMMUNITY op://Network/SNMP/password# .circuit/secrets
SNMP_COMMUNITY="op://Network/SNMP/password"The reference isn't encrypted, because it isn't a secret. It only says where to find one. circuit secrets list shows where each value is kept, never the value.