Minor follow-ups from the country-allow-list local-network review

オープン
#2,149 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Wikid82 がすでに取り組んでいます。

2026年12月3日 から。

評価

この issue はまだ評価されていません。

説明

architecture backend documentation frontend low

Non-blocking items from Supervisor review of PR closing #1895/#1980 (country allow-lists admitting local network visitors). None of these are correctness bugs in that PR's own scope; listed here for later cleanup.

  1. ARCHITECTURE.md doesn't describe the one-time upgrade step. The Seeding bullet (~line 917) doesn't mention KeepManagementCountryListsExcludingLocal or its trigger (the exclude_local_network column being absent before AutoMigrate). Also, the line "The local network rule above" (~916) should name the section instead, since the referenced rule is ~275 lines earlier (~640).
  2. No handler-level test for an admin turning the local-network switch off on a management-assigned list and getting locked out. Service-level coverage exists (access_list_service_test.go's ProposedUpdate, management_access_test.go's TestEvaluateManagement_CountryListLocalNetworkSwitch), but there's no end-to-end test through the management_access_would_lock_out handler response for this specific case.
  3. Redundant/stale admin-whitelist tests in backend/internal/api/handlers. settings_handler_helpers_test.go's TestValidateAdminWhitelist and settings_wave3_test.go's TestValidateAdminWhitelist_Strictness now only exercise services.ValidateAdminWhitelist directly and duplicate validator-level tests that belong in services. settings_wave4_test.go:178's ..._InvalidAdminWhitelistFromSync no longer matches what it tests (the input is now refused by an earlier check, not the sync step it's named for).
  4. Docs range lists omit IPv4 link-local. docs/features/access-control.md and docs/cerberus.md's plain-word range lists leave out 169.254.x.x, which is included in network.LocalNetworkCIDRs().
  5. Accessibility: the new "Allow local network visitors" switch's help text (frontend/src/components/AccessListForm.tsx) isn't linked to the control via aria-describedby.
  6. Test organization: NormalizeAccessList tests are split across access_list_normalize_test.go and access_list_service_test.go — could be consolidated.

Severity: low (cleanup/polish only).

主要言語
Go
スター
17
フォーク
2
平均マージ
1時間 42分
マージ済み PR(30日)
173

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Wikid82/Charon のほかの issue

Wikid82/Charon の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。