Originally created by @LePresidente on GitHub (Mar 4, 2025).
Originally assigned to: @oschwartz10612 on GitHub.
When a failed login attempt is done on pangolin the DownStreamStatus is 400 instead of 401 in the traefik logs
snip from the traefik log
{"ClientAddr":"<redacted>:64974","ClientHost":"<redacted>","DownstreamContentSize":114,"DownstreamStatus":400,"Duration":20032776,"RequestMethod":"POST","RequestPath":"/api/v1/auth/login","RequestProtocol":"HTTP/2.0","RetryAttempts":0,"ServiceName":"api-service@file","StartUTC":"2025-03-04T17:36:36.207121382Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","downstream_Content-Type":"application/json; charset=utf-8","downstream_X-Forwarded-Proto":"https","level":"info","msg":"","origin_Content-Type":"application/json; charset=utf-8","origin_X-Forwarded-Proto":"https","request_Content-Type":"application/json","request_User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","request_X-Forwarded-For":"<redacted>","request_X-Forwarded-Proto":"https","request_X-Real-Ip":"<redacted>","time":"2025-03-04T17:36:36Z"}
Current Error Code: 400 Bad Request
Expected Error Code: 401 Unauthorized
Noteif the error code is 401, crowdsec will automatically catch these as failed login attempts.
Originally created by @LePresidente on GitHub (Mar 4, 2025).
Originally assigned to: @oschwartz10612 on GitHub.
When a failed login attempt is done on pangolin the DownStreamStatus is 400 instead of 401 in the traefik logs
snip from the traefik log
```
{"ClientAddr":"<redacted>:64974","ClientHost":"<redacted>","DownstreamContentSize":114,"DownstreamStatus":400,"Duration":20032776,"RequestMethod":"POST","RequestPath":"/api/v1/auth/login","RequestProtocol":"HTTP/2.0","RetryAttempts":0,"ServiceName":"api-service@file","StartUTC":"2025-03-04T17:36:36.207121382Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","downstream_Content-Type":"application/json; charset=utf-8","downstream_X-Forwarded-Proto":"https","level":"info","msg":"","origin_Content-Type":"application/json; charset=utf-8","origin_X-Forwarded-Proto":"https","request_Content-Type":"application/json","request_User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","request_X-Forwarded-For":"<redacted>","request_X-Forwarded-Proto":"https","request_X-Real-Ip":"<redacted>","time":"2025-03-04T17:36:36Z"}
```
Current Error Code: 400 Bad Request
Expected Error Code: 401 Unauthorized
**Note** _if the error code is 401, crowdsec will automatically catch these as failed login attempts._
@oschwartz10612 commented on GitHub (Mar 5, 2025):
I think this is solved by 654ed46. Let me know what you think!
@oschwartz10612 commented on GitHub (Mar 5, 2025):
I think this is solved by [654ed46](https://github.com/fosrl/pangolin/commit/654ed46a46d909b225694a76eb0536aba6cc39a8). Let me know what you think!
Is there an eta when a release will be done that includes this? Since this leaves local instances open to a degree
@LePresidente commented on GitHub (Mar 5, 2025):
Is there an eta when a release will be done that includes this? Since this leaves local instances open to a degree
@hhftechnology commented on GitHub (Mar 7, 2025):
Api is giving 401 error

Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @LePresidente on GitHub (Mar 4, 2025).
Originally assigned to: @oschwartz10612 on GitHub.
When a failed login attempt is done on pangolin the DownStreamStatus is 400 instead of 401 in the traefik logs
snip from the traefik log
Current Error Code: 400 Bad Request
Expected Error Code: 401 Unauthorized
Note if the error code is 401, crowdsec will automatically catch these as failed login attempts.
@oschwartz10612 commented on GitHub (Mar 5, 2025):
I think this is solved by 654ed46. Let me know what you think!
@LePresidente commented on GitHub (Mar 5, 2025):
LGTM!
@hhftechnology commented on GitHub (Mar 5, 2025):
bro has reduced a ton of work. i have scraped my phaser project.
@LePresidente commented on GitHub (Mar 5, 2025):
Is there an eta when a release will be done that includes this? Since this leaves local instances open to a degree
@hhftechnology commented on GitHub (Mar 7, 2025):
Api is giving 401 error