v1.0 - Version stable: multi-PC, détection UI-DETR-1, 3 modes exécution
- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
32
debug_public_paths.py
Normal file
32
debug_public_paths.py
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Script pour tester la fonction _is_public
|
||||
"""
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Ajouter le répertoire parent au path
|
||||
sys.path.insert(0, str(Path(__file__).parent))
|
||||
|
||||
from core.security.fastapi_security import DEFAULT_PUBLIC_PATHS
|
||||
|
||||
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()
|
||||
Reference in New Issue
Block a user