Commit Graph

468 Commits

Author SHA1 Message Date
Janis Eccarius a84f62f972 fix(nowchess): correct tournament service port to 8088 and SELF_URL
- TOURNAMENT_SERVICE_URL was 8086 but K8s service and app both use 8088
- TOURNAMENT_SELF_URL on htwg-1 should be base ingress URL (port 80),
  not a direct service port — ingress routes /api/tournament to tournament service

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 21:31:16 +02:00
Janis Eccarius 3e6a7be274 fix(htwg-1): correct TOURNAMENT_SELF_URL to htwg-1 own IP
Was pointing at third-party server (141.37.123.132). Should be htwg-1's
own tournament service IP so remote clusters can proxy mutations back here.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 21:29:40 +02:00
Janis Eccarius b82a0919e9 feat(nowchess): wire TOURNAMENT_SERVICE_URL and TOURNAMENT_SELF_URL
- Official-bots now targets local tournament service (TOURNAMENT_SERVICE_URL)
  instead of calling remote cluster directly
- TOURNAMENT_SELF_URL tells each cluster's tournament and official-bots
  services their own public URL for cross-cluster replication
- htwg-1-prod: remove TOURNAMENT_SERVER_URL, add both new vars with correct
  values (tournament active service + node IP for self-announcement)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 21:23:58 +02:00
