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

Offen
#2,149 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Wikid82 arbeitet bereits daran.

Seit 03.12.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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).

Vorherrschende Sprache
Go
Sterne
17
Forks
2
Ø Merge
1 Std. 42 Min.
Gemergte PRs (30 T.)
173

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Wikid82/Charon

Alle Issues in Wikid82/Charon

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.