Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change adds an ambient OIDC provider that will enable when the following filesystem path is populated: `/var/run/sigstore/cosign/oidc-token`. The intended use of this (primarily) is to enable consuming Kubernetes OIDC tokens produced through Service Account Projected Volumes. To consume this you would add the following to your Kubernetes pod spec: ```yaml containers: - name: my-container-name image: ... volumeMounts: - name: oidc-info mountPath: /var/run/sigstore/cosign volumes: - name: oidc-info projected: sources: - serviceAccountToken: path: oidc-token expirationSeconds: 600 # Use as short-lived as possible. audience: sigstore ``` This would also work with Tekton step definitions, or other things that permit the use of projected volumes. Note: Fulcio doesn't currently allow any Kubernetes provider OIDC tokens on the public instance, but one of the things I plan to look at next is supporting the endpoints from GKE and EKS (both of which have public discovery endpoints). Related: sigstore/fulcio#219 Related: sigstore/fulcio#212 Signed-off-by: Matt Moore <mattomata@gmail.com>
- Loading branch information