Security header profile endpoints return raw database error text

Đang mở
#2,122 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Wikid82 đang làm issue này rồi.

Từ ngày 2/12/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Go
Star
17
Fork
2
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
173

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Wikid82/Charon

Tất cả issue của Wikid82/Charon

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.