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

Aberta
#2,101 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@Wikid82 já está trabalhando nisso.

Desde 1/12/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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

Linguagem predominante
Go
Estrelas
17
Forks
2
Merge médio
1h 42min
PRs com merge (30d)
173

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Wikid82/Charon

Todas as issues de Wikid82/Charon

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.