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

fix: Only include CA thumbprint in OIDC provider list #2769

Conversation

danielfrankcom
Copy link
Contributor

Description

This change modifies the OIDC provider thumbprint_list, so that it only contains the CA fingerprint, rather than all fingerprints.

Motivation and Context

Addresses #2732, by reverting the change from #2307.

According to the description of #2732, #2307 introduced the inclusion of all certificate fingerprints in the thumbprint_list. Based on a later documentation change in hashicorp/terraform-provider-aws#32847, only the CA fingerprint should be included in the thumbprint_list.

From the latest docs, the following should be used:

thumbprint_list = [data.tls_certificate.example.certificates[0].sha1_fingerprint]

Breaking Changes

This shouldn't break existing functionality, since the root CA encompasses the authority provided by any other certificates that were previously included.

How Has This Been Tested?

I tested this change by modifying the reproduction code provided in #2768 to reference the modified eks module.

Before the change, 4 fingerprints were included for the OIDC provider. After the change, only the single root CA fingerprint was included.

  • I have executed pre-commit run -a on my pull request

As per terraform-aws-modules#2732 and #32847, only the CA thumbprint should be included in
the OIDC provider thumbprint list.
@danielfrankcom danielfrankcom force-pushed the dev/daniel.frankcom/2732/only-ca-fingerprint branch from e88b0d7 to 691f170 Compare October 6, 2023 21:50
@danielfrankcom danielfrankcom changed the title Only include CA thumbprint in OIDC provider list fix: Only include CA thumbprint in OIDC provider list Oct 6, 2023
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

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

thank you!

@bryantbiggs bryantbiggs merged commit 7e5de15 into terraform-aws-modules:master Oct 6, 2023
17 of 18 checks passed
antonbabenko pushed a commit that referenced this pull request Oct 6, 2023
### [19.17.1](v19.17.0...v19.17.1) (2023-10-06)

### Bug Fixes

* Only include CA thumbprint in OIDC provider list ([#2769](#2769)) ([7e5de15](7e5de15)), closes [#2732](#2732) [#32847](https://github.com/terraform-aws-modules/terraform-aws-eks/issues/32847)
@antonbabenko
Copy link
Member

This PR is included in version 19.17.1 🎉

Copy link

github-actions bot commented Nov 6, 2023

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 Nov 6, 2023
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.

Thumbprint list should only include CA fingerprint
3 participants