You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The webhook lambda shows 'Unable to verify signature!' in the logs.
The X-Hub-Signature which is generated by Github enterprise is not getting verified in the webhook lambda.
I have already verified the secret value is same in webhook configuration in Github enterprise and AWS SSM
Need to check, but indeed maybe we should upgrade the webhook to use the sha256 as default (maybe with fall back to old one). We don't sue GHES, so can't test the module on GHES.
Hi @npalm, my team is currently upgrading from a very old version of philips-labs/terraform-aws-github-runner to the latest (v1.7.0) and we're encountering this issue as well. I've described our software versions below.
The effect of this bug is that the "scale up" lambda never gets successfully triggered. So runners aren't starting at all. This seems like a major bug if it's affecting other users too.
We've also confirmed that the value of the webhook secret is the same in the Github App configuration and in the terraform state. Unlike @anshulpatel25, we are using Github.com not Github Enterprise.
Do you have an update on the bugfix above or any workarounds? In the meantime, our plan is to identify which older version of the terraform-aws-github-runner module predates the introduction of this bug, and upgrade to that older version.
With further debugging, it seems that the issue we're encountering is not the same as @anshulpatel25: the patch proposed above didn't resolve the issue. We're debugging further.
Activity
anshulpatel25 commentedon Jul 27, 2022
Upon further investigation, following changes worked for my setup
npalm commentedon Aug 3, 2022
Quickly checked the events sent from github.com, they contain both a sha1 and a sha255
Need to check, but indeed maybe we should upgrade the webhook to use the sha256 as default (maybe with fall back to old one). We don't sue GHES, so can't test the module on GHES.
anshulpatel25 commentedon Aug 4, 2022
Thanks @npalm for providing insights, Octokit itself says that sha1 is supported for legacy reasons
reference: https://github.com/octokit/webhooks-methods.js/#sign
michaelstepner commentedon Aug 19, 2022
Hi @npalm, my team is currently upgrading from a very old version of
philips-labs/terraform-aws-github-runner to the latest (v1.7.0) and we're encountering this issue as well. I've described our software versions below.
The effect of this bug is that the "scale up" lambda never gets successfully triggered. So runners aren't starting at all. This seems like a major bug if it's affecting other users too.
We've also confirmed that the value of the webhook secret is the same in the Github App configuration and in the terraform state. Unlike @anshulpatel25, we are using Github.com not Github Enterprise.
Do you have an update on the bugfix above or any workarounds? In the meantime, our plan is to identify which older version of the
terraform-aws-github-runnermodule predates the introduction of this bug, and upgrade to that older version.Software version
terraform-aws-github-runner module: v1.7.0
Terraform version: 1.2.4
Terraform module hashicorp/aws ~> 4.15
Github.com hosted repo
michaelstepner commentedon Aug 19, 2022
With further debugging, it seems that the issue we're encountering is not the same as @anshulpatel25: the patch proposed above didn't resolve the issue. We're debugging further.
bjonnh-work commentedon Sep 7, 2022
@anshulpatel25 could you make a PR out of your changes?
anshulpatel25 commentedon Sep 8, 2022
Sure @bjonnh-work , I will do this over the weekend
anshulpatel25 commentedon Sep 18, 2022
Hey @npalm, can you please help with the review: https://github.com/philips-labs/terraform-aws-github-runner/pull/2434?
CC: @bjonnh-work
bjonnh-work commentedon Sep 19, 2022
Thank you @anshulpatel25!