-
Notifications
You must be signed in to change notification settings - Fork 679
Closed
Labels
Description
Overview of the Feature
Provide a way to disable SSL verification on GitHub Enterprise Server (from Lambda interactions).
Reproduce the Error
When GitHub Enterprise Server is deployed (on premise) with a "custom" certificate, the scale-up Lambda hasn't this certification chains and fails with:
request to https://github.staging.company.com/api/v3/app/installations/xx/access_tokens failed, reason: unable to verify the first certificate
Motivation for or Use Case
In some case, GHES could be deployed with a custom certification chains, because a wildcard DigiCert/VeriSign could be too much (sample: for non-production platform).
Suggest a Fix
A (simple) way could be to disable SSL verification at NodeJs level, by providing NODE_TLS_REJECT_UNAUTHORIZED environment variable:
NODE_TLS_REJECT_UNAUTHORIZED=0
Pull-Request will come with this suggestion.