This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
PYTHON ?= python3
|
||||
BASE_URL ?= https://localhost:8443
|
||||
CA_FILE ?=
|
||||
CA_FILE ?= certs/ca.crt
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
|
||||
.PHONY: help check validate test load test-persistence test-failover test-security
|
||||
.PHONY: help check validate test load test-persistence test-failover test-security \
|
||||
bootstrap up down wait mtls security-checks track1 rotate-cert
|
||||
|
||||
help:
|
||||
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
|
||||
@echo "check: offline structure; validate: full OpenAPI; test: running API"
|
||||
@echo "bootstrap: local CA/secrets, data services, migrations, OpenBao AppRoles"
|
||||
@echo "up/down/wait: compose lifecycle; mtls: internal trust matrix"
|
||||
@echo "track1: worker compromise / revoke / rotate / restore evidence"
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
@@ -31,3 +35,39 @@ test-failover:
|
||||
|
||||
test-security:
|
||||
$(PYTHON) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
bootstrap:
|
||||
sh scripts/bootstrap-certs.sh
|
||||
sh scripts/bootstrap-secrets.sh
|
||||
docker compose --env-file .env up -d postgres minio rabbitmq openbao
|
||||
sh scripts/wait-data.sh
|
||||
docker compose --env-file .env up -d db-roles
|
||||
docker compose --env-file .env up migrate
|
||||
docker compose --env-file .env up -d db-grants
|
||||
docker compose --env-file .env up minio-init
|
||||
docker compose --env-file .env up openbao-bootstrap
|
||||
sh scripts/bootstrap-rabbit.sh
|
||||
docker compose --env-file .env up -d --build
|
||||
|
||||
up:
|
||||
docker compose --env-file .env up -d --build
|
||||
sh scripts/wait-ready.sh
|
||||
|
||||
down:
|
||||
docker compose --env-file .env down
|
||||
|
||||
wait:
|
||||
sh scripts/wait-ready.sh
|
||||
|
||||
mtls:
|
||||
docker compose --env-file .env --profile tools up -d security-probe
|
||||
docker compose --env-file .env exec -T security-probe python /app/scripts/mtls_probe.py
|
||||
|
||||
security-checks:
|
||||
$(PYTHON) scripts/security_checks.py
|
||||
|
||||
track1:
|
||||
$(PYTHON) scripts/track1.py
|
||||
|
||||
rotate-cert:
|
||||
sh scripts/rotate-worker-cert.sh
|
||||
|
||||
Reference in New Issue
Block a user