Skip to content

fix: bypass proxy for Runtime API calls - #68

Open
benrkia wants to merge 1 commit into
mainfrom
ilbe/proxy-bypass
Open

benrkia wants to merge 1 commit into
mainfrom
ilbe/proxy-bypass

Conversation

@benrkia

@benrkia benrkia commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Description of changes:

The Runtime API client used Net::HTTP.post and Net::HTTP.new(host, port), both of which default to :ENV proxy resolution and honor HTTP(S)_PROXY. A customer-configured proxy then routed calls to the API endpoint through the proxy, so a proxy in the environment could break function init and result delivery even though it should never affect communication with the API.

Route the invocation poll and the three write-backs through a single client built with a nil proxy argument, which disables Net::HTTP's default proxy resolution so the link-local API endpoint is never proxied.

Target (OCI, Managed Runtime, both):

Both

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The Runtime API client used Net::HTTP.post and Net::HTTP.new(host, port),
both of which default to :ENV proxy resolution and honor HTTP(S)_PROXY. A
customer-configured proxy then routed calls to the API endpoint through the
proxy, so a proxy in the environment could break function init and result
delivery even though it should never affect communication with the API.

Route the invocation poll and the three write-backs through a single client
built with a nil proxy argument, which disables Net::HTTP's default proxy
resolution so the link-local API endpoint is never proxied.
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.

1 participant