Skip to content

feat: NOTECLI_INSECURE_HOSTS でテスト用に http/ws 接続を許可#31

Merged
hitalin merged 1 commit into
mainfrom
feat/insecure-hosts-e2e
Jul 4, 2026
Merged

feat: NOTECLI_INSECURE_HOSTS でテスト用に http/ws 接続を許可#31
hitalin merged 1 commit into
mainfrom
feat/insecure-hosts-e2e

Conversation

@hitalin

@hitalin hitalin commented Jul 4, 2026

Copy link
Copy Markdown
Owner

前提

notedeck の E2E テスト (hitalin/notedeck#702) がローカルのモック Misskey サーバー (127.0.0.1:PORT) に接続できるようにする。

変更

  • 環境変数 NOTECLI_INSECURE_HOSTS (カンマ区切り・完全一致) に列挙されたホストのみ https→http / wss→ws で接続する
  • デバッグビルド限定 (debug_assertions ゲート、リリースビルドでは常に secure)
  • 対象: api_url / fetch_nodeinfo (SSRF prefix 検証含む) / streaming の WS URL / MiAuth 表示 URL

検証

  • notecli 全 172 テスト通過 (insecure モジュールのユニットテスト 2 本追加)
  • notedeck 側の E2E (モック Misskey への ws:// 接続・切断/再接続・SSE 到達) で実動作を確認済み

🤖 Generated with Claude Code

notedeck の E2E テスト (notedeck#702) がローカルのモック Misskey
サーバー (127.0.0.1:PORT) に接続できるようにする。

- 環境変数 NOTECLI_INSECURE_HOSTS (カンマ区切り・完全一致) に列挙
  されたホストのみ https→http / wss→ws で接続する
- デバッグビルド限定 (debug_assertions ゲート、リリースでは常に secure)
- 対象: api_url / fetch_nodeinfo (SSRF prefix 検証含む) / streaming の
  WS URL / MiAuth 表示 URL の 4 箇所

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hitalin hitalin merged commit 465a44b into main Jul 4, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant