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

feat: Ensure that GitHub OIDC subject prefixes are normalied for repo: #310

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

bryantbiggs
Copy link
Member

Description

  • Ensure that GitHub OIDC subject prefixes are normalied for repo:

Motivation and Context

  • All of the subjects used in the iam-github-oidc-role will need to start with repo: so the code originally added that for users. However, nearly all documentation shows the subject with repo:... and users add this text into their subjects. This results in subjects that then look like repo:repo:... which is incorrect. This change normalizes the text to ensure that subjects only start with repo:... regardless of whether the user adds it or not in their provided subjects

Breaking Changes

  • No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor improvement over regexp :)

modules/iam-github-oidc-role/main.tf Outdated Show resolved Hide resolved
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
@bryantbiggs bryantbiggs merged commit b9873a0 into terraform-aws-modules:master Nov 21, 2022
@bryantbiggs bryantbiggs deleted the feat/strip-repo branch November 21, 2022 17:14
antonbabenko pushed a commit that referenced this pull request Nov 21, 2022
## [5.7.0](v5.6.0...v5.7.0) (2022-11-21)

### Features

* Ensure that GitHub OIDC subject prefixes are normalied for `repo:` ([#310](#310)) ([b9873a0](b9873a0))
@antonbabenko
Copy link
Member

This PR is included in version 5.7.0 🎉

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants