Проверка rehash, login DoS и общего rate limit

This commit is contained in:
EgorAnti
2026-11-27 11:48:33 +03:00
parent 16760f4072
commit 0fa4b66df6
14 changed files with 841 additions and 10 deletions
+8 -1
View File
@@ -4,7 +4,7 @@ CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
.PHONY: help check validate test load test-persistence test-failover test-security test-session-expiry test-mtls
.PHONY: help check validate test load test-persistence test-failover test-security test-session-expiry test-mtls test-login-dos test-credential-storage
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@@ -35,5 +35,12 @@ test-security:
test-session-expiry:
$(PYTHON) tests/session_expiry.py --base-url "$(BASE_URL)" $(TLS_ARGS)
LOGIN_DOS_ARGS ?= --source-budget
test-login-dos:
$(PYTHON) tests/login_dos.py --base-url "$(BASE_URL)" $(TLS_ARGS) $(LOGIN_DOS_ARGS)
test-credential-storage:
$(PYTHON) tests/credential_storage.py --base-url "$(BASE_URL)" $(TLS_ARGS)
test-mtls:
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/test-mtls.ps1