Credential providers
A credential provider gives workstations short-lived tokens that Ringleader gets and renews, so nobody creates, pastes or rotates a key.
A credential provider gives workstations short-lived tokens that Ringleader gets and renews, so nobody creates, pastes or rotates a key. You name it in an Integration where you would otherwise name a Secret. Ringleader asks the service for a token, adds it to the workstation’s requests as it does for a key stored in a Secret (see Injected credentials), and gets a new one before it expires. The token is never on the workstation.
Providers compared with Secrets
With a Secret, someone creates a key at the service, pastes it in, and replaces it when it expires or leaks. GitHub offers no API to create a personal access token, so that step is always done by hand. A provider removes it.
You can use a provider for these services:
- GitHub, through the Ringleader GitHub App. Workstations clone, push and open pull requests either as the app, limited to the repositories you list, or as each workstation’s owner. Connect workstations to GitHub with the Ringleader GitHub App shows the steps.
- Anthropic, through Anthropic’s workload identity federation. Claude Code on each workstation calls Anthropic with no API key stored anywhere.
- Remote MCP servers that sign people in with OAuth. Coding agents use the server as each workstation’s owner. Connect an MCP server with each person’s own account shows the steps.
Anthropic federation
With Anthropic federation, Claude Code on each workstation calls Anthropic through the endpoint your Ringleader deployment runs, as described in Gateway keys held by Ringleader for Claude Code. Instead of a key in a Secret, Ringleader signs a short statement about the request, and Anthropic exchanges it for a token under a federation rule you write. No Anthropic key exists to leak.
In the Claude Console, register your organization’s Ringleader issuer, and create a service account and a federation rule. Anthropic’s workload identity federation pages describe each. The issuer’s address ends in
/org/and your Ringleader organization’s uid, whichrl org get acme -o jsonpath='{.metadata.uid}'prints. The start of the address differs per deployment, and Ringleader does not show it, so ask whoever runs your Ringleader deployment.Create an
anthropicFederationprovider with the three IDs, asanthropicFederationshows.Name it in an
llmIntegration:apiVersion: workstations.ringleader.dev/v1 kind: Integration metadata: name: claude namespace: acme spec: type: llm selector: matchLabels: team: platform llm: endpoint: source: ringleader providers: anthropic: credentialSource: provider: kind: OrgCredentialProvider name: acme-anthropic
Signed statement claims
Anthropic’s rule matches the claims of the statement Ringleader signs. Its subject, the sub
claim, is set by the provider’s subject:
subject | sub |
|---|---|
org, or unset | org:<org uid> |
namespace | org:<org uid>:ns:<namespace> |
There is no third form. subject: principal is refused with “principal is not offered; match
the ringleader_principal claim in a federation rule”.
Every statement also carries two claims, whatever the subject:
| Claim | Value |
|---|---|
ringleader_namespace | The namespace of the Integration. |
ringleader_principal | The uid of the workstation owner’s User row, or of the ServiceAccount row when a service account owns the workstation. For a workstation in a WorkstationPool, that is the pool’s owner. |
Accept only some people’s workstations
To let only some people’s workstations get a token, match ringleader_principal in the Anthropic
federation rule. Anthropic’s rule offers two matchers for it:
claims, for one person. Each key is a claim name and each value the exact string it must equal, for example{"ringleader_principal": "<uid>"}.condition, a CEL expression, for several people. For example,claims.ringleader_principal in ["<uid-1>", "<uid-2>"].
Anthropic’s rule matching reference has the full grammar.
An org admin reads each person’s uid as metadata.uid in rl get users -o yaml. A member cannot
read User rows, but rl auth status shows their own as a user uid: line under each origin they
are logged in to. If the line is missing, run rl auth login once more.
A service account’s login shows none, so read its uid from
rl get serviceaccount <name> -n <namespace> -o yaml.
If a global admin deletes a person’s User row, their next sign-in creates a new row with a new uid. A rule written for the old uid stops matching, so update it.
GitHub organization settings that block the app
Some GitHub organization settings stop the app from working until a GitHub administrator changes them. Give this section to yours.
- Installing the app. Only an owner of the GitHub organization can install and link it. See Install the Ringleader GitHub App.
- IP allow lists (GitHub Enterprise Cloud). GitHub checks the address of every request that
carries the app’s token or a person’s token. Add the addresses those requests come from:
- Each Edge that serves your cloud workstations. The address
GitHub sees is the one your cloud gives the Edge’s VM for outbound traffic.
rl edge get <name> -n <namespace> -o yamlshows the VM’s public address asstatus.externalAddress. On Google Cloud, the VM sends from that address only withpublicAddress: true, and otherwise through your network’s Cloud NAT, so list the NAT’s address. Your cloud console shows which one your network uses. - The network of each computer that runs local workstations, whose requests leave from it.
- Your Ringleader deployment’s credential proxy and token service. The token service reads the installer’s role in the GitHub organization during an install, so if its address is blocked, the install ends with “GitHub would not show your role in this organization”. These addresses depend on your deployment and Ringleader does not show them, so ask whoever runs your Ringleader deployment.
- Each Edge that serves your cloud workstations. The address
GitHub sees is the one your cloud gives the Edge’s VM for outbound traffic.
- SAML single sign-on. A person needs an active single sign-on session when they authorize the app, both when an owner installs it and when a person connects their account.
- Enterprise managed users. A managed user cannot install apps on their own account, so the enterprise’s owners install the app on the organization.
Two other settings do not affect the app: OAuth app access restrictions, which apply only to OAuth apps, and the approval policy for fine-grained personal access tokens.
Next steps
- Connect workstations to GitHub with the Ringleader GitHub App installs the app and connects workstations to GitHub.
- Connect an MCP server with each person’s own account creates a provider for an MCP server and connects people’s accounts to it.
- CredentialProvider lists the fields of a provider and who may name one.
- Injected credentials shows where a token is added, and the same flow with a key in a Secret.