-
Notifications
You must be signed in to change notification settings - Fork 139
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(backend): Support running behind a corporate proxy [RHIDP-2217] #1225
feat(backend): Support running behind a corporate proxy [RHIDP-2217] #1225
Commits on May 21, 2024
-
Add the undici and global-agent packages to the backend workspace
Per [1], global-agent addresses node-fetch proxying, while undici afects the native fetch. [1] https://github.com/backstage/backstage/blob/master/contrib/docs/tutorials/help-im-behind-a-corporate-proxy.md
Configuration menu - View commit details
-
Copy full SHA for 31785ed - Browse repository at this point
Copy the full SHA 31785edView commit details -
Add the type definitions package for global-agent
Command used for reference: 'yarn add --dev @types/global-agent' Otherwise, we get the following errors when building the container images: //:tsc: cache miss, executing 7cdd96a5dd9f08b5 //:tsc: $ tsc //:tsc: packages/backend/src/index.ts:20:27 - error TS7016: Could not find a declaration file for module 'global-agent'. '/opt/app-root/src/node_modules/global-agent/dist/index.js' implicitly //:tsc: Try `npm i --save-dev @types/global-agent` if it exists or add a new declaration (.d.ts) file containing `declare module 'global-agent';` //:tsc: //:tsc: ~~~~~~~~~~~~~~ //:tsc: //:tsc: //:tsc: Found 1 error in packages/backend/src/index.ts:20 //:tsc: //:tsc: error Command failed with exit code 1. //:tsc: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. //:tsc: ERROR: command finished with error: command (/opt/app-root/src/) /tmp/yarn--1714731744742-0.9188035523240228/yarn run tsc exited (1) //#tsc: command (/opt/app-root/src/) /tmp/yarn--1714731744742-0.9188035523240228/yarn run tsc exited (1)
Configuration menu - View commit details
-
Copy full SHA for b168484 - Browse repository at this point
Copy the full SHA b168484View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2a7f4f - Browse repository at this point
Copy the full SHA a2a7f4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a68eb4 - Browse repository at this point
Copy the full SHA 4a68eb4View commit details -
Add support for no_proxy excludes and explicitly bootstrap global-age…
…nt with no side-effect ref: https://gist.github.com/zicklag/1bb50db6c5138de347c224fda14286da
Configuration menu - View commit details
-
Copy full SHA for a53f457 - Browse repository at this point
Copy the full SHA a53f457View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd8c558 - Browse repository at this point
Copy the full SHA bd8c558View commit details -
Auto-set the GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE env var in t…
…he container image Setting it to an empty value allows global-agent to rely on the rather conventional HTTP(S)_PROXY and NO_PROXY env vars. [1] Otherwise, users would need to configure both GLOBAL_AGENT_HTTP(S)_PROXY and HTTP(S)_PROXY to make proxying work with both global-agent and other libs. Also, it might be a bit confusing for the user to have to set it explicitly to an empty value. We can set it the other way around, but users can still override it if needed. [1] https://github.com/gajus/global-agent#what-is-the-reason-global-agentbootstrap-does-not-use-http_proxy
Configuration menu - View commit details
-
Copy full SHA for 4d3f4cf - Browse repository at this point
Copy the full SHA 4d3f4cfView commit details -
Move configureCorporateProxyAgent to a separate file
This would simplify the merging process in case of upstream changes Co-authored-by: Gennady Azarenkov <gazarenkov@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ca0de4e - Browse repository at this point
Copy the full SHA ca0de4eView commit details -
Document that proxy settings can also be specified in the operator de…
…fault config Co-authored-by: Gennady Azarenkov <gazarenkov@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ae2c31e - Browse repository at this point
Copy the full SHA ae2c31eView commit details -
Add instructions for local development and testing in a separate 'doc…
…s/proxy.md' file Co-authored-by: Corey Daley <cdaley@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 9c2413b - Browse repository at this point
Copy the full SHA 9c2413bView commit details -
Document that plugin vendors have nothing to configure if they use th…
…e supported libraries for HTTP data fetching Co-authored-by: Kim Tsao <ktsao@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 615e35a - Browse repository at this point
Copy the full SHA 615e35aView commit details -
Apply suggestions from code review
Co-authored-by: Corey Daley <cdaley@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 37ae9ed - Browse repository at this point
Copy the full SHA 37ae9edView commit details