Serve PAC file to selectively proxy only watched hosts
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp
- 領域
- cli, devtools, networking
調査の方向性
まず、既存の API controller と、システムプロキシ設定を切り替えるコードを調べます。urlsToWatch がどのように設定されているかを追跡し、そのうえで /proxy.pac endpoint とプラットフォーム固有の自動設定をどのように組み込めるかを判断します。監視対象のホストがプロキシ経由でルーティングされ、それ以外のトラフィックが DIRECT を返し、endpoint が必要な PAC MIME タイプを提供すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Currently, when Dev Proxy runs as a system proxy, all HTTP/HTTPS traffic flows through it. Dev Proxy filters requests internally based on urlsToWatch, but unrelated traffic still takes the detour through the proxy. This can cause issues with services that are sensitive to proxying (e.g., Azure Functions startup, Teams auth) and adds unnecessary latency to non-watched traffic.
Proposal: Have Dev Proxy serve a PAC (Proxy Auto-Config) file that routes only watched hosts through the proxy. All other traffic goes direct.
How it would work:
- Dev Proxy generates a
FindProxyForURL()script from the configuredurlsToWatchhosts - Serves it at an endpoint like
http://127.0.0.1:{port}/proxy.pacwith MIME typeapplication/x-ns-proxy-autoconfig - Instead of setting the system HTTP/HTTPS proxy, sets the system's auto-config URL to point to this PAC file
- macOS:
networksetup -setautoproxyurl <service> http://127.0.0.1:{port}/proxy.pac - Windows: set
AutoConfigURLregistry key or use the proxy library equivalent
- macOS:
Example generated PAC file for urlsToWatch: ["https://graph.microsoft.com/*", "https://api.contoso.com/*"]:
function FindProxyForURL(url, host) {
if (shExpMatch(host, "graph.microsoft.com") ||
shExpMatch(host, "api.contoso.com")) {
return "PROXY 127.0.0.1:8000";
}
return "DIRECT";
}
Limitations:
- PAC files operate at the host level, not URL-path level. Fine-grained URL matching still happens inside the proxy as it does today.
- Linux doesn't have a standard system-wide auto-config URL mechanism (same limitation as the current system proxy setup).
Benefits:
- Non-watched traffic never touches the proxy — faster, fewer side effects
- Could resolve issues with Azure Functions, Teams auth, and other services that break when proxied
- Minimal implementation surface — Dev Proxy already has an API controller and already toggles system proxy settings
Derived from https://github.com/dotnet/dev-proxy/issues/1368.
- 主要言語
- C#
- スター
- 833
- フォーク
- 90
- 平均マージ
- 18時間 41分
- マージ済み PR(30日)
- 45
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/dev-proxy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
waiting for response
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
dotnet/dev-proxy#1914 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
MockStdioResponsePlugin: @stdin.body.id placeholder fails to resolve when messages arrive back-to-back after an id-less message再び着手できるかも @garrytrinder が 85 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
dotnet/dev-proxy#1757 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
dotnet/dev-proxy の issue をすべて見る
似ている issue
-
S: Untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
space-wizards/space-station-14#46357 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
MicrosoftLearning/PL-400_Microsoft-Power-Platform-Developer#231 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
joinrpg/joinrpg-net#5313 ·
メンテナーはふだん 1 日以内に返信
-
[12.x] FixIncorrectOwnerIdRelationships can delete legitimate library roots when UserView shares the same path対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信