left4me/l4d2web/tests
mwiegand f81e839ba2
security: harden boundary inputs and production defaults
- validate instance names at the host lib and web boundary against
  [a-z0-9][a-z0-9_-]{0,63} to prevent path traversal via Server.name
- fail-closed on SECRET_KEY: load_config returns None when env unset,
  create_app raises if missing or "dev" outside TESTING
- close login timing oracle by hashing a dummy digest when the user
  is not found, equalizing response time
- set SESSION_COOKIE_SECURE outside TESTING
- delete_instance tolerates stop_service and fusermount3 failures so
  partially-initialized instances clean up without contract breaks;
  drops the is_mount() preflight that violated AGENTS.md
- document claim_next_job's single-process assumption
- clarify emit_step contract via docstring

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 00:53:33 +02:00
..
test_auth.py security: harden boundary inputs and production defaults 2026-05-07 00:53:33 +02:00
test_blueprints.py feat(l4d2-web): add form-based blueprint editor 2026-05-06 12:09:08 +02:00
test_config.py security: harden boundary inputs and production defaults 2026-05-07 00:53:33 +02:00
test_health.py security: harden boundary inputs and production defaults 2026-05-07 00:53:33 +02:00
test_host_commands.py fix(host): enforce flush=True to prevent pipeline block buffering 2026-05-06 20:34:41 +02:00
test_job_logs.py feat(l4d2-web): execute queued lifecycle jobs 2026-05-06 14:08:18 +02:00
test_job_worker.py feat(web): add boundary log lines to job worker execution 2026-05-06 20:18:23 +02:00
test_l4d2_facade.py feat(deploy): add production-like test deployment 2026-05-06 19:30:10 +02:00
test_models.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
test_overlays.py feat(deploy): add production-like test deployment 2026-05-06 19:30:10 +02:00
test_pages.py feat(l4d2-web): add server creation form 2026-05-06 19:41:04 +02:00
test_security.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00
test_servers.py security: harden boundary inputs and production defaults 2026-05-07 00:53:33 +02:00
test_status_and_server_logs.py chore(l4d2): flatten component layout 2026-05-05 23:47:06 +02:00