kubernetes provider. Use this type for Amazon EKS also. Do not use the aws type for EKS.
Provider Settings
Dodo Payments must be able to get the discovery document and the JWKS of the issuer over HTTPS. The EKS OIDC issuer is public. For a cluster with a private issuer, use a
custom provider with uploaded keys. Refer to Custom OIDC.
To find the issuer of an EKS cluster, run:
Required Claims
The mapping must pinsub to one service account:
kubernetes.io object, thus pin them through sub.
Pod Configuration
Mount a projected service account token with the Dodo Payments audience, and pointDODO_PAYMENTS_IDENTITY_TOKEN_FILE to it:
expirationSeconds: 3600, this occurs after about 48 minutes. The SDK reads the file again for each exchange.
SDK Usage
kubernetes() helper reads /var/run/secrets/tokens/dodo-token. To use a different path, give the path to the helper.
Refer to SDK Usage for the other languages.