Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support obtaining OIDC ID token from Git server #458

Open
folliehiyuki opened this issue Nov 21, 2023 · 0 comments
Open

Support obtaining OIDC ID token from Git server #458

folliehiyuki opened this issue Nov 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@folliehiyuki
Copy link

folliehiyuki commented Nov 21, 2023

What would you like to be added:

I'm not knowledgeable enough about how OIDC authentication workflow in CI/CD works. Here is a few documentation links that explain things better than I can ever do:

Basically, GitHub and GitLab runners can receive ID token from GitHub/GitLab respectively and use it to authenticate with an OIDC endpoint (usually a cloud provider). It would be nice if I can use this kind of ID token workflow inside Agola's Step.

Why is this needed:

Using OIDC authentication in CI/CD is much safer than having a static, unexpired credential stored. The token presented in CI/CD session expires when the job ends.

Additional context:

I prefer the way GitLab does it than GitHub (just exposing the JWT token as a variable inside the job environment). On the GitHub side you usually need a dedicated Action doing complex things to retrieve the token (an example is aws-actions/configure-aws-credentials)

Gitea currently doesn't support this workflow, but there are works underway (see go-gitea/gitea#26383).

Related topic on Woodpecker side: woodpecker-ci/woodpecker#2285

@folliehiyuki folliehiyuki added the enhancement New feature or request label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant