The Pod Identity Webhook is a deployment of the EKS Pod Identity Webhook configured to use CoreWeave’s OIDC Workload Federation feature. Instead of using AssumeRoleWithWebIdentity, it uses a lesser-known API called the Container Credential Provider.When this webhook is installed, any pod which uses a Service Account with an annotation of caios.coreweave.com/inject: "true" will be injected with most of the variables needed to authenticate to CoreWeave AI Object Storage.
As an example, if you apply the following manifest into a cluster with the webhook enabled, the resulting Pod will have auto-injected configuration.
While all authentication is handled by the webhook, workloads still need to be configured to use Virtual Addressing Style. See Attaching endpoints for examples.
test-pod.yaml
apiVersion: v1kind: ServiceAccountmetadata: annotations: caios.coreweave.com/inject: "true" # <-- This activates the webhook name: test---apiVersion: v1kind: Podmetadata: name: test-6cf468f7b7-2g4c7spec: serviceAccountName: test initContainers: - name: aws-setup image: amazon/aws-cli:latest command: - sh args: - -c - | aws configure set default.s3.addressing_style virtual # Use https://cwobject.com if using from outside of a CKS Cluster aws configure set endpoint_url "http://cwlota.com" volumeMounts: - mountPath: /config name: aws-config env: - name: AWS_CONFIG_FILE value: /config/config containers: - name: awscli image: amazon/aws-cli:latest args: - s3 - ls env: - name: AWS_CONFIG_FILE value: /aws/config volumeMounts: - mountPath: /aws name: aws-config volumes: - name: aws-config emptyDir: {}
The resulting Pod will have auto-injected configuration, like the following example (some fields omitted for clarity):
config: # -- The CoreWeave Organization ID, six-character hexadecimal string found in the CoreWeave Console settings page orgID: "cweeee" # -- The CoreWeave <a href="https://docs.coreweave.com/glossary#availability-zone-az">Availability Zone (AZ)</a>, used as an AWS Region # Example: US-EAST-04A # See the <a href="https://docs.coreweave.com/platform/regions/about-regions-and-azs">CoreWeave Docs on Regions and AZs</a> region: "US-EAST-04A" # -- The Audience to be used for the projected token. # Must match the Audience requirement found in the Cloud Console # Workload Federation (OIDC) configuration. audience: https://coreweave.com/iam