Hi, I have been putting the URL that I am using in the GitHub webhook (2 webhooks one of which is dedicated to dependabaot alerts and the other for code scanning) behind the Cloudflare WAF. When I am not turning on Autoproxy on Cloudflare the webhook is working fine, but when I turn the Autoproxy in CNAME records on Cloudflare it gives me a 521 Error Code. We have checked the Audit logs on Cloudflare and nothing is wrong there, and it’s also indicating the requested traffic is allowed. We have whitelisted the Webhook IPs, Web IPs and API IPs provided on github in Cloudflare.
The actual scenario is we have set up an AWS API gateway, which has provided us with the URL, we have used a custom domain link, and mapped it with the API gateway. The link we have put in the CNAME records of Cloudflare. After mapping the link to Cloudflare and getting the link from Cloudflare we have provided that link to GitHub. Now using 3 layers of SSL of Amazon, Atlan (Custom Domain Link in AWS mapped to Atlan domain), and Cloudflare when we put the URL in the GitHub webhook and turn the auto proxy it gives us a 521 error code, but without auto proxy turning on, it is working fine as expected.
For any additional information please do let me know.
Please look into it and waiting for your response.