File upload security (iteration 1), security enhancements and OpenTelemetry (OTEL) implementation (sending data disabled by default)

This commit is contained in:
Oliver Falk
2025-10-17 11:16:48 +02:00
parent 2cde85e137
commit 780dc18fa4
34 changed files with 4491 additions and 109 deletions

19
scripts/run_tests_with_ot.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Run tests with OpenTelemetry instrumentation and export enabled
# This is used in CI to test OpenTelemetry functionality
set -e
echo "Running tests with OpenTelemetry instrumentation and export enabled..."
echo "===================================================================="
# Enable OpenTelemetry instrumentation and export
export OTEL_EXPORT_ENABLED=true
export OTEL_SERVICE_NAME=ivatar-test
export OTEL_ENVIRONMENT=test
# Run Django tests (Django will auto-discover all tests)
python3 manage.py test -v3
echo ""
echo "Tests completed successfully (OpenTelemetry instrumentation and export enabled)"