fix: add common webhook config check for SOFARR_BASE_URL and SOFARR_WEBHOOK_SECRET

- Ombi webhook status now checks for required environment variables
- Added GET /api/webhook/config endpoint for common webhook config validation
- Updated client-side fetchWebhookStatus to use common config check
- Added integration tests for new endpoint and Ombi webhook status checks
This commit is contained in:
2026-05-22 09:16:23 +01:00
parent 9862c0555c
commit f1e0a77fad
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -6,6 +6,16 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
---
## [1.7.2] - 2026-05-22
### Fixed
- **Webhook configuration check** — Ombi webhook status now correctly checks for `SOFARR_BASE_URL` and `SOFARR_WEBHOOK_SECRET` environment variables. The webhook displays as disabled when either is missing, matching the existing *ARR webhook behavior.
- **Common webhook config endpoint** — Added `GET /api/webhook/config` endpoint that returns whether both `SOFARR_BASE_URL` and `SOFARR_WEBHOOK_SECRET` are configured, along with a list of missing items. Used by the client to determine webhook enablement status across all webhook types.
- **Client-side webhook status** — Updated `fetchWebhookStatus()` to call `/api/webhook/config` and use the result to determine if Sonarr and Radarr webhooks are enabled. Webhook status now depends on both the service-specific webhook being configured AND the Sofarr webhook config being valid.
---
## [1.8.0] - 2026-05-21
### Added
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sofarr",
"version": "1.7.1",
"version": "1.7.2",
"description": "A personal media download dashboard that shows your downloads 'so far' while you relax on the sofa waiting for your *arr services to finish",
"main": "server/index.js",
"scripts": {