fix(security): add username validation, constant-time login, default credential rejection, and tooling
This commit is contained in:
23
scripts/agent_validate_backend.sh
Normal file
23
scripts/agent_validate_backend.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
CONTAINER="aegis-backend"
|
||||
|
||||
echo "=========================================="
|
||||
echo " Aegis Backend Validation (in-container)"
|
||||
echo "=========================================="
|
||||
|
||||
echo ""
|
||||
echo "[1/2] Linting with ruff..."
|
||||
docker exec "$CONTAINER" sh -c "cd /app && /home/appuser/.local/bin/ruff check app/ tests/ --no-fix"
|
||||
echo " ✓ Lint passed"
|
||||
|
||||
echo ""
|
||||
echo "[2/2] Running tests with pytest..."
|
||||
docker exec "$CONTAINER" sh -c "cd /app && python -m pytest tests/ -v --tb=short -q"
|
||||
echo " ✓ Tests passed"
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo " ALL CHECKS PASSED"
|
||||
echo "=========================================="
|
||||
Reference in New Issue
Block a user