Fix security issue: Exposed Remote Debug Interface with Arbitrary Code Execution Risk (CWE-489)

This commit is contained in:
pensarapp[bot] 2025-05-22 07:57:56 +00:00 committed by GitHub
parent b1b4ae3d5f
commit 56a827e732
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,10 +32,10 @@ sleep 2
if [ "$ENVIRONMENT" = "dev" ] || [ "$ENVIRONMENT" = "local" ]; then
if [ "$DEBUG" = "true" ]; then
echo "Waiting for the debugger to attach..."
exec python -m debugpy --wait-for-client --listen 0.0.0.0:5678 -m cognee
exec python -m debugpy --wait-for-client --listen 127.0.0.1:5678 -m cognee
else
exec cognee
fi
else
exec cognee
fi
fi