Commit Graph
17 Commits
Author SHA1 Message Date
ngqileandClaude Opus 5.5 45bd81cdbb fix(gateway): only label reads skip the user token, not message writes
Any URL containing /message/ skipped the user token, saves included. Only the
catalog reads that services and the sign-in page make stay open now, each an
exact GET path, plus the enabled-language list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 12:44:38 +08:00
ngqileandClaude Opus 5.5 a397de8c30 feat: public WhatsApp webhook with signature checks on both sides
mobile-api answers Meta's handshake only for the right verify token and
accepts events only with a valid X-Hub-Signature-256 under a company's
app secret, capped at 1 MB and rate limited per IP, on an exact
exemption. It forwards the exact bytes and signature; the WhatsApp
service re-verifies them itself, so the ingest trusts no caller. The
gateway exempts exactly POST /whatsapp/webhook/ingest from the user JWT,
and the log redactor masks the handshake's token and challenge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 3ac3e108ff feat: WhatsApp service skeleton, settings, gateway route and mock
Adds solvway-services-whatsapp with per-company WhatsApp settings
(secrets masked), the gateway route /whatsapp/**, compose entries for
the service and a local whatsapp-mock, the example env keys, and the
service in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00
ngqileandClaude Opus 5.5 5e68478670 feat: switched-on password rules for the hint, named refusals
The system exposes the switched-on admin password rules. mobile-api
serves them to signed-in admins and, rate limited, on an exact public
route for the first-login screen. Every admin password path now refuses
with PASSWORD_RULE naming the first rule broken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 02:25:10 +08:00
ngqileandClaude Opus 5.5 2af360c775 fix: address final review of event invitations
Mask invite, check-in and registration-link tokens in gateway logs.
Audit the attended flag only when it really changes.
Drop a salesperson who left the event team from invite registrations.
Answer 404 for check-in by guest on a disabled event.
Deployment notes and the release-check record updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 22:00:47 +08:00
ngqileandClaude Opus 5.5 7137dfc48f feat: gateway opens invite and check-in paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 16:49:32 +08:00
ngqileandClaude Opus 5.5 eff4899c0d fix(gateway): let the public QR registration reach its backend calls
A visitor has no user token, so the gateway refused every call the public
page makes. Open only the exact method and path pairs it needs, and replace
the full user lookup with a yes/no activeAdminOf endpoint so no user record
is exposed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 12:37:51 +08:00
ngqileandClaude Opus 5.5 8f80f52c04 fix: route /company/** through the gateway to services-system
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-30 20:38:01 +08:00
ngqileandClaude Opus 5.5 f7ec74c7f0 feat: login history and lockout rule in services-system
LoginSecurityService derives the admin lock from login_audit and the
ADMIN_LOGIN_BLOCK settings; /loginSecurity exposes lock check, record,
history, locked list, unlock, lockout settings and password rules. The
gateway routes /loginSecurity/** and lets the lock check and record
through without a user token for the sign-in path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-30 13:26:20 +08:00
ngqileandClaude Opus 5.5 7ba427ad44 fix: keep secrets out of the service images
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
2026-11-30 10:15:29 +08:00
ngqileandClaude Opus 5.5 0562689c6e fix(gateway): never log request bodies
The gateway logged every POST and PUT body with only credentials masked,
so lead, member, user and forgot-password personal data reached the log.
It now logs method, masked path and masked headers only, and no longer
reads or rebuilds the body. The body-masking code and its tests go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-30 09:24:31 +08:00
ngqileandClaude Opus 5.5 ad4713094a fix(gateway): let admin forgot-password reach services-system without a user token
Found in the browser check: forgot-password always failed with 401 at the gateway,
so no temporary password was ever sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 21:59:12 +08:00
ngqileandClaude Opus 5.5 9e7fbeafa4 chore(local): add local Spring profile pointing Pub/Sub at the emulator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 16:00:45 +08:00
ngqile 7dc437cae1 fixup! chore: copy kept Tastefully modules and portals into Co-Lite 2026-11-26 15:59:29 +08:00
ngqileandClaude Opus 5.5 6fee337927 chore(gateway): remove routes to dropped services
Removed 41 routes whose target service is not part of Co-Lite:
bonus, payment (payment, wallet, paymentMethod, voucher, onlinePayment),
inventory (product, category, sku, pricing, deliveryOrder, promotion,
stockist stock and related), job, drive (storage), staff (staff,
staffGroup), css (feedback), sms, stockist, notification service,
kyc and report. Their app.services.name entries are removed too.
Kept targets: auth, system, member, log, counter, email.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 15:58:23 +08:00
ngqileandClaude Opus 5.5 c922be1e0b build: root aggregator pom and colite-v1 core library version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 15:57:29 +08:00
ngqileandClaude Opus 5.5 5ee51d1913 chore: copy kept Tastefully modules and portals into Co-Lite
Backend modules from tastefully 8bd93d15: core-libs, core-session,
api-gateway, mobile-api, services-auth, services-system,
services-counter, services-member, services-log, services-email.
solvway-admin-portal from babyboo f64d096ea, solvway-customer-portal
from tastefully 8bd93d15. Copied as tracked files only.

Literal secrets replaced with environment placeholders:
- services-email: SMTP_PASSWORD, MAILGUN_API_KEY, SENDGRID_API_KEY,
  MAILJET_API_KEY, MAILJET_SECRET_KEY (optional, empty default)
- services-system: JUMIO_TOKEN, JUMIO_SECRET (optional)
- services-auth: USER_AUTH_API_SECRET (required); commented JWT secret removed
- core-libs: JWT_TOKEN default removed (required), XXL_JOB_TOKEN default
  removed, ipgeolocation key read from IPGEOLOCATION_API_KEY
- services-system EkycAppConfig: commented Jumio credentials removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 15:55:45 +08:00