-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: Add support for custom trust policy conditions on iam-github-oidc-role
#547
Conversation
iam-github-oidc-role
iam-github-oidc-role
This PR has been automatically marked as stale because it has been open 30 days |
Hello @antonbabenko any chance I can get a review on this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the valuable addition! There are just a few small comments before we can merge it.
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
## [5.53.0](v5.52.2...v5.53.0) (2025-03-07) ### Features * Add support for custom trust policy conditions on `iam-github-oidc-role` ([#547](#547)) ([3eca351](3eca351))
This PR is included in version 5.53.0 🎉 |
Description
This adds support for custom trust policy conditions to the
iam-github-oidc-role
module.Motivation and Context
The GitHub documentation on [security hardening with OpenID connect] (https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect) specifies that:
However, this module currently only supports validation of
iss
,aud
andsub
. I have a use case where I also want to validateactor
andworkflow
but without this change, the module doesn't support that.Breaking Changes
I do not believe this breaks any backwards compatibility. The added variable defaults to an empty array of entries, much like in the
iam-assumable-role-with-oidc
modules and the dynamic configuration will not add anything if no values are provided.How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request