Skip to content

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 force-pushed the backport-THREESCALE-11128 branch from 1fcbe22 to 573a070 Compare June 27, 2024 09:13
@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
@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.

2 participants