Implement TLS identities, scoped OpenBao access and worker security study
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user