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

feat(cli): API requests will respect HTTP_PROXY env variable #727

Merged
merged 5 commits into from
Nov 14, 2022

Conversation

nicksrandall
Copy link
Contributor

fixes #574

@connorjclark
Copy link
Collaborator

Thanks! @nicksrandall can you sign the CLA please?

@connorjclark
Copy link
Collaborator

@nicksrandall CLA?

@nicksrandall
Copy link
Contributor Author

Screenshot 2022-09-13 at 11 54 34 AM

@connorjclark
Copy link
Collaborator

ahhhh, just had to re-run the actions 😅

@connorjclark connorjclark merged commit 55fd467 into GoogleChrome:main Nov 14, 2022
kasperg added a commit to danskernesdigitalebibliotek/dpl-cms that referenced this pull request Oct 30, 2023
Lighthouse CI/lhci 0.10 introduces a change where it will respect the
HTTP_PROXY url environment variable for API requests. Apparently this
includes uploading reports to temporary storage.
https://github.com/GoogleChrome/lighthouse-ci/releases/tag/v0.10.0
GoogleChrome/lighthouse-ci#727

As we setup Wiremock as a general HTTP proxy for Lighthouse requests to
mock API requests, report uploads will also pass through Wiremock.
This results in an error when uploading reports:

FetchError: request to https://us-central1-lighthouse-infrastructure.cloudfunctions.net/saveHtmlReport failed, reason: self signed certificate in certificate chain

To address this we either need to move away from browser proxying so
we only use WireMock for specific external systems or setup the browser
proxy to provide a trusted certificate chain.
https://wiremock.org/docs/proxying/#browser-proxying-of-https
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.

Dealing with a lhci server behind proxy (create new projet)
2 participants