Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Add support for no_proxy/NO_PROXY environment variable in CLI
  • Bypass proxy for hosts matching no_proxy patterns
  • Supports exact hostname, domain suffix, wildcard, and comma-separated lists

Fixes #13763

Test plan

  • Set http_proxy and no_proxy environment variables
  • Include Bitwarden server in no_proxy list
  • Verify CLI connects directly without using proxy

The CLI now checks the no_proxy/NO_PROXY environment variable before
using the http_proxy/https_proxy settings. This allows users to bypass
the proxy for specific hosts like their self-hosted Bitwarden server.

Supported no_proxy formats:
- Exact hostname: api.bitwarden.com
- Domain suffix with dot: .bitwarden.com
- Domain suffix without dot: bitwarden.com
- Wildcard: *
- Comma-separated list: localhost,127.0.0.1,bitwarden.com

Fixes bitwarden#13763

Signed-off-by: majiayu000 <[email protected]>
@majiayu000 majiayu000 requested a review from a team as a code owner December 29, 2025 03:37
@CLAassistant
Copy link

CLAassistant commented Dec 29, 2025

CLA assistant check
All committers have signed the CLA.

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal tracking system for review.
ID: PM-30269
Link: https://bitwarden.atlassian.net/browse/PM-30269

Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process.

@bitwarden-bot bitwarden-bot changed the title fix(cli): respect no_proxy environment variable [PM-30269] fix(cli): respect no_proxy environment variable Dec 29, 2025
@bitwarden-bot bitwarden-bot added community-pr needs-qa Marks a PR as requiring QA approval labels Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-pr needs-qa Marks a PR as requiring QA approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'no_proxy' env var not evaluated

3 participants