#!/usr/bin/env python3 """ Script simple pour tester les paths publics """ DEFAULT_PUBLIC_PATHS = { "/healthz", "/metrics", "/", "/docs", "/redoc", "/openapi.json", "/api/traces/debug-auth", # Debug endpoint "/api/traces/debug-env", # Debug endpoint } def test_is_public(): print("=== Test des endpoints publics ===") print(f"DEFAULT_PUBLIC_PATHS: {DEFAULT_PUBLIC_PATHS}") test_paths = [ "/healthz", "/api/traces/debug-auth", "/api/traces/debug-env", "/api/traces/upload", "/metrics", "/", ] for path in test_paths: is_public = path in DEFAULT_PUBLIC_PATHS print(f"{path}: {'✅ PUBLIC' if is_public else '❌ PRIVÉ'}") if __name__ == "__main__": test_is_public()