mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2026-10-17 20:43:52 +00:00
crowdsec: whitelist all git registry /v2/ traffic (blob 404s + auth 401s)
This commit is contained in:
1 parent
61d27a6340
commit
6adca4400f
2 files changed
+7
No files matched your search
@@ -0,0 +1,6 @@
|
||||
name: aykhans/whitelist-registry
|
||||
description: "Prevent http-probing / http-generic-401-bf false positives from Docker/OCI registry traffic"
|
||||
whitelist:
|
||||
reason: "Docker/OCI registry v2 protocol is probe-like by design: unauthenticated /v2/ requests get 401 auth challenges and blob-existence checks get 404 before upload; real registry abuse is handled by Gitea's own auth"
|
||||
expression:
|
||||
- evt.Meta.service == 'http' and evt.Meta.target_fqdn == 'git.aykhans.me' and evt.Meta.http_path startsWith '/v2/'
|
||||
Reference in new issue
Block a user