feat: configurable k8s resources, CSIC training pipeline, unified Dockerfile
- Make K8s namespace, TLS secret, and config ConfigMap names configurable via [kubernetes] config section (previously hardcoded to "ingress") - Add CSIC 2010 dataset converter and auto-download for scanner training - Unify Dockerfile for local and production builds (remove cross-compile path) - Bake ML models directory into container image - Update CSIC dataset URL to self-hosted mirror (src.sunbeam.pt) - Fix rate_limit pipeline log missing fields - Consolidate docs/README.md into root README.md Signed-off-by: Sienna Meridian Satterwhite <sienna@sunbeam.pt>
This commit is contained in:
@@ -410,7 +410,7 @@ impl ProxyHttp for SunbeamProxy {
|
||||
);
|
||||
|
||||
metrics::SCANNER_DECISIONS
|
||||
.with_label_values(&[decision, &reason])
|
||||
.with_label_values(&[decision, reason])
|
||||
.inc();
|
||||
|
||||
if decision == "block" {
|
||||
@@ -447,7 +447,11 @@ impl ProxyHttp for SunbeamProxy {
|
||||
path = %session.req_header().uri.path(),
|
||||
client_ip = %ip,
|
||||
user_agent = session.req_header().headers.get("user-agent").and_then(|v| v.to_str().ok()).unwrap_or("-"),
|
||||
content_length = session.req_header().headers.get("content-length").and_then(|v| v.to_str().ok()).unwrap_or("0"),
|
||||
has_cookies = cookie.is_some(),
|
||||
has_referer = session.req_header().headers.get("referer").is_some(),
|
||||
has_accept_language = session.req_header().headers.get("accept-language").is_some(),
|
||||
accept = session.req_header().headers.get("accept").and_then(|v| v.to_str().ok()).unwrap_or("-"),
|
||||
"pipeline"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user