Janis Eccarius 521a39fa04 fix(official-bots): point ACCOUNT_SERVICE_URL to correct K8s service name
Service is named nowchess-account-active, not nowchess-account. DNS resolution
failed on startup causing official bots to never sync and appear unavailable.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 20:59:39 +02:00
Janis Eccarius f2aeea1b40 fix(kustomization): update API and WebSocket URLs for frontend environment 2026-06-21 20:49:52 +02:00
Janis Eccarius 7aa3bd3b12 fix: update CORS_ORIGINS to new IP address 2026-06-21 17:16:59 +02:00
svc.kargo ce56b7cc8b chore(kargo): update image tag official-bots to 0.22.0-x86_v2 on htwg-1-prod (#436) 2026-06-21 16:30:58 +02:00
svc.kargo 433227e132 chore(kargo): update image tag official-bots to 0.22.0 on staging (#435) 2026-06-21 16:22:26 +02:00
svc.kargo e1e501766b chore(kargo): update image tag frontend to 0.4.4-x86_v2 on htwg-1-prod (#434) 2026-06-21 16:22:25 +02:00
svc.kargo 5423f0000a chore(kargo): update image tag frontend to 0.4.4 on staging (#433) 2026-06-21 16:12:22 +02:00
svc.kargo 49e9d60bb0 chore(kargo): update image tag official-bots to 0.21.0-x86_v2 on htwg-1-prod (#432) 2026-06-21 13:50:51 +02:00
svc.kargo e164e6d1a2 chore(kargo): update image tag official-bots to 0.21.0 on staging (#430) 2026-06-21 13:46:54 +02:00
svc.kargo bde04c0944 chore(kargo): update image tag tournament to 0.4.0-x86_v2 on htwg-1-prod (#431) 2026-06-21 13:46:53 +02:00
svc.kargo ea4728b111 chore(kargo): update image tag core to 0.53.0-x86_v2 on htwg-1-prod (#428) 2026-06-21 13:46:46 +02:00
svc.kargo 72e623bbf5 chore(kargo): update image tag tournament to 0.4.0 on staging (#427) 2026-06-21 13:42:52 +02:00
svc.kargo 79a2968950 chore(kargo): update image tag core to 0.53.0 on staging (#426) 2026-06-21 13:42:22 +02:00
svc.kargo 45284b6e36 chore(kargo): update image tag frontend to 0.4.3-x86_v2 on htwg-1-prod (#425) 2026-06-21 12:36:28 +02:00
lq64 0030998279 fix: add WebSocket timeout annotations and use-regex to ingresses (#419)
Add proxy-read-timeout and proxy-send-timeout (3600s) so nginx does not
drop long-lived WebSocket connections at the default 60s idle timeout.

Add use-regex: "true" to staging to match production — without it, the
ImplementationSpecific path for the game WebSocket
(/api/board/game/[A-Za-z0-9]{8}/ws) is treated as a literal string
instead of a regex and never matches real game IDs.

---------

Co-authored-by: LQ63 <lkhermann@web.de>
Reviewed-on: #419
Co-authored-by: Leon Hermann <lq@blackhole.local>
Co-committed-by: Leon Hermann <lq@blackhole.local>
2026-06-21 12:35:28 +02:00
svc.kargo fef2bb728b chore(kargo): update image tag ws to 0.17.0-x86_v2 on htwg-1-prod (#423)
chore(kargo): update image tag ws to 0.17.0-x86_v2 on htwg-1-prod

[View in Kargo UI](https://kargo.nowchess.janis-eccarius.de/project/nowchess-kargo/stage/htwg-1-prod)

---------

Co-authored-by: Kargo <no-reply@kargo.io>
Reviewed-on: #423
Co-authored-by: svc.kargo <kargo@blackhole.local>
Co-committed-by: svc.kargo <kargo@blackhole.local>
2026-06-21 12:35:21 +02:00
svc.kargo 3822f2a77f chore(kargo): update image tag frontend to 0.4.3 on eu-central-1-prod (#424) 2026-06-21 11:13:22 +02:00
svc.kargo 11ede2b94c chore(kargo): update image tag ws to 0.17.0 on eu-central-1-prod (#422) 2026-06-21 11:12:42 +02:00
svc.kargo 4916dc590f chore(kargo): update image tag frontend to 0.4.3 on staging (#421) 2026-06-21 11:08:31 +02:00
Janis Eccarius c39661828b fix: wire analysis service to ingress across all clusters
Add /api/analysis → nowchess-analysis-active:8087 path rule to
eu-central-1-staging, eu-central-1-prod, and htwg-1-prod ingresses.
Rule placed before the /api catch-all so nginx routes correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 10:32:01 +02:00
svc.kargo 994a709f44 chore(kargo): update image tag ws to 0.17.0 on staging (#420) 2026-06-19 12:35:52 +02:00
svc.kargo cef7823b44 chore(kargo): update image tag frontend to 0.4.2 on staging (#418) 2026-06-17 11:22:48 +02:00
Janis f655ce8ac6 fix(official-bots): resolve JWT verify key via MP env props (#417)
Reviewed-on: #417
2026-06-17 10:18:58 +02:00
Janis 93df9ee8d3 fix(official-bots): resolve JWT verify key via MP env props (#416)
The merged rollout set JWT_PUBLIC_KEY_PATH, but the running image's
config never references it, so mp.jwt.verify.publickey.location stayed
null and every token failed with "Verification key is unresolvable".

Replace it with the MicroProfile properties the runtime reads directly
(MP_JWT_VERIFY_PUBLICKEY_LOCATION, MP_JWT_VERIFY_ISSUER), pointing at the
already-mounted ncs-jwt-keys public key. No image rebuild needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Reviewed-on: #416
2026-06-17 10:01:38 +02:00
Janis 4563782626 fix(official-bots): mount JWT public key from ncs-jwt-keys (#414)
Reviewed-on: #414
2026-06-17 09:51:15 +02:00
Janis 2d5047cc63 fix(official-bots): mount JWT public key from ncs-jwt-keys (#413)
The official-bots rollout never mounted the ncs-jwt-keys secret nor set
JWT_PUBLIC_KEY_PATH, so the service fell back to the image-baked
public.pem, which does not match the deployed signing key. Every token
failed RS256 verification -> 401.

Mount ncs-jwt-keys at /secrets/jwt and point JWT_PUBLIC_KEY_PATH there,
mirroring account/core/tournament. Verify-only, no private key.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Reviewed-on: #413
2026-06-17 09:43:05 +02:00
svc.kargo 669159b098 chore(kargo): update image tag frontend to 0.4.1 on eu-central-1-prod (#412) 2026-06-17 09:39:33 +02:00
svc.kargo 55bcbe8ee9 chore(kargo): update image tag account to 0.25.0 on eu-central-1-prod (#411) 2026-06-17 09:38:50 +02:00
svc.kargo 5d77b37f57 chore(kargo): update image tag frontend to 0.4.1-x86_v2 on htwg-1-prod (#410) 2026-06-17 09:38:03 +02:00
svc.kargo f11b96a387 chore(kargo): update image tag account to 0.25.0-x86_v2 on htwg-1-prod (#409) 2026-06-17 09:37:57 +02:00
svc.kargo 6b2c67bd77 chore(kargo): update image tag official-bots to 0.19.0 on eu-central-1-prod (#408) 2026-06-17 09:37:51 +02:00
svc.kargo 4850303432 chore(kargo): update image tag official-bots to 0.19.0-x86_v2 on htwg-1-prod (#407) 2026-06-17 09:37:50 +02:00
svc.kargo 793b92e1e3 chore(kargo): update image tag official-bots to 0.19.0 on staging (#406) 2026-06-17 09:33:57 +02:00
svc.kargo b8b7d5aa47 chore(kargo): update image tag account to 0.25.0 on staging (#405) 2026-06-17 09:33:26 +02:00
svc.kargo 79dc37ffb5 chore(kargo): update image tag frontend to 0.4.1 on staging (#404) 2026-06-17 09:22:11 +02:00
Janis dbf9a551a7 fix(ingress): route /api/bots to official-bots service (#403)
/api/bots/official/join-tournament returned 404 because no ingress
rule matched the prefix; requests fell through to the /api catch-all
and hit nowchess-core (8080), which has no such endpoint.

Add /api/bots Prefix rule -> nowchess-official-bots-active:8088 in
all three environments (staging, eu-central-1-prod, htwg-1-prod).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Reviewed-on: #403
2026-06-17 08:58:49 +02:00
svc.kargo f38fd0302c chore(kargo): update image tag frontend to 0.4.0 on staging (#402) 2026-06-17 08:24:42 +02:00
svc.kargo f043443efd chore(kargo): update image tag analysis to 0.2.0 on eu-central-1-prod (#400) 2026-06-17 00:27:23 +02:00
svc.kargo dfa7749c18 chore(kargo): update image tag tournament to 0.3.0 on eu-central-1-prod (#399) 2026-06-16 22:57:57 +02:00
svc.kargo f90777ec63 chore(kargo): update image tag tournament to 0.3.0-x86_v2 on htwg-1-prod (#398) 2026-06-16 21:57:55 +02:00
svc.kargo b354cb1594 chore(kargo): update image tag official-bots to 0.18.0-x86_v2 on htwg-1-prod (#396) 2026-06-16 21:57:42 +02:00
svc.kargo 7f17905b68 chore(kargo): update image tag analysis to 0.2.0 on staging (#395) 2026-06-16 21:53:37 +02:00
svc.kargo 7b95f16361 chore(kargo): update image tag official-bots to 0.18.0 on staging (#394) 2026-06-16 21:52:58 +02:00
svc.kargo e61cf790b1 chore(kargo): update image tag tournament to 0.3.0 on staging (#393) 2026-06-16 21:49:31 +02:00
Janis 63e9d0512c feat(nci-11): add Kubernetes manifests for nowchess-analysis service (#392)
Co-authored-by: Janis Eccarius <eccariusjanis@gmail.com>
Reviewed-on: #392
2026-06-16 19:42:04 +02:00
svc.kargo 0442352b3e chore(kargo): update image tag frontend to 0.3.0 on eu-central-1-prod (#391) 2026-06-16 10:37:05 +02:00
svc.kargo 44b3369501 chore(kargo): update image tag tournament to 0.2.0 on eu-central-1-prod (#390) 2026-06-16 10:36:25 +02:00