Skip to main content
Beta
Factory is in private preview and is enabled per workspace by the Orq.ai team.
A Vault is a named collection of Secrets. Factories attach vaults, and every work item that runs in the factory receives the secrets of its attached vaults as environment variables. Vaults keep credentials such as registry tokens, test database URLs or third-party API keys out of repositories and prompts, and let several factories reuse the same values.

Vault scopes

A vault has exactly one scope, chosen at creation and immutable afterwards: Workspace vaults are created and shared by workspace Admins. Factory vaults are managed by anyone with access to the factory. A vault outside the reach of the current user is not listed.

Create a vault

  1. Open Settings > Vaults and click Vault.
  2. Enter a Name and an optional Description, then click Create.
  3. Open the vault and add its secrets as described in Add a secret.
  4. Edit the vault to switch Sharing between All factories and Selected factories.
Vaults list in light theme showing a release-signing vault with its workspace scope, secret count, and description, and the Vault button above the table.Vaults list in dark theme showing a release-signing vault with its workspace scope, secret count, and description, and the Vault button above the table.

The Vaults list in Settings, with the Vault button and the Scope column.

Add a secret

A workspace vault opens its own page with a Secrets tab; a factory vault lists its secrets inline on the factory’s Vaults page.
  1. Open the vault: Settings > Vaults for a workspace vault, or Factory Settings > Vaults for a vault the factory owns.
  2. Click Secret in the header of a vault page, or Add secret above a factory vault’s secret list.
  3. Enter the Secret name and the rest of the fields in Secrets.
  4. Click Create secret on a vault page, or Create in the dialog.
New secret form in light theme with the secret name STAGING_DB_URL, a note, the Secret kind selected and a masked value.New secret form in dark theme with the secret name STAGING_DB_URL, a note, the Secret kind selected and a masked value.

The New secret form of a vault, with the Secret name, Note, Kind and Value fields.

Opening a secret from the list edits it: Secret name is read-only, and Value starts blank. Fill it to rotate the value, or leave it blank to keep the current one.

Attach vaults to a factory

Open Factory Settings > Vaults and attach a vault from the list of vaults the factory may use: its own vaults plus the workspace vaults shared with it. The Effective secrets table shows the resulting environment of a work item: one row per variable name with the vault that supplies it. Attachment order is the precedence order. When two attached vaults define the same name, the first attached vault wins and the others are listed as shadowed. Reorder the attachments to change which vault wins. A vault cannot be deleted, and a factory cannot be removed from a workspace vault’s sharing, while that factory still has the vault attached. Detach it first.

Attach vaults to a Runner

A Runner lists the vaults its Sessions receive, up to 32. Select them in the Vaults field of the Runner.

Secrets

Each secret in a vault has: Rotating a value reaches running work items on their next credential refresh.

Restrict a task to specific vaults

By default a task’s work items receive every vault attached to the factory. When creating or editing a task, restrict it to a subset of the attached vaults, or to none, when the work must not see a credential.

Limitations