Skip to Content
OperationsVerification Checklist

Verification Checklist

Pre-deploy and post-deploy verification steps for the Gatelithix Gateway.

Pre-Deploy (Local)

Run these before every deploy to verify the codebase is healthy.

1. Build + Lint + Unit Tests

make ci

Verifies: lint (0 issues), vet, all unit tests pass, coverage ≥ 60%.

2. Integration Tests (requires Docker)

docker compose up -d # Start PostgreSQL + Redis go test -tags=integration ./tests/integration/... -v -count=1

Runs 98 integration tests against real PostgreSQL via testcontainers. Covers all 7 PostgreSQL stores, migration rollbacks, connection failure recovery, and Pub/Sub emulator.

3. gatelithix CLI Build

go build -o bin/gatelithix ./cmd/gatelithix/ && ./bin/gatelithix --help

Verifies the debug CLI compiles and all 5 subcommands are registered (tx, webhook, connector, pubsub, db).

4. Docs Site Build

cd apps/docs && npm run build

Requires Node 18+. Verifies the Nextra site builds with all 25 pages (architecture, operations, compliance).

5. Schema Docs Generation

bash scripts/generate-schema-docs.sh

Auto-generates database schema documentation from migration SQL files. Output: apps/docs/content/architecture/database-schema.mdx.

6. Rotation Scripts Syntax Check

for f in scripts/rotate-*.sh; do bash -n "$f" && echo "OK $f"; done

Validates all 5 secret rotation scripts (db-password, hmac-key, connector-key, redis-auth, auth0-secret).

Post-Deploy (Requires GCP Access)

Run these after deploying to Cloud Run.

7. PCI Verification

Run the gcloud commands from the PCI verification page against your live GCP projects:

# View all verification commands grep "gcloud" apps/docs/content/compliance/pci-verification.mdx

Each command verifies a specific PCI DSS 4.0.1 control (firewall rules, KMS keys, IAM bindings, audit logs).

8. Deployed E2E Test

GATEWAY_URL=https://gateway-XXXXX.run.app \ go test -tags=e2e ./tests/e2e/... -v -count=1 -run TestDeployed

Tests full payment lifecycle (authorize → capture → refund) through the sandbox connector on deployed Cloud Run. Authenticates via seeded test API key (sk_test_e2e_*).

9. Milestone Audit

Once all checks pass:

/gsd:audit-milestone

Audits the milestone against its original intent before archiving.

Quick Reference

StepCommandRequires
1. CImake ciGo, golangci-lint
2. Integrationgo test -tags=integration ./tests/integration/...Docker
3. CLIgo build -o bin/gatelithix ./cmd/gatelithix/Go
4. Docscd apps/docs && npm run buildNode 18+
5. Schemabash scripts/generate-schema-docs.shbash
6. Rotationfor f in scripts/rotate-*.sh; do bash -n "$f"; donebash
7. PCIgcloud commands from pci-verification.mdxGCP auth
8. E2EGATEWAY_URL=... go test -tags=e2e ./tests/e2e/...Deployed infra