mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-12 03:28:45 +00:00
data: add some examples of expression-based rules
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
7
data/apps/git-client.yaml
Normal file
7
data/apps/git-client.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
- name: allow-git-clients
|
||||
action: ALLOW
|
||||
expression:
|
||||
and:
|
||||
- userAgent.startsWith("git/") || userAgent.contains("libgit") || userAgent.startsWith("go-git") || userAgent.startsWith("JGit/") || userAgent.startsWith("JGit-")
|
||||
- >
|
||||
"Git-Protocol" in headers && headers["Git-Protocol"] == "version=2"
|
||||
Reference in New Issue
Block a user