Skip to content

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 1PasswordThe one password that opens the fileEach password
Pick it whenYou want secrets in git, opened by one shared passwordThe passwords are already in 1Password

A. The password in 1Password ​

  1. Put the password into a 1Password field yourself.

  2. Tell Circuit where it is:

    sh
    circuit 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…"
  3. 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:

sh
circuit secrets set SNMP_COMMUNITY op://Network/SNMP/password
sh
# .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.

Released under the Business Source License 1.1.