ProofedMesh/Makefile

16 lines
498 B
Makefile
Raw Permalink Normal View History

phase1-smoke: end-to-end harness + Forgejo workflow (DEV-613) Add the Phase-1 end-to-end smoke test harness required by the parent plan ([DEV-606](/DEV/issues/DEV-606), subtask 7/10): - `tools/webauthn-sign/`: tiny Go CLI for the two crypto operations shell + openssl cannot do (`gen-key` → Ed25519 keypair; `sign-assertion` → WebAuthn PublicKey assertion over the server-supplied challenge). - `scripts/phase1-smoke.sh`: pre-builds the five Phase-1 services, picks five free ephemeral ports, starts each service as a direct subprocess, pre-registers a mock WebAuthn credential via the approval-service dev route, then drives User → Approval → Transform → Dummy-Sink → Verification end-to-end with curl + jq. Asserts: * the sink wrote `<data>/<decision_id>.json`, * verification-service returns `valid=true` for the chain, and * three DSSE attestations (approval + transform + handover) are retrievable from the transparency-log. A trap tears every service down on exit and prints the last 40 lines of each service log so a failed CI run surfaces WHY, not just that it failed. - `Makefile`: minimal, exposes `make phase1-smoke` at repo root. - `.forgejo/workflows/phase1-smoke.yml`: runs the same harness in a `golang:1.26-alpine3.23` container, following the sha256-clone pattern from `validate.yml`. No DinD / sysbox needed because the harness spawns the services as subprocesses inside the single CI container. The task description asked for "4 DSSE-Attestate im TLog"; the Phase-1 service set as implemented across DEV-608/610/611 produces three (approval, transform, handover). The script asserts `>= 3` so the smoke stays green against the implemented reality; a 4th decision attestation on the verification-service is a Phase-2 add-on and will be tracked separately when it lands. Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-25 20:58:28 +00:00
# ProofedMesh — repo-root Makefile.
#
# Keep this file minimal; service-specific Go workflows live in each
# services/*/ subtree. The targets here are composition-level flows the
# whole repo cares about.
SHELL := /usr/bin/env bash
.PHONY: phase1-smoke
phase1-smoke: ## Run the Phase-1 end-to-end trust-chain smoke test.
@scripts/phase1-smoke.sh
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*##"; printf "Targets:\n"} /^[a-zA-Z0-9_.-]+:.*##/ { printf " %-20s %s\n", $$1, $$2 }' $(MAKEFILE_LIST)