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

[THREESCALE 11128] Prevent APIcast fallback to global proxy settings for direct connection #1480

Merged

Conversation

tkan145
Copy link
Contributor

@tkan145 tkan145 commented Jun 27, 2024

Backport #1478

@tkan145 tkan145 requested a review from a team as a code owner June 27, 2024 09:12
With the newer version of lua-resty-http (0.7.1), if a proxy options
is not provided when calling the connect() method, it will fall back to
using the global proxy settings set by the "set_proxy_option" function
(has no effect in previous versions of the library). This then causes
unexpected behavior where the direct connection will now go through
the proxy server.

This PR explicitly sets the proxy options to an empty table to bypass
global proxy settings when connecting directly.
@tkan145 tkan145 changed the title THREESCALE 11128 - Prevent APIcast fallback to global proxy settings for direct connection [THREESCALE 11128] Prevent APIcast fallback to global proxy settings for direct connection Jun 27, 2024
@tkan145 tkan145 merged commit cefafe4 into 3scale:3scale-2.15-stable Jun 27, 2024
10 of 12 checks passed
@tkan145 tkan145 deleted the backport-THREESCALE-11128 branch June 27, 2024 11:30
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.

None yet

2 participants