feat: CI image publishing, production DB package and deployment handover (change 5) #13

Merged
ngqile merged 7 commits from add-release-ci-packaging into main 2026-11-30 02:22:37 +00:00
Owner

OpenSpec change add-release-ci-packaging (change 5 of the phase 1 design, cut down to CI, images and handover; someone else deploys).

What

  • CI (.gitea/workflows/ci.yml): on push to main, Maven verify over the eight services, then build and check all nine images, then push them to gitea.containerverse.dev/solvway/co-lite-<module> tagged with the commit SHA and latest. Nothing is pushed unless every build, test and image check passes. Images are named under solvway because the repo moves there before deployment; pushes are not expected to work until then.
  • Image safety: each Java module's build context holds only its jar; local/image-check.sh fails an image carrying a key or env file, a private key under any name or extension, or a secret setting with a built-in default. It found SMSS360_APIKEY defaulted to a real-looking Tastefully key in service-email; the default is removed. That key is in git history and must be rotated.
  • Production DB package (openspec/changes/add-release-ci-packaging/sql/): 00–03 from the local seed without the dev admin, plus 04-first-admin.sql taking an operator-made bcrypt hash; that admin must change the password at first sign-in.
  • Handover (docs/deployment.md): images, Service names, ports, probes, every environment variable, mounted files (appkeys.json with a correct example, Pub/Sub key), Secret templates with base64 placeholders, Pub/Sub topics, DB server settings and grants, Traefik route for co-lite.containerverse.dev, setup order and known gaps.

Verification

  • Local CI dry-run: Maven verify over 8 modules, all nine images built, image check OK on each.
  • Image check fails on planted secrets (key file by name, renamed service-account key, keys under a dev/ or sys/ folder, secret default in the jar) and when unzip is missing.
  • SQL package loaded into a throwaway stack: all services up, dev password rejected, new admin forced to change password, then admin APIs return 200.
  • Handover variable coverage script: nothing missing.
  • Every task passed an Opus Review Gate; whole-branch Opus review: ready to merge with fixes, which are applied in the last commit.

Known gaps

  • No email provider yet: new staff get their temporary password by email, so only the first admin can sign in. A follow-up change adds an admin-set temporary password.
  • Rotate the leaked SMS360 key.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM

OpenSpec change `add-release-ci-packaging` (change 5 of the phase 1 design, cut down to CI, images and handover; someone else deploys). ## What - **CI** (`.gitea/workflows/ci.yml`): on push to `main`, Maven `verify` over the eight services, then build and check all nine images, then push them to `gitea.containerverse.dev/solvway/co-lite-<module>` tagged with the commit SHA and `latest`. Nothing is pushed unless every build, test and image check passes. Images are named under `solvway` because the repo moves there before deployment; pushes are not expected to work until then. - **Image safety**: each Java module's build context holds only its jar; `local/image-check.sh` fails an image carrying a key or env file, a private key under any name or extension, or a secret setting with a built-in default. It found `SMSS360_APIKEY` defaulted to a real-looking Tastefully key in service-email; the default is removed. **That key is in git history and must be rotated.** - **Production DB package** (`openspec/changes/add-release-ci-packaging/sql/`): `00`–`03` from the local seed without the dev admin, plus `04-first-admin.sql` taking an operator-made bcrypt hash; that admin must change the password at first sign-in. - **Handover** (`docs/deployment.md`): images, Service names, ports, probes, every environment variable, mounted files (`appkeys.json` with a correct example, Pub/Sub key), Secret templates with base64 placeholders, Pub/Sub topics, DB server settings and grants, Traefik route for `co-lite.containerverse.dev`, setup order and known gaps. ## Verification - Local CI dry-run: Maven verify over 8 modules, all nine images built, image check OK on each. - Image check fails on planted secrets (key file by name, renamed service-account key, keys under a `dev/` or `sys/` folder, secret default in the jar) and when `unzip` is missing. - SQL package loaded into a throwaway stack: all services up, dev password rejected, new admin forced to change password, then admin APIs return 200. - Handover variable coverage script: nothing missing. - Every task passed an Opus Review Gate; whole-branch Opus review: ready to merge with fixes, which are applied in the last commit. ## Known gaps - No email provider yet: new staff get their temporary password by email, so only the first admin can sign in. A follow-up change adds an admin-set temporary password. - Rotate the leaked SMS360 key. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
ngqile added 7 commits 2026-11-30 02:22:34 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Each Java module's build context now holds only its jar, and
local/image-check.sh fails an image that carries a key file, a private
key under any name, or a secret setting with a built-in default. It
found one: service-email defaulted SMSS360_APIKEY to a real-looking key,
now removed (the key is in git history and must be rotated).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Spec states what the images guarantee (no secrets, overridable defaults);
handover notes non-TLS DB connections, root on port 80, the empty-server
package, the SMS key rotation, and the missing email/system Secrets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
ngqile merged commit c293ae12b3 into main 2026-11-30 02:22:37 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#13