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

Update the github certificate thumbprints #2033

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

gammazero
Copy link
Collaborator

@gammazero gammazero commented Jun 28, 2023

Looks like github changed certs, so we need a new fingerprint. Otherwise, ECR builds are failing with error:

"OpenIDConnect provider's HTTPS certificate doesn't match configured thumbprint"

I manually added the new fingerprint in the AWS console (IAM > identity providers > token.actions.githubusercontent.com) to see that it fixed the build problem, so now adding it here. The old fingerprint is still there in case this is a temporary situation and github changes back, or some servers still present the old certs.

Looks like github changed certs, so we need a new fingerprint. Otherwise, ECR builds are faining fith error:

"OpenIDConnect provider's HTTPS certificate doesn't match configured thumbprint"

I manually added the new fingerprint in the AWS console to see that is fixed the build problem, so now adding it here. The old fingerprint is still there in case this is a temporary situation and github changes back, or some servers still present the old certs.
@gammazero gammazero requested a review from masih June 28, 2023 02:18
@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.33 🎉

Comparison is base (d8bf29b) 47.46% compared to head (56984d0) 47.80%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2033      +/-   ##
==========================================
+ Coverage   47.46%   47.80%   +0.33%     
==========================================
  Files          87       94       +7     
  Lines       10047    10286     +239     
==========================================
+ Hits         4769     4917     +148     
- Misses       4720     4801      +81     
- Partials      558      568      +10     

see 10 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@masih masih left a comment

Choose a reason for hiding this comment

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

The new thumbprint does not match the one adverised by github?

https://github.blog/changelog/2023-06-27-github-actions-update-on-oidc-integration-with-aws/

@@ -6,7 +6,8 @@ resource "aws_iam_openid_connect_provider" "github" {
]

thumbprint_list = [
"6938fd4d98bab03faadb97b34396831e3780aea1"
"6938fd4d98bab03faadb97b34396831e3780aea1",
"a3b59e5fe884ee1f34d98eef858e3fb662ac104a"
Copy link
Member

Choose a reason for hiding this comment

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

Should this be 1c58a3a8518e8759bf075b76b750d4f2df264fcd ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe. I grabbed "a3b59e5fe884ee1f34d98eef858e3fb662ac104a" from the github.com certificate that I saw, and I tested that using it fixed the problem. If there are other valid github certs then we should include their fingerprints as well.

@gammazero
Copy link
Collaborator Author

I did a terraform apply with the 1c58a3a8518e8759bf075b76b750d4f2df264fcd fingerprint. If that does not work, then we can add the other.

@gammazero gammazero merged commit caf14a8 into main Jun 28, 2023
@gammazero gammazero deleted the update-github-cert-fingerprint branch June 28, 2023 08:55
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

Successfully merging this pull request may close these issues.

4 participants