Hello there,
I'm experiencing and issue with a docker configuration a long time ago, (it go back in 2022) I came here and asked : hey is there a way for crowdsec to access the log stream of my containers cause I really don't want to add every source manually...
Someone helped me with an acquis file of his own. With a regexp:
source: docker
container_name_regexp:
- ^[a-zA-Z0-9.-]*$
labels:
type: log_type #now that I think about it this seems strange
So back then I was just using docker compose now I'm using docker swarm, had to learn it...
So back then I tried and was getting banned from my authelia with bad password so everything seems fine
I did a mistake in not testing after every update...
So somewhere along the way it stoped working...
First thing first I tried to add a character on my regexp cause swarm use the underscore _
source: docker
container_name_regexp:
- ^[a-zA-Z0-9._-]*$
labels:
type: log_type
Nothing change I asked my good friend google and change my acquis file like so :
source: docker
use_container_labels: true
Still no change...
And I can't find the documentation about the acquis file with all the options described...
Before you asked yes I mounted the docker sock with ro option on the crowdsec container (recently updated to v1.7.6-slim)
A little help would be appreciated... They Idea is to offer all to crowdsec and step up the security by adding security bits by bits only changing crowdsec config to read from that container too...
[EDIT]
So I tried something
source: docker
container_name_regexp:
- ^[a-zA-Z0-9._-]*authelia[a-zA-Z0-9._-]*$
labels:
type: authelia
Now my authelia is listed in the acquis is banned in thd decision and on my Iptable
Yet I can still continue to brute force and the count is still growing 😅