diff --git a/bot_bottle/pipelock.py b/bot_bottle/pipelock.py index bf5b607..e8e21ea 100644 --- a/bot_bottle/pipelock.py +++ b/bot_bottle/pipelock.py @@ -223,6 +223,15 @@ def pipelock_build_config( ) if effective_ssrf_ip_allowlist: cfg["ssrf"] = {"ip_allowlist": effective_ssrf_ip_allowlist} + + # Merge per-route pipelock config (e.g., response_body_scanning settings). + # Routes can specify arbitrary pipelock options that apply globally. + for route in bottle.egress.routes: + for key, value in route.Pipelock.Config.items(): + if key not in ("tls_passthrough", "ssrf_ip_allowlist"): + if key not in cfg: + cfg[key] = value + return cfg