Secure AgentWorks identity and credentials
This page describes 1.14.0. Before upgrading, select the newer documentation version and follow Upgrade DVARA: 1.15.0 requires explicit Gateway clusters and workspace environment assignments.
AgentWorks authenticates every API caller and resolves every secret at the point of use. Agent definitions and release manifests should carry credential references, never plaintext provider, tool, or Gateway credentials.
Standalone identity
A new standalone installation writes a one-time bootstrap token to an owner-only file. Consume it through the API to create the first administrator. The token cannot be replayed.
Interactive sign-in creates a session. A signed-in user can issue an expiring API token at or below their current role. Use API tokens for the CLI, SDK, and automation. The value is returned once; store it in a secret manager or an owner-only file and revoke it when the client no longer needs it.
The token's permissions are checked against the user's current workspace membership on every use. An API token cannot create another token.
Credential references
A model gateway or deployment names a reference such as env://dvara-gateway, not the secret itself:
agentworks:
credentials:
environment:
dvara-gateway:
variable: DVARA_GATEWAY_KEY
scope: platform
gateway:
gateways:
dvara:
type: openai-compatible
base-url: https://gateway.example/v1
credential-ref: env://dvara-gateway
Set the narrowest supported scope. A missing, unknown, or out-of-scope reference is refused. Secret values are read only when a call needs them and are not logged.
For production, prefer mounted secret files or a secret provider over ordinary environment variables, which can be visible to child processes and diagnostics outside AgentWorks.
Flightdeck identity and service tokens
An enrolled Runtime establishes a certificate-bound identity with a one-time token, then renews over its authenticated channel. Keep the enrolment directory on a protected durable volume; it contains the Runtime key, certificate, trust material, verified assignment, and audit spool.
For each workspace it serves, the Runtime obtains short-lived DVARA Gateway service tokens. A
flightdeck://dvara-gateway reference resolves to the current token when a run makes a governed call. Tokens remain
in memory and are never stored or logged. If a token cannot be issued, the call fails instead of continuing without a
credential.
Where a run carries an end user's authorization, AgentWorks preserves the user's identity for governed MCP and A2A calls rather than replacing it with unrestricted Runtime authority.
Network and process boundaries
- Terminate TLS before exposing the API and configure trusted proxies explicitly.
- Restrict Runtime egress to the database or Flightdeck channel, DVARA Gateway, model and tool endpoints, artifact stores, DNS, and telemetry destinations it actually needs.
- Do not give a Flightdeck-managed Runtime PostgreSQL credentials.
- Run the packaged container as its fixed non-root user with a read-only root filesystem and explicit writable volumes.
- Keep bootstrap tokens, API tokens, enrolment tokens, provider credentials, and signing keys out of images, Git, logs, support bundles, and agent specifications.
Production checks
Before accepting production work:
- Verify the exact AgentWorks version and artifact digest.
- Confirm the production profile accepts the TLS, proxy, database, and secret configuration.
- Exercise authentication failures and workspace boundaries.
- Rotate a test credential and confirm the next call uses it.
- Revoke a test API token and Runtime identity and verify both stop working.
- Confirm audit records name the caller and credential-reference action without containing secret values.