Portal dev auth: replace mkcert CA install with leaf-only localhost trust
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- docker, docker-compose, shell
- 領域
- authentication, devops, security
調査の方向性
Start with scripts/ensure-dev-certs.sh and the entra-local and entra-local-certs-init services in docker-compose.yml, tracing the existing certificate generation, trust installation, and DEV_CERT_DIR handling. Verify direct leaf trust and the one-command entra-local flow on the target platform(s), including the browser/MSAL TLS handshake. Done means the leaf is localhost-scoped and trusted without the root-CA installation path, with the shared certificate directory and validity requirements covered.
索引モデルが issue の本文から書いたものです。
説明
Original author: @manekinekko
Follow-up from PR #1243 review (finding 🟡, by @cedricvidal_microsoft).
Context
The one-command local dev auth flow (entra-local served over HTTPS) currently uses mkcert -install, which adds a root CA to the OS/browser trust store. That CA can sign a cert for any hostname and forces a one-time admin/sudo prompt. For a dev emulator that only ever needs to be trusted for localhost, this is a heavier trust grant than the feature requires.
Proposal
Drop mkcert -install and trust only the leaf cert (already CA:FALSE, SAN-scoped to localhost / 127.0.0.1 / ::1). Trusting the leaf directly (e.g. security add-trusted-cert -r trustAsRoot into the login keychain on macOS, no sudo) caps the trust blast radius to localhost and can't vouch for any other domain. MSAL only needs the TLS handshake to https://localhost:<port> to succeed.
Scope / considerations
- Cross-platform trust plumbing is the main cost:
mkcert -installhides the macOS/Linux/Windows trust stores behind one command; leaf-only means doing it per-OS ourselves (security add-trusted-certon macOS, plus Linux and Windows equivalents). Landing macOS first and staging Linux/Windows as follow-ups may be acceptable. - Validity cap: directly-trusted leaves can hit the browser 398-day server-cert cap (mkcert's leaf is ~823 days). Mint a =398-day leaf to sidestep it.
- Shared cert dir: parameterize the compose mount to
${DEV_CERT_DIR:-./.certs}:/certs-src:ro(the script already honorsDEV_CERT_DIR) so a dev can setDEV_CERT_DIR=$HOME/.scope-dev-certsonce and share a single leaf + a single trust action across all worktrees and ports. - Verify before committing: confirm browsers/MSAL accept a directly-trusted leaf on each target platform (untested as of the PR review).
Not in scope
The rootless/UID-remapped container permission issue (finding F1) was already fixed in PR #1243 (f886e348) independently, without loosening the key, via an ownership-fixing init service. If we adopt leaf-only later, the in-volume key handling can be revisited then.
Relevant files: scripts/ensure-dev-certs.sh, docker-compose.yml (the entra-local / entra-local-certs-init services).
- 主要言語
- TypeScript
- スター
- 7
- フォーク
- 13
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 26
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/scope のほかの issue
-
type: worker-update
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
type: worker-update
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
type: worker-update
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Clarify that prompt features only categorize prompts, don't impact runs対応中かも @DerrickUnleashed が 2 日前に担当しました。 オープンauthor: JaGord documentation good first issue UI
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Submit Run task prompt picker should only search requirement prompts対応中かも @cedricvidal が 68 日前に担当しました。 オープンauthor: cedricvidal bug portal
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
microsoft/scope の issue をすべて見る
似ている issue
-
area/dashboard kind/bug QA/dev-automation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rancher/dashboard#19379 · コメント 2 件 ·
メンテナーはふだん 5 日以内に返信
-
perf(core): getComments() runs the approved count and the comment list as two sequential queriesオープンarea/core bot:bug bot:working
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
emdash-cms/emdash#3905 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
lingdojo/kana-dojo#31728 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
selective-claw: freshTailTurns=0 keeps ALL turns verbatim and summarizes none (slice(-0) === slice(0))対応中かも @zjncs が今日担当しました。 オープンcomponent:tokenless
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
agentic-os-org/ANOLISA#6112 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
rjsf-team/react-jsonschema-form#5439 ·
メンテナーはふだん 1 日以内に返信