Identity, authenticator, and provider credential
These objects have different lifetimes and scopes:
Forge stores the enrollment public key, not the runtime private key. Setup,
runtime, and provider tokens are returned only for the delivery that creates
them and must never be written to logs.
Registration and enrollment
An Agent identity records its accountable owner, optional owning group, purpose, tags, lifecycle, and optional inventory relationship. Creating it does not create a provider principal, credential, grant, or enrollment. Each runtime enrolls independently:- Create an enrollment for the Agent identity.
- Copy the one-time setup token when Forge displays it.
- The runtime generates an EC P-256 key pair and exchanges the token with its public key.
- Forge consumes the short-lived token atomically and stores no private key or recoverable setup token.
Agent access
Open the provider in Integrations to configure its agent access limit. Define scopes in an agent’s Create drawer or Access tab. Scope editing and review stay in that surface. Provider setup is separate because discovery and mutation use different authorities.
The console manages versioned scope records for each agent. API clients still
use access-profile revisions and assignments. Customers do not need to select
or name profiles in the console.
AWS, Azure, Google Cloud, and GitHub scopes are isolated from one another.
Forge activates an access limit only after exact provider or broker readback
matches its desired configuration. Forge refreshes stale readback before session creation or issuance. A failed
refresh or mismatched readback blocks new issuance without changing the saved
profile.
Provider credential lifetimes
The assignment profile can reduce a configurable TTL but cannot exceed its
integration ceiling or the provider maximum. Disabling an assignment blocks
new issuance; an already delivered credential can remain usable until its
native expiry.
Create and enroll
In the console:- Open Identities → Agents and select Create.
- Choose an accountable owner, enter the workload purpose, and add operational tags. Linking an inventory agent is optional and does not grant access.
- Define access in the same drawer, review any changes, and select Done. Runtime enrollment is separate from creation.
- Open the identity’s Credentials tab, enter a runtime name, and select Enroll as the owner or a member of the owning team.
- Select Copy setup JSON to copy the enrollment ID, one-time setup token, expiry, and establishment endpoint together. Deliver the package to that runtime through your existing secret-delivery channel, then clear the one-time display.
- Confirm the enrollment becomes Active after the runtime exchanges the token with its generated P-256 public key.
enrollment.id, plus a self-contained setup package
with setup.enrollmentId, setup.setupToken, setup.expiresAt, and
setup.establishEndpoint. The establishment endpoint is an API path relative
to the same Forge API origin used to create the enrollment. Management endpoints require an authenticated organization session and CSRF
protection. Registration requires Agent Identity Register permission. Enrollment
requires Agent Identity Use permission and the required owner or team relationship.
Revocation and administrative session termination require Agent Identity Manage
permission and the required owner or team relationship. They are not currently part of the stable public
headless API; contact Forge before building long-lived automation against
them.
The runtime then generates its own EC P-256 key pair and sends the setup token
and public JWK to the returned establishment endpoint. It must retain the
private key locally. Later it requests a runtime bearer token from
POST /api/v1/agent-identity-runtime/token using a fresh signed proof. Never
copy a private key from one runtime to another; create another enrollment.
Request credentials through the runtime API
Registration and enrollment are available in the console and through management APIs. Creating sessions and issuing provider credentials use the authenticated runtime API. The console displays their history; it does not mint provider credentials directly or recover previously delivered secrets. After enrollment, request a runtime bearer token:r value followed by the 32-byte s value,
not DER. The signed path must include the exact query string when one exists.
Never reuse a nonce. Use the returned accessToken for runtime requests and
refresh it when it expires. Do not send possession-proof headers with runtime bearer requests.
Use a different Idempotency-Key for each new operation and reuse the same key
and body when retrying that operation. Keys must be nonempty and at most 256
characters.
Create a session, called a lease in the API:
lease.id, lease.expiresAt and immutable provider binding
snapshots. The effective duration can be shorter than requested. The session is
the window for requesting credentials, not the provider token’s expiry.
Request credentials for a provider binding from that session:
providerAlias; a provider name
works only when it identifies a single binding. requestedScope is required. The example requests AWS access to one bucket;
use the scope shape for your provider. AWS, GCP and GitHub can narrow an approved
assignment. Azure currently requires its complete assigned role envelope. No
request can expand the assignment or integration ceiling. Forge selects the
provider strategy; clients cannot force native issuance for brokered access.
The response contains providerGrant and one-time credential material. Store
that material securely. Secret-free history cannot redeliver it, including after
an interrupted response. Google Cloud uses brokered access: Forge keeps the
provider token and executes permitted requests through
POST /api/v1/agent-identity-runtime/leases/{leaseId}/provider-grants/{providerAlias}/{providerGrantId}/broker-requests.
GitHub installation tokens have a fixed one-hour lifetime. Azure controls its
native token expiry. Their actual expiry may extend beyond the session, and
Forge records each credential’s expiry separately.
End access early
A runtime can end its own session through the API:POST /api/v1/organizations/{organizationId}/agent-identities/{agentIdentityId}/leases/{leaseId}/end.
Use an authenticated management session and an Idempotency-Key.
Ending a session blocks new credential requests and attempts supported containment
of its issued grants. Inspect lease.containmentFacts and each grant’s state;
ending a session does not guarantee that every delivered provider token is
immediately invalid. GitHub supports token revocation, Google Cloud broker
requests stop, and AWS/Azure access can persist under the recorded native
containment and expiry limits. Provider outages can delay containment.
In the console, revoke a runtime enrollment or disable the agent to stop that
runtime or all runtimes. These broader actions also end their sessions. The
console currently has no per-session End or per-credential Revoke control, and
there is no separate API to revoke one grant independently of its session.
Re-enabling an agent does not restore revoked runtime enrollments.
Keyless provider access
Where supported, Forge uses workload federation instead of storing a long-lived provider key. Guided setup creates a dedicated operator or broker trust for the exact issuer, audience, subject, provider scope, and allowed permissions. Use the generated validation artifact to read the trust and permission boundary back from the provider. Access profiles do not silently expand when their limit changes. Create a new immutable revision, review the affected assignments, explicitly apply it, and confirm provider readback.Review and containment
The Agent drawer separates enrollment state, provider assignments, activity, and lifecycle actions. Disabling an Agent identity prevents new Forge authentication and issuance, but already issued provider credentials can remain valid until provider expiry or revocation. Use the provider access and activity sections to confirm containment.Troubleshooting
Use a distinct enrollment per runtime instance, rotate authenticators without
changing the stable enrollment when possible, and revoke abandoned enrollments
instead of deleting audit history.