Docs: note that Bun resources don't trust the dev cert via NODE_EXTRA_CA_CERTS (upstream Bun bug)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bun
調査の方向性
Issue で指定されている AppHost の Certificate configuration と JavaScript apps のドキュメントページ、特に Bun/AddBunApp のセクションから着手してください。oven-sh/bun#44365 へのリンクを含む注意事項を追加し、NODE_EXTRA_CA_CERTS では開発用証明書への信頼を確実に確立できないことを説明して、plain-HTTP エンドポイントによる回避策をドキュメント化してください。両方のページに関連する説明が含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
Aspire sets up development certificate trust for the various resource types, but for Bun resources (AddBunApp/addBunApp), that doesn't actually work today. Aspire configures NODE_EXTRA_CA_CERTS (and SSL_CERT_DIR) on Bun resources automatically, pointing at the generated dev cert. Confirmed by inspecting the actual running process's environment. But Bun's fetch() still rejects the certificate with:
TypeError: unable to verify the first certificate
code: "UNABLE_TO_VERIFY_LEAF_SIGNATURE"
This is a genuine Bun bug, not an Aspire misconfiguration: Bun doesn't trust a pinned self-signed leaf certificate with basicConstraints: CA:FALSE via NODE_EXTRA_CA_CERTS, even though Node.js does for the exact same certificate and env var. I filed and reproduced this upstream with a minimal, Aspire-independent repro: oven-sh/bun#44365.
Net effect: any Bun-hosted resource (e.g. a CopilotKit/AG-UI runtime bridge, or any custom Bun service) that calls another Aspire project resource over HTTPS in local development will fail with UNABLE_TO_VERIFY_LEAF_SIGNATURE out of the box, with no Aspire-side configuration able to fix it. The only current workaround is to call the target resource's plain-HTTP endpoint instead of HTTPS for that specific call.
Request
Please add a note to the relevant docs pages so other users don't lose time rediscovering this:
- Certificate configuration — add a caution that Bun resources are currently affected by oven-sh/bun#44365 and don't reliably trust the dev certificate via
NODE_EXTRA_CA_CERTSeven though it's configured correctly, with the HTTP-endpoint workaround. - Set up JavaScript apps in the AppHost — a similar pointer near the Bun (
AddBunApp) hosting integration section would help.
- 主要言語
- MDX
- スター
- 195
- フォーク
- 91
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 111
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/aspire.dev のほかの issue
-
docs-from-code
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/aspire.dev#1734 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/aspire.dev#1650 ·
メンテナーはふだん 1 日以内に返信
-
Docs: Dev Tunnels "Configure dev tunnel options" examples do not compile; options table omits Regionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
microsoft/aspire.dev#1465 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
microsoft/aspire.dev#1464 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 84/100
microsoft/aspire.dev#1463 ·
メンテナーはふだん 1 日以内に返信
microsoft/aspire.dev の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
nodejs/node#66743 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation pkg: sphinx-needs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
useblocks/sphinx-needs#2255 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bluerobotics/bluesim#60 ·
-
dashboard good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100