Security header profile endpoints return raw database error text

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

Maintainers usually reply within 1 day

@Wikid82 is already working on this.

Since Dec 2, 2026.

Assessment

This issue has not been assessed yet.

Description

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.

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.