Guides
Documentation
Workspace settings

Workspace secrets

Hand your agents the credentials a build needs, without putting them in the repo.

Some builds need a credential — your app's master key, an API key for a test sandbox, a database URL. Workspace secrets store them encrypted in Fragua and hand them to the agent as environment variables, only for the runs that need them.

Adding and changing a secret

Open the workspace's Secrets page. Only an admin of the account can see or change them. Give each secret a name and a value; the value is never shown again — only its last four characters.

Name
— uppercase letters, digits, and underscores, starting with a letter, up to 64 characters — RAILS_MASTER_KEY, STRIPE_TEST_KEY. Names starting with FRAGUA_ are reserved.
Value
— up to 8,192 characters, encrypted at rest.
How many
— up to 25 per workspace.

Replace swaps a value in one step, and Delete removes it. Either way the change reaches new runs only; a run already going keeps the value it started with.

Which runs get them

Secrets go to spec shaping, issue diagnosis, and builds — the runs that read or run your code — and to the tests a build runs before it stops. Planning documents never see them, and neither do custom hook scripts. Each secret shows when it was last handed to a run, so you can tell it's actually arriving.

What belongs here, and what doesn't

Put a value here when every run should see it. A setting only your development server needs doesn't belong here: anything in a secret is in the environment of every build and its test run, so a variable that changes how your app behaves under test can make tests fail that pass on your laptop. Set those only on the command that starts the dev server, and document that in your Build rules.

See also: Guardrails and hooks · Execution agent