feat(security): add scoped identities, TLS boundaries and OpenBao bootstrap

This commit is contained in:
2026-11-20 18:08:59 +03:00
parent 20afc2c790
commit 1dd020d060
149 changed files with 16519 additions and 68 deletions
+17
View File
@@ -31,3 +31,20 @@ test-failover:
test-security:
$(PYTHON) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS)
UV ?= uv
CA_FILE = trust/ca.pem
.PHONY: bootstrap up down lint unit test-student
bootstrap:
$(UV) run --locked python -m scripts.bootstrap_security
up:
$(UV) run --locked python -m scripts.up_security --build
down:
docker compose down
lint:
$(UV) run --locked ruff check src student-tests student-unit scripts --exclude scripts/check_contract.py --exclude scripts/validate_openapi.py
$(UV) run --locked ruff format --check src student-tests student-unit scripts --exclude scripts/check_contract.py --exclude scripts/validate_openapi.py
unit:
$(UV) run --locked python -m pytest student-unit -q
test-student:
BASE_URL="$(BASE_URL)" CA_FILE="$(CA_FILE)" $(UV) run --locked python -m pytest student-tests