Skip to content

feat(soar): enable trust_env in HttpClient session for corporate proxies (#198) - #311

Open
dandye wants to merge 1 commit into
mainfrom
fix/issue-198-soar-proxy-trust-env
Open

feat(soar): enable trust_env in HttpClient session for corporate proxies (#198)#311
dandye wants to merge 1 commit into
mainfrom
fix/issue-198-soar-proxy-trust-env

Conversation

@dandye

@dandye dandye commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Description

Resolves #198.

This PR adds corporate proxy support for the Google SecOps SOAR MCP server and documents corporate proxy configuration across the repository.

Changes

  1. SOAR MCP Client: In HttpClient._get_session(), initialize aiohttp.ClientSession(trust_env=True) so it respects standard environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY). This brings SOAR into parity with GTI (feat: gti: Enable trust_env in vt.Client initialization for proxies. #273) and SecOps SIEM (httpx).
  2. Unit Tests: Added server/secops-soar/tests/unit/test_http_client.py to verify that HttpClient passes trust_env=True and initializes sessions with trust_env=True.
  3. Documentation: Added Corporate Proxy Configuration guides in docs/usage_guide.md and server/secops-soar/README.md detailing environment variables, MCP client settings, and custom CA bundles (SSL_CERT_FILE).

Testing

  • server/secops-soar: uv run --extra test pytest tests/unit/ (all 7 passed)
  • server/gti: uv run --extra test pytest tests/test_tools.py (all 49 passed)

…ies (#198)

- Sets trust_env=True on aiohttp.ClientSession in HttpClient._get_session to honor standard HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables
- Adds unit tests in test_http_client.py verifying session proxy environment trust
- Documents corporate proxy configuration and SSL CA bundles in usage_guide.md and secops-soar README.md
@dandye
dandye requested a review from a team September 9, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot use MCP servers on corporate proxy

1 participant