The agent uses a profile token. Splicedock selects the backend credential for the call.
Credential selection
Splicedock checks the profile binding, the deployment defaults, and the backend configuration in that order.
Existing secret
credentials:
gh:
env:
- name: GH_TOKEN
from: env:GH_TOKEN_DEMODeclare gh first and set the referenced variable on the gateway. Use an environment or Vault reference to keep the raw secret out of the YAML.
Issue credentials on demand
Register a named command under credential_providers in gateway YAML. Reference that name with mint in a profile’s credentials or in credential_defaults. Declare the backend under tools before adding the binding. The examples below show gateway YAML fragments to merge into your configuration.
On first use, the broker runs the helper and caches the result for the profile, agent, backend and provider. Concurrent calls for that key share one mint. The broker refreshes before expiry and uses ttl_seconds when the helper supplies no expiry. A minting error fails the call. Scope the issued credential to the permissions the backend needs.
The examples use JSON output with a token and an expires_in value in seconds. Entries in env_allowlist pass named gateway environment variables to the helper. For other secret references, use the provider’s env list with from.
GitHub App → GH_TOKEN
The helper issues an installation token. Splicedock passes it to the gh process as GH_TOKEN. The token carries the GitHub App installation’s permissions.
credential_providers:
github-app:
type: command
command: node
args:
- /app/scripts/mint/github-app-token.mjs
env_allowlist:
- GITHUB_APP_ID
- GITHUB_APP_PRIVATE_KEY
- GITHUB_APP_INSTALLATION_ID
output:
format: json
expires_in_field: expires_inprofiles:
repo-reader:
tools: ["gh__*"]
credentials:
gh:
env:
- name: GH_TOKEN
mint: github-appVault → per-session MCP header
The helper issues a Vault child token with a profile policy. mcp-bridge needs per-session mode and VAULT_TOKEN in MCP_ALLOWED_ENV.
credential_providers:
vault-token:
type: command
command: node
args:
- /app/scripts/mint/vault-token.mjs
- "{profile}"
env_allowlist: [VAULT_ADDR, VAULT_TOKEN]
output:
format: json
expires_in_field: expires_inprofiles:
worker:
tools: ["vault__*"]
credentials:
vault:
auth:
type: header
name: X-Mcp-Env-VAULT_TOKEN
value: { mint: vault-token }Custom issuer → HTTP bearer token
This example assumes a reports HTTP backend and a helper supplied by your deployment. The helper prints JSON with token and expires_in. Splicedock sends the token in the Authorization header.
credential_providers:
reports-token:
type: command
command: /opt/bin/mint-reports-token
args: ["{profile}"]
env_allowlist: [REPORTS_CLIENT_SECRET]
output:
format: json
expires_in_field: expires_inprofiles:
analyst:
tools: ["reports__*"]
credentials:
reports:
auth:
type: bearer
token: { mint: reports-token }