Files
Hanzo AI f518621f63 universe: full DX collapse — kill dead auth subnet, SQLite + Litestream, fix CI drift
Major collapses across 61 files (-2394 / +642, net -1752):

- Killed Zoo Auth Subnet: parallel auth chain contradicts hanzo.id Casdoor as canonical IAM
  (deleted k8s/zoo-auth/, compose.auth.yml, auth-gateway/, chain-configs/auth-subnet-genesis.json)
- Postgres StatefulSet → SQLite + Litestream + MinIO replication (per memory no_postgres_sqlite_only)
  Bridge becomes single-writer (replicas: 1) with restore init + replicate sidecar
- Plaintext Cloudflare API token in .env wiped; .env added to .gitignore
- 7× <your-domain> CI placeholders → kms.hanzo.ai
- 3 per-env manifests (3 × 130 lines, 90% dup) → 1 canonical manifests/services.yml (89 lines)
- 6 floating tags (:latest / :main) → :main-amd64 immutable per-arch
- Broken org refs ghcr.io/zoolabs/* + @zoolabs npm → ghcr.io/zooai/* + @zooai
- Workflow runner pool zoo-build-amd64 (wrong) → zoo-build-linux-amd64 (canonical)
- ENV var conflation ZOO_NETWORK_ID → LUX_NETWORK_ID + ZOO_EVM_CHAIN_ID
- Stale dev scripts (start/stop/status/setup.sh), convert-to-submodules.sh, Dockerfile.dev,
  .gitmodules, zoo.id/ static page, retired ARC values, k8s/patches/ all removed
- Duplicate deploy.yml workflow (shadows ci.yml) killed
- Makefile extended with remote-ops targets (deploy-{dev,test,main}, pods-{dev,test,main}, verify)

Tier-1 metrics all zero: plaintext secrets, Postgres in source, /api/ in own routes, brand contamination.

Zoo L2 EVM on Lux mainnet remains GREEN (chainId 0x30e08, balance 5e27 wei).
All 4 kustomize overlays render clean (system=35, devnet=36, testnet=36, mainnet=39).
2026-06-03 11:12:00 -07:00

25 lines
801 B
YAML

# Litestream config — continuous encrypted SQLite replication to S3.
# Shared by every Zoo service using Base/SQLite. Each pod's replica path
# is namespaced by POD_NAME so replicas of the same Deployment never
# collide. Endpoint resolves to the in-namespace s3 service so dev/test/
# main each replicate to their own MinIO instance.
apiVersion: v1
kind: ConfigMap
metadata:
name: replicate-config
labels:
app.kubernetes.io/part-of: zoo
data:
litestream.yml: |
dbs:
- path: /app/data/data.db
replicas:
- type: s3
bucket: zoo-data
path: ${POD_NAME}
endpoint: ${LITESTREAM_S3_ENDPOINT:-http://s3:9000}
region: sfo3
force-path-style: true
sync-interval: 1s
snapshot-interval: 1h