Security header profile endpoints return raw database error text

Aperta
#2,122 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Wikid82 ci sta già lavorando.

Dal 2/12/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

backend bug database low security

Description

Several of the security header profile handlers return the underlying database error text directly to the client instead of a fixed message.

Where

backend/internal/api/handlers/security_headers_handler.go — lines 41, 61, 71, 123, 145, 172, 194, 207 (approximate, verify at time of fix).

Expected

These handlers should return a fixed, generic error message on a database failure, matching the pattern used elsewhere in the handler layer, and log the underlying error server-side instead.

Priority

Low — admin-only interface, same category as the already-fixed raw-binder-error pattern (#1868).

Found during planning for a related security-settings fix.

Lingua principale
Go
Stelle
17
Fork
2
Merge medio
1h 42m
PR unite (30g)
173

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Wikid82/Charon

Tutte le issue di Wikid82/Charon

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.