The stack
Why X.509 for agents
An agent with a certificate has a verifiable identity, a clear issuance chain, and a lifecycle that CertGov can track, alert on, and enforce policy over.
How CertGov fits
Short-lived certificates + standing renewal grants
Workload certs should be short-lived — hours to days, not 90 days. CertGov supports sub-24-hour validity periods and standing renewal grants: a policy that auto-approves renewal requests for a specific workload or workload class without requiring human review on every rotation. This is the high-frequency issuance model workload identity requires:- Agent starts up and has no cert (or its cert has expired)
- Agent requests a new cert through CertGov’s API or MCP server
- Standing renewal grant matches — no human approval needed
- CA issues the cert in seconds
- Agent presents the cert on all API calls
- Agent renews before expiry — the loop repeats automatically
Domain Trust Profiles as agent policies
A Domain Trust Profile (DTP) is the policy object that governs who can request certs, under what conditions, and with what approval flow. For workload identity:- Create a DTP scoped to your agent namespace (e.g.
*.agents.internal,agent.*.yourdomain.com) - Set a short validity period (4h, 24h, 7d — whatever your rotation target is)
- Attach a standing renewal grant so approved agents renew without human review
- Require a justification note on first issuance so there’s an audit record
Kubernetes agents via cert-manager
If your agents run in Kubernetes, the certforge-issuer external issuer is the integration path. cert-manager handles the rotation mechanics; CertGov enforces policy on everyCertificateRequest:
Certificate manifest points issuerRef at CertGov. cert-manager handles renewal scheduling. CertGov evaluates each request against your DTP policy before forwarding to the CA.
See cert-manager integration and certforge-issuer for setup details.
Workload Identity Providers — keyless authentication
certforge-issuer (and any other workload) can authenticate to CertGov using a Kubernetes projected ServiceAccount token instead of a long-lived API key. This is configured through Workload Identity Providers in Settings. How it works:
The CertGov server must be able to reach the cluster’s OIDC endpoint at
{issuerURL}/.well-known/openid-configuration to fetch the signing keys. For private clusters, ensure network access from the CertGov server to the API server’s OIDC endpoint.
MCP: agents that govern their own certs
CertGov exposes an MCP server that AI agents can call directly. An agent can request its own certificate renewal as a first-class operation — no human in the loop for routine rotation.What CertGov tracks
Once a workload cert is issued through CertGov, it enters the standard lifecycle:- Inventory: every workload cert is visible alongside server certs — expiry dates, issuing CA, requesting workload, approving policy
- Expiry alerting: CertGov alerts before workload certs expire, just like server certs
- Compliance rules: you can write compliance rules that enforce rotation frequency, minimum validity periods, or required CA for workload certs
- Audit trail: every issuance, renewal, and revocation is logged — who (or what) requested it, which policy matched, who approved
What CertGov provides
For workload identity, CertGov is the full issuing authority — not a governance layer over a third-party CA. It runs a platform-managed intermediate CA (backed by Azure Key Vault) that signs every workload cert directly.
You do not need to configure a CA connector for workload identity. The platform intermediate handles issuance.
Setting up workload identity
1
Create a workload identity
Go to Workload Identity → New Identity. Set a display name, type, CN, and optional SANs. The CN is baked into every cert issued for this identity and cannot be changed after creation.
2
Generate an enrollment token
Open the identity and click Generate Token. Copy the token — it is shown only once. The workload uses this token to bootstrap its first certificate.
3
Enroll the workload
The workload generates a key, creates a CSR, and POSTs it with the token to
/api/enroll/workload. CertGov ignores the CSR’s CN and SANs — the cert reflects the identity configuration. After enrollment the workload authenticates all future renewals via mTLS.4
Configure AWS Roles Anywhere (optional)
If the workload needs to assume AWS IAM roles, go to Workload Identities → CRL Distribution, add your Trust Anchor, Profile and Role ARNs, and create the CertGov push role shown there. CertGov pushes the CRL to Roles Anywhere on every revocation and on a regular schedule.
5
Configure the services that accept the certs
Your services must trust the CertGov CA, check revocation, and check your organization ID. See Accepting Certs in Your Services.
Example: short-lived workload cert via API
Further reading
- Workload Identity: Setup & Testing — step-by-step: create an identity, generate a token, enroll, renew, verify, configure AWS Roles Anywhere
- Accepting Certs in Your Services — trust, revocation and organization checks for nginx, Envoy/Istio, Go, Java and AWS
- cert-manager integration — Kubernetes-native workload cert rotation
- certforge-issuer — the cert-manager external issuer
- MCP server — AI agent self-service cert operations
- Domain Trust Profiles — policy objects that govern issuance
- Approval workflow — standing grants and auto-approve rules