-
Notifications
You must be signed in to change notification settings - Fork 653
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(hooks): Fix github webhooks with secrets #840
fix(hooks): Fix github webhooks with secrets #840
Conversation
Is it possible they're lowercase when they arrive in our setup because of the load-balancer doing normalization? Maybe it makes sense to go back to using a case-insensitive lookup, or else normalize the case when the headers are copied? |
The headers are mapped using org.springframework.http.HttpHeaders and that's the reason they are lowercase.
|
@spinnaker/oss-approvers PTAL |
@spinnaker/oss-approvers any comment on this? thanks! |
any estimated time for merging this ? since this is a live bug..... |
We are also hit by this. |
We as well. |
@ferwguerra Thanks for the contribution, and sorry for introducing this bug (and also sorry for the delay here - missed this notification). I'm proposing an alternative fix here that addresses the underlying issue: |
Addressed in #863 |
Issue:
The pipelines are no longer being triggered by Github webhooks if there is a secret required. Removing the secret allows them to function normally.
This issue was reported here.
Problem:
The headings are all lowercase, so they are now not found.
This previously worked because the org.springframework.http.HttpHeaders class was used but was replaced by java.util.Map, which is case sensitive. That change was made here.