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

Ouverte
#2,101 0 commentaires 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@Wikid82 y travaille déjà.

Depuis le 1/12/2026.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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).

Langage dominant
Go
Étoiles
17
Forks
2
Merge moyen
1 h 42 min
PR mergées (30 j)
173

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Wikid82/Charon

Toutes les issues de Wikid82/Charon

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.