moq-auth: the HTTP client honors HTTP_PROXY for a loopback http:// auth URL

Open Beginner friendly
#10,461 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Find moq_auth::Client::new and inspect how its reqwest::Client is configured for auth URLs. Check the existing tests for loopback HTTP URLs and proxy environment handling, then verify the suggested no-proxy behavior. Done means a credential-bearing request to a loopback HTTP auth URL bypasses environment proxies while the URL restrictions still work.

Written by the indexing model from the issue text.

Description

moq_auth::Client::new accepts http:// only for a loopback host, since the request body carries the session's credential. Its reqwest::Client is built without .no_proxy(), so reqwest still applies HTTP_PROXY/ALL_PROXY from the environment when NO_PROXY doesn't list the host. A relay or other client started with a proxy in its environment then sends the credential-bearing POST in plaintext to the proxy, and takes the proxy's verdict, despite the loopback-only check.

Suggested fix: build the client with .no_proxy() for an http:// loopback URL (and arguably for unix://), or for every auth URL, since an auth server is configured explicitly.

(Written by Claude Opus 5.5)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.