Adding Whitelist to IP not saving
Hey I am trying to get this setup and I add an IP to the whitelist and it doesn't save. In the UI it says it's added successfully but it's not.
{"ip":"192.168.1.100","level":"info","msg":"Whitelisting manual IP","time":"2025-12-23T17:41:15Z"} {"ip":"172.18.0.1","latency":48002722,"level":"info","method":"POST","msg":"HTTP Request","path":"/api/whitelist/manual","size":95,"status":200,"time":"2025-12-23T17:41:15Z"} {"level":"info","msg":"Viewing whitelist","time":"2025-12-23T17:41:15Z"} {"ip":"172.18.0.1","latency":50352795,"level":"info","method":"GET","msg":"HTTP Request","path":"/api/whitelist/view","size":52,"status":200,"time":"2025-12-23T17:41:15Z"}
Also setting log level to debug doesn't do anything
- LOG_LEVEL=debug
Traefik ENV:
- TRAEFIK_DYNAMIC_CONFIG=/etc/traefik/dynamic_config.yml
- TRAEFIK_STATIC_CONFIG=/etc/traefik/traefik_config.yml
- TRAEFIK_ACCESS_LOG=/var/log/traefik/access.log
- TRAEFIK_ERROR_LOG=/var/log/traefik/traefik.log
- COMPOSE_FILE=/app/docker-compose.yml
- PANGOLIN_DIR=/app
- CONFIG_DIR=/app/config
- DATABASE_PATH=/app/data/settings.db
- BACKUP_DIR=/app/backups
- DOCKER_HOST=unix:///var/run/docker.sock
Tried both ro and rw still not doing anything.
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /pangolin/docker_compose_pangolin.yml:/app/docker-compose.yml:ro
- /pangolin/config:/app/config:ro
- ./data:/app/data
- ./backups:/app/backups
- /pangolin/docker_compose_pangolin.yml:/app/docker-compose.yml
- /pangolin/config:/app/config:ro
- /pangolin/config/traefik/logs:/var/log/traefik:ro
- /pangolin/config/traefik/logs:/app/logs:ro
What am I missing here?
I have this issue specifically with traefik, the crowdsec whitelist is working fine for me. Although in your case I think we're lacking sufficient info from your config (Crowdsec, crowdsec manager, traefik full docker configs).
To be fair, this developer has ignored my other issue I opened on their actual forum and just vaguely gave me a link to the docs which was supporting the same method I was deploying it.
@Viceman256 I have given detailed instructions on how variables work in docs. Still if you can't, please wait I have included a validation page in the new release. So less of a nightmare for you guys.
@Viceman256 I have given detailed instructions on how variables work in docs. Still if you can't, please wait I have included a validation page in the new release. So less of a nightmare for you guys.
Correct, I then proved I was following the docs to a tee, and it is still not working. If there is new documentation going over new variables, or new methods, I would be happy to look at that on the new release. Otherwise, my ticket was close prematurely with no option to re-open it.
@Viceman256 I have given detailed instructions on how variables work in docs. Still if you can't, please wait I have included a validation page in the new release. So less of a nightmare for you guys.
Correct, I then proved I was following the docs to a tee, and it is still not working. If there is new documentation going over new variables, or new methods, I would be happy to look at that on the new release. Otherwise, my ticket was close prematurely with no option to re-open it.
I will share my compose file once I am back at my desk. You can start from there. It is functional in more that 500 plus instance which I manage so you might not face problem.
@Viceman256 I have given detailed instructions on how variables work in docs. Still if you can't, please wait I have included a validation page in the new release. So less of a nightmare for you guys.
Correct, I then proved I was following the docs to a tee, and it is still not working. If there is new documentation going over new variables, or new methods, I would be happy to look at that on the new release. Otherwise, my ticket was close prematurely with no option to re-open it.
I will share my compose file once I am back at my desk. You can start from there. It is functional in more that 500 plus instance which I manage so you might not face problem.
No need, as mentioned, I'm experiencing a bug. I'm already following the compose. Why would that help?
@Viceman256 use bash script does the same thing
https://github.com/hhftechnology/crowdsec_manager/blob/a040df8ed31e648dca7e0d560ba17a19e789c288/master.sh
All the UI features are there.
I have /etc/traefik mounted RW in crowdsec-manager:
- ./config/traefik:/etc/traefik:rw
The directory is writable — I can touch /etc/traefik/.test inside the container. But whitelist add still fails:
sed: can't create temp file '/etc/traefik/dynamic_config.ymlXXXXXX': Read-only file system
My dynamic config lives at ./config/traefik/rules/dynamic_config.yml (not directly in ./config/traefik/). It looks like the whitelist feature is hardcoded to edit /etc/traefik/dynamic_config.yml and ignores the TRAEFIK_DYNAMIC_CONFIG env var.
Can you confirm whether the whitelist write path respects TRAEFIK_DYNAMIC_CONFIG, or is it hardcoded? If hardcoded, this breaks any setup where dynamic config isn't at the exact default path.
@Viceman256 all hard coded env removed. i will marked it solved