feat(dlp): add server-side analyzer, evidence chain, compliance scheduler, and syslog forwarder

This commit is contained in:
igor04091968
2026-05-13 04:54:08 +03:00
parent 0f1b82233a
commit 6ebf0ac67e
17 changed files with 505 additions and 19 deletions
@@ -0,0 +1,24 @@
#!/usr/bin/env python3
from __future__ import annotations
import argparse
import json
from report_generator import generate_report
def main() -> None:
parser = argparse.ArgumentParser(description="Run one or more DLP compliance report profiles")
parser.add_argument("--month", help="Month in YYYY-MM format")
parser.add_argument("--profiles", default="152-fz,pci-dss", help="Comma-separated profiles to generate")
parser.add_argument("--stdout-json", action="store_true")
args = parser.parse_args()
profiles = [item.strip() for item in str(args.profiles).split(",") if item.strip()]
results = [generate_report(month=args.month, profile=profile) for profile in profiles]
if args.stdout_json:
print(json.dumps({"items": results}, ensure_ascii=False))
if __name__ == "__main__":
main()