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

Open
#2,149 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Wikid82 is already working on this.

Since Dec 3, 2026.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
Go
Stars
17
Forks
2
Avg merge
1h 42m
Merged PRs (30d)
173

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Wikid82/Charon

All issues in Wikid82/Charon

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.