Management lock-out guard does not evaluate country allow-lists
Mantenedores costumam responder em até 1 dia
@Wikid82 já está trabalhando nisso.
Desde 3/12/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
What: The guard that warns an admin before a change would lock them out of Charon's own interface builds its access-list evaluator with no GeoIP service attached (services.NewAccessListService(g.db) at backend/internal/api/handlers/management_guard.go:62,73, also used at security_management_handler.go:99,119, security_status_enforcement.go:152 and services/geoip_candidate_guard.go:48). Without a GeoIP lookup, Evaluate treats the database as unavailable and always admits, so a country allow-list chosen for Charon's own interface is never flagged as a lock-out risk by this guard, whatever its rules are.
Where: the four call sites above.
Impact: this only affects the pre-save lock-out warning shown to the admin making the change — it does not affect the live request-time enforcement on Charon's own interface, which goes through the proxy's own Caddy configuration with a real GeoIP lookup. An admin who assigns a country allow-list to Charon's own interface gets no warning from this guard even when the change would in fact refuse their own address once applied.
Suggested approach: thread the server's GeoIP service into the evaluator these four call sites build, the same way the proxy's own evaluation path gets one, so the guard can judge country-based restrictions.
Severity: low (pre-existing, self-inflicted risk only — no path to admitting an unauthorized caller).
Found during B8-05 implementation (country access lists admitting local network visitors), PR closing #1895/#1980.
- Linguagem predominante
- Go
- Estrelas
- 17
- Forks
- 2
- Merge médio
- 1h 42min
- PRs com merge (30d)
- 173
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Wikid82/Charon
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Docs promise signed SLSA provenance that the image build does not produceTalvez já em andamento @Wikid82 assumiu hoje. Abertaarchitecture documentation security ui
Wikid82/Charon#2152 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Orthrus agent images are not signed or SBOM-attestedTalvez já em andamento @Wikid82 assumiu hoje. Abertasecurity ssl testing
Wikid82/Charon#2151 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 daysTalvez já em andamento @Wikid82 assumiu hoje. Abertacritical testing
Wikid82/Charon#2150 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Minor follow-ups from the country-allow-list local-network reviewTalvez já em andamento @Wikid82 assumiu hoje. Abertaarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Wikid82/Charon
Issues semelhantes
-
BUG: Backend Docker build fails due to Go version mismatchTalvez já em andamento @Aakriti0207 assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 93/100
gittuf/visualizer#203 ·
Mantenedores costumam responder em até 2 dias
-
bug P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
BaaRai/ARTEX#981 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia