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

Add support for fetching and using a GitHub Actions OIDC token #5146

Open
evankanderson opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@evankanderson
Copy link
Member

Please describe the enhancement

With #5145, the Minder server will be able to accept a GitHub Actions OIDC token for authentication. If no other authentication source is available (MINDER_AUTH_TOKEN, ~/.config/minder/credentials.json, etc), the Minder CLI should check for the ACTIONS_ID_TOKEN_REQUEST_URL environment variable (and the ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variable), and use those to fetch an OIDC token to present to the Minder service.

See https://github.com/evankanderson/actions-id-token-testing/blob/main/.github/workflows/minder-auth-token-test.yaml#L17 for an example in shell of this flow.

Solution Proposal

When used in GitHub Actions flows where no other credentials are available, the Minder CLI should automatically authenticate using the ambient GitHub Actions OIDC identity, with an audience of minder (or as set by configuration / determined by #5145).

Describe alternatives you've considered

Manually setting MINDER_AUTH_TOKEN in GitHub Actions, which is a bit gross to document.

Additional context

No response

Acceptance Criteria

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant