From 2af54270af3a1f0c9f26bf795e10deeab16f02c2 Mon Sep 17 00:00:00 2001 From: ngqile Date: Thu, 26 Nov 2026 16:47:11 +0800 Subject: [PATCH] docs: record env contract and MySQL settings for later changes; update status Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM --- CLAUDE.md | 2 +- openspec/changes/add-repo-foundation-local-stack/design.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 3b024fb..4e9dc28 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,7 +9,7 @@ Co-Lite: event CRM for a single company (multi-company SaaS later), cloned from ## Status -Pre-design. No code has been ported yet. Repo layout, module list and the porting approach are decided in the first brainstorm, then recorded as an OpenSpec change. +Phase 1 design: `docs/superpowers/specs/2026-11-26-co-lite-foundation-and-leads-design.md`. Change 1 (`add-repo-foundation-local-stack`) ports the kept Tastefully modules and portals and adds the local stack; see `local/README.md` to run it. ## Fixed Decisions diff --git a/openspec/changes/add-repo-foundation-local-stack/design.md b/openspec/changes/add-repo-foundation-local-stack/design.md index ba74d12..1806f09 100644 --- a/openspec/changes/add-repo-foundation-local-stack/design.md +++ b/openspec/changes/add-repo-foundation-local-stack/design.md @@ -9,7 +9,9 @@ What Tastefully looks like today (commit `8bd93d15`): - There is no root pom. Each module is a standalone Spring Boot 3.2.8 app with its own parent and pulls `com.solvway.core:solvway-core-libs:${core-project.version}` (`tastefully-v1`) from `~/.m2`. Babyboo uses `babyboo-v1` at the same coordinates. - Every service listens on port 80. The gateway resolves services by hostname from `app.services.name.*`: `service-auth`, `service-system`, `service-counter` and so on. These are the k8s service names. - MySQL holds one schema per service (`service-system`, `service-counter`, `service-member`, `service-log`, `service-email`). Tables are managed by hand-written DDL; there is no `ddl-auto` and no Flyway. No full DDL exists in the repo. -- Config comes from environment variables: `MYSQLHOST`, `MYSQLPORT`, `MYSQLUSER`, `MYSQLPWD`, `REDISHOST`, `GCP_PROJECT`, `GCP_CREDENTIAL_FILE`, `APIGATEWAYURL` and `AES_SECRET_KEY`. +- Config comes from environment variables: `MYSQLHOST`, `MYSQLPORT`, `MYSQLUSER`, `MYSQLPWD`, `REDISHOST`, `GCP_PROJECT`, `GCP_CREDENTIAL_FILE`, `APIGATEWAYURL` and `AES_SECRET_KEY`. mobile-api also requires `JWT_SECRET`, `APIKEY` and `AUTH_API_KEYS`. +- Added by this change when literal secrets were removed: `JWT_TOKEN` (required, must equal `JWT_SECRET`), `USER_AUTH_API_SECRET` (required), and optional `SMTP_PASSWORD`, `MAILGUN_API_KEY`, `SENDGRID_API_KEY`, `MAILJET_API_KEY`, `MAILJET_SECRET_KEY`, `JUMIO_TOKEN`, `JUMIO_SECRET`, `XXL_JOB_TOKEN`, `IPGEOLOCATION_API_KEY` and `USERSTACK_API_KEY`. The gateway reads its API keys from a mounted `/deployments/appkeys/appkeys.json`. Change 5 (k8s) must supply all of these. +- The dumped schema loads only with MySQL `log_bin_trust_function_creators=1` and `innodb_strict_mode=OFF`; change 5 must check the production server matches. - Pub/Sub inbound adapters are declared in each service's `PubSubConfig` (system 7, counter 12, member 12, log 3, email 3). Some serve flows Co-Lite drops (stockist, Jumio, Camunda). They stay, so each subscription must exist in the emulator. - The Dockerfiles use the base image `gitea.containerverse.dev/solvway/docker-java-21`, `ADD target/*.jar` and `-Dspring.profiles.active=$BUILD_PROFILE`.