feat(guardrails): exposure domain (EXP-*): console data, source maps (config, public dir, large files), hydrated state, shipped comments, data attributes, error bodies in routes, debug mode, wide responses

This commit is contained in:
bchanot committed 2026-10-19 00:34:57 +02:00
1 parent 7500a618fe
commit d46201c561
6 files changed
+380 -33

No files matched your search

+5 -2
View File
@@ -6,7 +6,9 @@ See scanner.py for the modes and exit codes.
import sys
import scanner
from checks import a11y, apis, functions, hosting, injection, messaging, supabase
from checks import (
a11y, apis, exposure, functions, hosting, injection, messaging, supabase,
)
CATALOGUE = scanner.Catalogue(
name="guardrails",
@@ -18,11 +20,12 @@ CATALOGUE = scanner.Catalogue(
"messaging": messaging,
"functions": functions,
"injection": injection,
"exposure": exposure,
},
rule_domains={
"API": "api", "HOST": "hosting", "A11Y": "a11y", "SB": "supabase",
"MSG": "messaging", "FN": "functions",
"INJ": "injection",
"INJ": "injection", "EXP": "exposure",
},
manual_rules=frozenset({
"HOST-WAF-DDOS", "HOST-SPEND-CAP", "SB-RLS-LIVE",