Logging of failed login attempts to the admin UI #3608
Replies: 3 comments 2 replies
-
I have this exact same question. Any updates? |
Beta Was this translation helpful? Give feedback.
-
Would it be very difficult to get a log file entry for failed login attempts in the next release ? I really like to set fail2ban to lock out malicious ip adresses. |
Beta Was this translation helpful? Give feedback.
-
I‘d also be interested in this. Same as @saddevil16 I had the idea to not publish the port for the Admin UI to the host. Anyhow my approach is slightly different and would create access logs for the most common use cases. Setup:
Now you will get access logs like for any other reverse proxy added. You will only be able to reach the admin interface by |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I wonder whether NPM logs failed (and successful) logins to the admin UI in some log-file. I started the container using the example docker-compose.yml:
Now when I login using wrong credentials I cannot find any logging of that. The only log files I can find in the container are the following, but they don't contain what I expect.
[root@docker-c6478b306f7f:/app]# find / -name "*.log" /root/.npm/_logs/2024-02-28T22_11_17_837Z-debug-0.log /root/.npm/_logs/2024-02-28T22_11_19_128Z-debug-0.log /var/log/apt/history.log /var/log/apt/term.log /var/log/nginx/error.log /var/log/dpkg.log /var/log/alternatives.log /data/logs/fallback_error.log /data/logs/fallback_access.log
Can anyone help me find such a log file, or doesn't log those attempts?
Beta Was this translation helpful? Give feedback.
All reactions