Skip to main content

1Password provider

Resolve secrets from shared 1Password vaults at runtime — no CLI tools to install, no credentials in YAML.

The 1Password provider uses the 1Password Go SDK and a service account token to fetch secrets on demand. Teams get centralized access control and audit logging from 1Password while Loom handles injection, file mounting, and redaction.

URI format

op://<vault>/<item-path>/<field>
SegmentDescriptionExample
<vault>Vault name (case-sensitive)Engineering
<item-path>One or more path segments identifying the itemdeploy or services/loom/deploy
<field>Field name on the itemtoken, password, username

Examples

ReferenceVaultItem pathField
op://Engineering/deploy/tokenEngineeringdeploytoken
op://Engineering/services/loom/deploy/tokenEngineeringservices/loom/deploytoken
op://Platform/db/staging/passwordPlatformdb/stagingpassword

Workflow usage

secrets:
DEPLOY_TOKEN:
ref: op://Engineering/deploy/token
DB_PASSWORD:
ref: op://Platform/db/staging/password
file: false

How resolution works

  1. Parse — Loom extracts vault, item-path, and field from the ref value. Query strings and fragments are rejected.
  2. AuthenticateOP_SERVICE_ACCOUNT_TOKEN is read from the runtime environment. If it is missing or empty, resolution fails immediately.
  3. Resolve — Loom initializes the 1Password Go SDK client and resolves the secret through the SDK API. No op CLI binary is involved.
  4. Inject — The returned bytes enter Loom's in-memory injection flow. Values are written to temp files (default) or placed directly in env vars, then registered with the redaction engine.

Runtime requirements

RequirementDetail
OP_SERVICE_ACCOUNT_TOKENExported in the shell that runs Loom
Vault accessThe service account must have read access to the referenced vault(s)

Resolution fails closed — secrets are never silently skipped.

Error codes

When resolution fails, Loom returns a deterministic error code:

Error codeTriggerWhat to check
SECRETS_PROVIDER_UNAVAILABLEToken missing/empty, or the SDK returns a non-recoverable authentication errorVerify OP_SERVICE_ACCOUNT_TOKEN is exported
SECRETS_REF_INVALIDMalformed op:// reference (missing vault, item, or field; contains query/fragment)Check URI format against the table above
SECRETS_REF_NOT_FOUNDVault, item, or field does not exist in 1PasswordConfirm the path in 1Password matches the ref

Security guarantees

  • Secret values never appear in CLI output, logs, or receipts — all output is redacted.
  • Credentials are never stored in workflow files — only op:// references.
  • Loom's redaction engine processes all resolved values before any output boundary.
  • Only service account tokens are supported — interactive 1Password sign-in is not available.

Next steps