-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Describe the bug
When using watchtower in API mode sending any request to v1/update
endpoint it will always return status 200 OK
.
To Reproduce
- Setup watchtower in API mode
- Make a request to
http://ip:port/v1/update
with missing/invalidAuthorization
header - Look at response code
Expected behavior
The API returns 401 Unauthorized
whenever the Authorization
header is missing/invalid
Environment
Unrelated
Logs from running watchtower with the --debug
option
"Updates triggered by HTTP API request." only triggered when providing a valid token
Additional context
Would be nice to have meaningful status codes instead of just silently failing