fix: Gotify destinations cannot be saved through the security notification settings endpoint

Đang mở
#2,101 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 1/12/2026.

Đánh giá

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

Mô tả

backend security

What

GET /api/v1/notifications/settings/security returns gotify_url for a Gotify security destination, but PUT on the same endpoint refuses any request that contains gotify_url ("incomplete gotify configuration: gotify_token cannot be supplied with this request"). The request shape has no field for the token, so a client that sends the value back (for example a form that round-trips the settings) is always refused.

Where

backend/internal/services/enhanced_security_notification_service.go (request validation, around lines 195-220; the response mapping around line 149).

Severity

Low (feature gap; Gotify providers can still be managed through the regular notification provider endpoints).

Suggested approach

Decide between (a) accepting a token on this request and storing it through the same path as the provider endpoints, or (b) dropping Gotify from this endpoint and pointing users to the provider page. Add a test for whichever is chosen.

Found while working on the encrypted-secrets branch (not yet a PR).

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.