X.509 Workload Identity
X.509 workload identity federation exchanges a verified client-certificate identity for a short-lived Mixlayer access token. The certificate is required only for the exchange; use the returned bearer token for subsequent Mixlayer API requests.
Before you begin
You need:
- A root CA certificate in PEM format.
- Any intermediate CA certificates needed to build the chain.
- A client certificate and its private key on the workload.
- Permission to manage workload identity providers in your Mixlayer organization.
Keep the private key on the workload. Mixlayer provider configuration contains public CA certificates only.
Choose the workload identity
Mixlayer derives these assertion fields from the verified leaf certificate:
Prefer a stable URI SAN issued by a controlled certificate profile. A fingerprint identifies one certificate and therefore requires a policy update whenever that certificate is renewed.
The following policy assumes each client certificate contains one URI SAN:
Restrict admission to the expected workload:
Use a final authorization rule such as:
Create the provider
Console
API
Open Workload Identity, select New provider, and choose X.509.
- Enter a descriptive name.
- Add each root CA as a separate Trust anchor certificate.
- Add any intermediate CA certificates needed for chain construction.
- Map
mixlayer.subjectto the certificate identity selected above. - Add an admission condition and least-privilege fallback permissions.
- Create the provider and record its
wi_...provider ID.
Add one PEM certificate per field. Do not include a private key or concatenate unrelated roots into one field.
Present the certificate chain
The certificate file passed by the workload should contain the leaf certificate first, followed by its intermediate chain. Do not include the root certificate.
Export the client paths and provider ID:
Exchange the certificate identity
The JSON body does not contain a subject_token; the client certificate is the external credential.
Use the resulting token with the normal bearer header. You do not need to send the client certificate again:
Certificate requirements and rotation
Mixlayer validates the certificate path, CA constraints, validity period, and client-authentication usages. The leaf must not be a CA. If Key Usage is present it must allow digital signatures; if Extended Key Usage is present it must allow client authentication.
Mixlayer does not fetch certificate revocation lists or perform OCSP checks. Use short-lived client certificates and deactivate the provider or remove a compromised trust anchor when revocation is required.
During CA rotation, configure both old and new trust anchors before issuing certificates from the new CA. Remove the old anchor after every workload has rotated. The Mixlayer access token expires after at most one hour and never outlives the client certificate.