GitHub Actions needs OIDC audience constraints

44 points by yossarian


calvin

GH Actions security is kinda rickety. If you want to prevent i.e. untrusted public users from being able to i.e. use a specific runner, there is no way to do so other than Actions files in the repo, which are attacker controlled anyways. It's pretty annoying for self-hosted public runners! One solution would be i.e. restrict allowed branches to run on at the runner level, but GH offers no such thing last I looked.

mort

I've always wondered what OpenID is and why everyone only seems to talk about the Connect part, whatever that is.

Not wondered enough to research it, mind you.

oliverpool

Seems pretty reasonable. I loosely (i.e. not a dedicated issue yet) suggested this to Forgejo (which added workload identity support in v15): https://codeberg.org/forgejo/forgejo/pulls/10481#issuecomment-20829260

aae

Gitlab has this https://docs.gitlab.com/ci/secrets/id_token_authentication/

alexjurkiewicz

If GHA's sub isn't sufficient, isn't the solution to push for sub enhancements (or additional metadata in custom claims) rather than trying to elevate aud?