data: add some examples of expression-based rules

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-04-24 19:15:20 -04:00
parent eae3a7b5e4
commit 65cbc6922c
6 changed files with 27 additions and 1 deletions

View 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"