[Actions] Fix HTTP connector TLS options through proxies#269898
Merged
Conversation
Forward target TLS settings to the CONNECT-upgraded proxy request so connector verificationMode and per-request SSL overrides are honored for HTTPS targets behind HTTP proxies. Closes elastic/security-team#17454 Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]Async chunks
|
Contributor
|
This has been broken for a while I guess:
Note that in later versions of |
|
@pmuellr.. thanks for the thoughts here. Are you the best person to drive sign off from the Response Ops side? |
Contributor
|
Starting backport for target branches: 8.19, 9.3, 9.4 |
Contributor
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
May 20, 2026
…) (#270104) # Backport This will backport the following commits from `main` to `9.4`: - [[Actions] Fix HTTP connector TLS options through proxies (#269898)](#269898) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Shahar Glazner","email":"shaharglazner@gmail.com"},"sourceCommit":{"committedDate":"2026-05-20T08:50:22Z","message":"[Actions] Fix HTTP connector TLS options through proxies (#269898)\n\n## Summary\n- For HTTPS requests through an HTTP proxy, forward target TLS options\nto the CONNECT-upgraded request created by `HttpsProxyAgent`.\n- Ensures connector `verificationMode: none` and per-request SSL\noverrides like `fetcher.skip_ssl_verification` are honored when the\nproxy performs TLS inspection.\n- Adds a regression test covering target SSL overrides through the proxy\nagent callback.\n\n## Test plan\n- `node scripts/jest\nsrc/platform/packages/shared/kbn-actions-utils/utils/get_custom_agents.test.ts`\n- `node scripts/check_changes.ts`\n- Manually reproduced with local mitmproxy before the fix and verified\n`_execute` succeeds after the fix.\n\n## References\nCloses elastic/security-team#17454\nCloses https://github.com/elastic/kibana/issues/196602\n\nMade with [Cursor](https://cursor.com)\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"4783bfafd2d0e25d59d5f2a835ef5f84defd1333","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:all-open","Team:One Workflow","v9.5.0"],"title":"[Actions] Fix HTTP connector TLS options through proxies","number":269898,"url":"https://github.com/elastic/kibana/pull/269898","mergeCommit":{"message":"[Actions] Fix HTTP connector TLS options through proxies (#269898)\n\n## Summary\n- For HTTPS requests through an HTTP proxy, forward target TLS options\nto the CONNECT-upgraded request created by `HttpsProxyAgent`.\n- Ensures connector `verificationMode: none` and per-request SSL\noverrides like `fetcher.skip_ssl_verification` are honored when the\nproxy performs TLS inspection.\n- Adds a regression test covering target SSL overrides through the proxy\nagent callback.\n\n## Test plan\n- `node scripts/jest\nsrc/platform/packages/shared/kbn-actions-utils/utils/get_custom_agents.test.ts`\n- `node scripts/check_changes.ts`\n- Manually reproduced with local mitmproxy before the fix and verified\n`_execute` succeeds after the fix.\n\n## References\nCloses elastic/security-team#17454\nCloses https://github.com/elastic/kibana/issues/196602\n\nMade with [Cursor](https://cursor.com)\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"4783bfafd2d0e25d59d5f2a835ef5f84defd1333"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/269898","number":269898,"mergeCommit":{"message":"[Actions] Fix HTTP connector TLS options through proxies (#269898)\n\n## Summary\n- For HTTPS requests through an HTTP proxy, forward target TLS options\nto the CONNECT-upgraded request created by `HttpsProxyAgent`.\n- Ensures connector `verificationMode: none` and per-request SSL\noverrides like `fetcher.skip_ssl_verification` are honored when the\nproxy performs TLS inspection.\n- Adds a regression test covering target SSL overrides through the proxy\nagent callback.\n\n## Test plan\n- `node scripts/jest\nsrc/platform/packages/shared/kbn-actions-utils/utils/get_custom_agents.test.ts`\n- `node scripts/check_changes.ts`\n- Manually reproduced with local mitmproxy before the fix and verified\n`_execute` succeeds after the fix.\n\n## References\nCloses elastic/security-team#17454\nCloses https://github.com/elastic/kibana/issues/196602\n\nMade with [Cursor](https://cursor.com)\n\nCo-authored-by: Cursor <cursoragent@cursor.com>","sha":"4783bfafd2d0e25d59d5f2a835ef5f84defd1333"}}]}] BACKPORT--> Co-authored-by: Shahar Glazner <shaharglazner@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
dennis-tismenko
pushed a commit
to dennis-tismenko/kibana
that referenced
this pull request
May 20, 2026
) ## Summary - For HTTPS requests through an HTTP proxy, forward target TLS options to the CONNECT-upgraded request created by `HttpsProxyAgent`. - Ensures connector `verificationMode: none` and per-request SSL overrides like `fetcher.skip_ssl_verification` are honored when the proxy performs TLS inspection. - Adds a regression test covering target SSL overrides through the proxy agent callback. ## Test plan - `node scripts/jest src/platform/packages/shared/kbn-actions-utils/utils/get_custom_agents.test.ts` - `node scripts/check_changes.ts` - Manually reproduced with local mitmproxy before the fix and verified `_execute` succeeds after the fix. ## References Closes elastic/security-team#17454 Closes elastic#196602 Made with [Cursor](https://cursor.com) Co-authored-by: Cursor <cursoragent@cursor.com>
paulinashakirova
pushed a commit
to paulinashakirova/kibana
that referenced
this pull request
May 22, 2026
) ## Summary - For HTTPS requests through an HTTP proxy, forward target TLS options to the CONNECT-upgraded request created by `HttpsProxyAgent`. - Ensures connector `verificationMode: none` and per-request SSL overrides like `fetcher.skip_ssl_verification` are honored when the proxy performs TLS inspection. - Adds a regression test covering target SSL overrides through the proxy agent callback. ## Test plan - `node scripts/jest src/platform/packages/shared/kbn-actions-utils/utils/get_custom_agents.test.ts` - `node scripts/check_changes.ts` - Manually reproduced with local mitmproxy before the fix and verified `_execute` succeeds after the fix. ## References Closes elastic/security-team#17454 Closes elastic#196602 Made with [Cursor](https://cursor.com) Co-authored-by: Cursor <cursoragent@cursor.com>
jcger
pushed a commit
that referenced
this pull request
May 26, 2026
## Summary - For HTTPS requests through an HTTP proxy, forward target TLS options to the CONNECT-upgraded request created by `HttpsProxyAgent`. - Ensures connector `verificationMode: none` and per-request SSL overrides like `fetcher.skip_ssl_verification` are honored when the proxy performs TLS inspection. - Adds a regression test covering target SSL overrides through the proxy agent callback. ## Test plan - `node scripts/jest src/platform/packages/shared/kbn-actions-utils/utils/get_custom_agents.test.ts` - `node scripts/check_changes.ts` - Manually reproduced with local mitmproxy before the fix and verified `_execute` succeeds after the fix. ## References Closes elastic/security-team#17454 Closes #196602 Made with [Cursor](https://cursor.com) Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HttpsProxyAgent.verificationMode: noneand per-request SSL overrides likefetcher.skip_ssl_verificationare honored when the proxy performs TLS inspection.Test plan
node scripts/jest src/platform/packages/shared/kbn-actions-utils/utils/get_custom_agents.test.tsnode scripts/check_changes.ts_executesucceeds after the fix.References
Closes elastic/security-team#17454
Closes #196602
Made with Cursor