For the complete documentation index, see llms.txt. A markdown version of this page is at /reference/resources/secret/index.md.

Secret

A Secret stores a key, password or token under a name, and this page lists where you can name one and who must be able to read it.

A Secret stores a key, password or token under a name, so that no YAML you write carries the value. This page lists the fields that name a Secret and who must be able to read it for each. Create one with rl secret create.

Secret handling explains how Ringleader hides a value, who can read it and what a Ringleader-only Secret is.

Places that name a Secret

A Secret’s value reaches two kinds of place. In the first, Ringleader delivers the value to the workstation. In the second, Ringleader adds the value to a request as it leaves the workstation, and the workstation never has it. Who must be able to read the Secret differs between them:

Where you name the SecretWho must be able to read itA Ringleader-only Secret
${secret:NAME} in environment, on a Workstation, a WorkstationConfig or a pool templateThe person who applies the object, and the owner of the workstation each time Ringleader delivers the value.Refused.
sources[].git.credentialRef and tailscale.authKeyRef, on the same threeThe person who applies the object, and the owner of the workstation each time Ringleader delivers the value.Refused.
An llm Integration’s llm.endpoint.credentialRef with source: external, and an mcp block’s mcp.credentialRef in local modeThe Integration’s author, and the owner of each workstation it reaches, each time Ringleader delivers the value.Refused.
httpProxy.credentialRef and rules’ inject.value of an httpProxy Integration, and mcp.inject.value in injected mode, on a cloud workstationThe Integration’s author, checked again whenever Ringleader reads the value. The workstation’s owner needs nothing.Allowed.
The same fields, on a local workstationThe Integration’s author and the workstation’s owner. If the owner cannot read it, the host reports OwnerAccessDenied.Allowed. Ringleader adds the key only for a node-bound workstation that the Secret’s owner also owns, when every condition in Keys on local workstations holds. Otherwise, requests to the host go out without the key.
An llm Integration’s llm.providers.<provider>.credentialRef with source: ringleaderThe Integration’s author, checked on each request. The workstation’s owner needs nothing.Allowed.

Next steps