Native OIDC Token for workload identity federation #33681
Labels
topic/gitea-actions
related to the actions of Gitea
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
Hello,
I would like to request a feature enhancement that allows Gitea Actions to produce a fully compliant OIDC token (including standard claims such as
iss
,sub
,aud
) for each job.Use Case:
We want to use Gitea's CI to securely authenticate with Google Cloud via Workload Identity Federation (WIF). Currently, the
ACTIONS_RUNTIME_TOKEN
is an internal token that doesn't meet Google's OIDC requirements (for example, it doesn't contain the standardiss
orsub
claims). Because of this, Google's Security Token Service (STS) rejects it, and we cannot perform ephemeral, keyless authentication from Gitea Actions to GCP.Why It's Important:
Request:
iss
,sub
,exp
, etc.), so it can be exchanged at Google's STS endpoint.permissions.id-token: write
–style configuration (similar to GitHub's approach), letting maintainers or repository owners enable/disable issuance of an OIDC tokenThe text was updated successfully, but these errors were encountered: