Security header profile endpoints return raw database error text

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

Maintainer antworten meist innerhalb von 1 Tag

@Wikid82 arbeitet bereits daran.

Seit 02.12.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

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.