Implement TLS identities, scoped OpenBao access and worker security study

This commit is contained in:
2026-11-16 11:57:32 +03:00
parent 20afc2c790
commit 32795a92ac
78 changed files with 8798 additions and 19 deletions
+25
View File
@@ -31,3 +31,28 @@ test-failover:
test-security:
$(PYTHON) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS)
# Student implementation; teacher acceptance targets remain unchanged.
PUBLIC_PORT ?= 8447
BASE_URL = https://localhost:$(PUBLIC_PORT)
CA_FILE = $(CURDIR)/secrets/ca.pem
bootstrap:
python3 scripts/bootstrap.py
build:
VCS_REF=$$(git rev-parse HEAD) docker compose build
init: bootstrap build
docker compose up -d postgres openbao cache cache-tls broker broker-tls storage s3 storage-tls
python3 scripts/bao_operator.py init
up: init
VCS_REF=$$(git rev-parse HEAD) docker compose up -d --wait
unseal:
python3 scripts/bao_operator.py unseal
migrate:
docker compose run --rm migrate
down:
docker compose down
student-test:
BASE_URL=$(BASE_URL) SSL_CERT_FILE=$(CA_FILE) uv run --locked pytest -q
lint:
uv run --locked ruff check src student-tests scripts
.PHONY: bootstrap build init up unseal migrate down student-test lint