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

Ouverte
#2,149 0 commentaires 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@Wikid82 y travaille déjà.

Depuis le 3/12/2026.

Évaluation

Cette issue n'a pas encore été évaluée.

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

Langage dominant
Go
Étoiles
17
Forks
2
Merge moyen
1 h 42 min
PR mergées (30 j)
173

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Wikid82/Charon

Toutes les issues de Wikid82/Charon

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.