Secrets

Field reference for the Secrets component in the Agent Gateway dashboard: secret types, fields, and lifecycle operations.

Secrets store encrypted credential values on the gateway so that surfaces and transit points can reference a credential by ID rather than embedding a raw value.

Overview

A secret holds one encrypted value: an API key, bearer token, password, certificate, or similar credential. Once created, the raw value is never exposed in exported configuration or dashboard forms. Any configuration that needs the credential references the secret by its Secret ID.

This model means rotating a credential requires updating only the secret. Every surface and element that references that Secret ID uses the new value on the next request; no surface update required.

Secrets are used in two common surface configurations:

  • Caller authentication (API Key method): the Secret ID field on the API Key source authentication element points to a secret whose value is the expected API key credential. The gateway checks the inbound key against this secret on each request.
  • Transit Point target authentication: the Transit Point’s Authentication section references a secret to inject credentials (bearer token, API key header) into outbound calls to the external destination.

For a step-by-step flow that uses a secret for surface access control, see Restrict surface access with API key authentication.

Fields

FieldRequiredDescription
NameYesA human-readable label, for example OpenAI API key – production.
Secret IDYesAuto-generated from the name in slug format. Used when referencing the secret in other configuration. Cannot be changed after the secret is saved.
Secret TypeYesDescribes the kind of credential. See Secret types below.
ValueYesThe credential value. Stored encrypted at rest. Not visible after the initial save.
DescriptionNoOptional notes, for example the rotation schedule or the issuing service.
TagsNoFree-form labels for grouping and filtering secrets.

Secret types

TypeDescription
GeneralA generic credential not covered by more specific types.
ApiKeyAn API key credential.
DatabasePasswordA database password.
CertificateA certificate-type credential. Note: full certificate objects are managed separately under Certificates in the sidebar.
SshKeyAn SSH private key.
TokenA bearer token or similar token-type credential.

The type is descriptive only; it does not change how the gateway stores or injects the value.

Operations

Create a secret

In the sidebar, select Secrets, then select New Secret. Fill in the required fields and select Save. The Secret ID is auto-generated from the name but can be edited before saving. It cannot be changed afterwards.

Update a secret value

Open the secret from the Secrets tab and enable the Update value toggle. Enter the new value and select Save. All surfaces referencing this secret by ID use the new value immediately; no surface update is required.

Delete a secret

Select the secret from the Secrets tab and select Delete.