2 Commits

Author SHA1 Message Date
9dca6d1e2a feat(infra): automate dev-CA leaf cert rotation
infra/dev-ca/generate-dev-ca.sh's own header names this gap: 1-year
leaf certs with no rotation story short of regenerating (and
redistributing) the entire CA by hand.

Add scripts/rotate-dev-ca.sh plus a new client,
services/auth/cmd/issue-service-cert, for auth.proto's IssueServiceCert
RPC: point a running auth instance's AUTH_CA_CERT_FILE/AUTH_CA_KEY_FILE
at the same static dev CA every service's *_MTLS_CA_FILE already
trusts, and the rotation script generates a fresh keypair+CSR per
service and gets back a leaf signed against that identical root — no
new CA to redistribute, only the one service whose leaf just rotated
needs restarting to pick it up.

Verified live end-to-end: generated a CA, started auth against it,
rotated all 10 service identities, confirmed the new leaf's serial
changed, its key matches its cert, and `openssl verify -CAfile` passes
against the untouched original CA.
2026-10-23 19:10:29 +03:00
77324a7b50 feat(ration): split gateway into auth/tenant-registry/card-issuance/webhook-ingestion
Phase 2 service decomposition per docs/SCALE-EXPANSION.md section 1: extracts
internal/{airwallex,bridge,card,tenant,httpserver} out of the monolithic
gateway into four independently deployable gRPC services (each own go.mod,
Dockerfile, and tests), with gateway now a thin BFF that fans out through new
cardissuanceclient/webhookeventsclient gRPC clients. gateway.proto's external
surface is unchanged — agent/tui/cli still talk to gateway exactly as before.

Verified: all 10 go.work modules build and `go test ./...` passes across
every one, including the new gateway client packages against the live split
services (via `make build && make test`).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-19 12:25:41 +03:00