Build Flask WAF log converter app

This commit is contained in:
Alfredo Di Stasio
2026-04-24 14:40:32 +02:00
parent f9579bd253
commit 355d61f11f
23 changed files with 1053 additions and 1 deletions

35
app/constants.py Normal file
View File

@@ -0,0 +1,35 @@
VENDOR_FIELDS = [
"v015xxxxdate",
"time",
"policy",
"http_method",
"http_host",
"http_url",
"http_refer",
"service",
"backend_service",
"msg",
"signature_subclass",
"signature_id",
"owasp_top10",
"match_location",
"action",
"severity_level",
]
SEVERITY_RANKING = {
"critical": 5,
"high": 4,
"medium": 3,
"low": 2,
"info": 1,
"informational": 1,
"unknown": 0,
"none": 0,
"n/a": 0,
}
SORTABLE_FIELDS = {"datetime", "severity"}
SORT_ORDERS = {"asc", "desc"}
MODES = {"vendor", "full"}
OUTPUT_FORMATS = {"text", "csv"}