Compare commits

..
Author SHA1 Message Date
autonomic-bot 7b64bd9703 chore: upgrade Docs to v6.1.1, valkey 9.2.1; docspec 1.21.11; runtime RSA keys
cc-ci/testme cc-ci: success
2026-11-29 05:02:05 +00:00
Linus Gasser ee1a22cbe9 chore: publish 2.1.2+v6.1.0-1 release 2026-11-25 10:31:10 +01:00
Linus Gasser 68ece4222e chore: update image tags 2026-11-25 10:30:04 +01:00
Linus Gasser 7cba86f0c4 chore: publish 2.1.1+v6.1.0-1 release 2026-11-20 19:08:07 +01:00
Linus Gasser f059d56081 Updating to latest lasuite-docs frontend
Wrong semver indication - 6.1.0-1 comes BEFORE 6.1.0, according to semver
2026-11-20 19:07:40 +01:00
Linus Gasser 3e77b7d6d1 chore: publish 2.1.0+v6.1.0 release 2026-11-20 18:39:37 +01:00
Linus Gasser 1f6ada41e9 Updating with the latest images
The latest images don't have a bash/sh anymore, so it needs node to
initialise it.
2026-11-20 18:12:38 +01:00
Linus Gasser 91dd9c5389 chore: update image tags 2026-11-20 17:56:22 +01:00
Linus Gasser 7d8f0448cc Fix broken push 2026-11-20 17:55:49 +01:00
7 changed files with 72 additions and 47 deletions
+1
View File
@@ -1,4 +1,5 @@
TYPE=lasuite-docs TYPE=lasuite-docs
DOMAIN=lasuite-docs.example.com DOMAIN=lasuite-docs.example.com
## Domain aliases ## Domain aliases
+1 -1
View File
@@ -1,7 +1,7 @@
# Set any config versions here # Set any config versions here
# Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs # Docs: https://docs.coopcloud.tech/maintainers/handbook/#manage-configs
export ABRA_ENTRYPOINT_VERSION=v6 export ABRA_ENTRYPOINT_VERSION=v6
export NGINX_CONF_VERSION=v4 export NGINX_CONF_VERSION=v5
export PG_BACKUP_VERSION=v5 export PG_BACKUP_VERSION=v5
export MINIO_INITIALIZE_VERSION=v2 export MINIO_INITIALIZE_VERSION=v2
export MIGRATE_VERSION=v1 export MIGRATE_VERSION=v1
+36 -28
View File
@@ -122,14 +122,14 @@ x-minio-env: &minio-env
services: services:
app: app:
image: lasuite/impress-frontend:v6.1.0 image: lasuite/impress-frontend:v6.1.0-1
networks: networks:
- backend - backend
deploy: deploy:
labels: labels:
- "traefik.enable=false" - "traefik.enable=false"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}" - "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
- "coop-cloud.${STACK_NAME}.version=2.0.0+v6.0.4" - "coop-cloud.${STACK_NAME}.version=2.1.2+v6.1.0-1"
user: "${DOCKER_USER:-1000}" user: "${DOCKER_USER:-1000}"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"] test: ["CMD", "curl", "-f", "http://localhost:8080"]
@@ -139,7 +139,7 @@ services:
start_period: 10s start_period: 10s
backend: backend:
image: lasuite/impress-backend:v6.1.0 image: lasuite/impress-backend:v6.1.1
networks: networks:
- backend - backend
environment: environment:
@@ -154,7 +154,7 @@ services:
user: "${DOCKER_USER:-1000}" user: "${DOCKER_USER:-1000}"
command: ["gunicorn", "-c", "/usr/local/etc/gunicorn/impress.py", "impress.wsgi:application"] command: ["gunicorn", "-c", "/usr/local/etc/gunicorn/impress.py", "impress.wsgi:application"]
entrypoint: > entrypoint: >
sh -c "while [ ! -s /keys/jwt.pem ]; do sleep 1; done; if [ \"$$AUTO_MIGRATIONS\" = \"true\" ]; then /migrate.sh; fi && exec /abra-entrypoint.sh /usr/local/bin/entrypoint \"$$@\"" -- sh -c "while [ ! -r /keys/jwt.pem ]; do sleep 1; done; if [ \"$$AUTO_MIGRATIONS\" = \"true\" ]; then /migrate.sh; fi && exec /abra-entrypoint.sh /usr/local/bin/entrypoint \"$$@\"" --
volumes: volumes:
- jwt_keys:/keys:ro - jwt_keys:/keys:ro
configs: configs:
@@ -175,7 +175,7 @@ services:
- email_pass - email_pass
celery: celery:
image: lasuite/impress-backend:v6.1.0 image: lasuite/impress-backend:v6.1.1
networks: networks:
- backend - backend
healthcheck: healthcheck:
@@ -189,7 +189,7 @@ services:
environment: environment:
<<: [*common-env, *postgres-env, *yprovider-env] <<: [*common-env, *postgres-env, *yprovider-env]
entrypoint: > entrypoint: >
sh -c "while [ ! -s /keys/jwt.pem ]; do sleep 1; done; exec /abra-entrypoint.sh /usr/local/bin/entrypoint \"$$@\"" -- sh -c "while [ ! -r /keys/jwt.pem ]; do sleep 1; done; exec /abra-entrypoint.sh /usr/local/bin/entrypoint \"$$@\"" --
volumes: volumes:
- jwt_keys:/keys:ro - jwt_keys:/keys:ro
configs: configs:
@@ -208,7 +208,7 @@ services:
# Collaboration server: serves the websocket and holds the document content # Collaboration server: serves the websocket and holds the document content
yhub: yhub:
image: lasuite/impress-yhub:v6.1.0 image: lasuite/impress-yhub:v6.1.1
networks: networks:
- backend - backend
environment: *yhub-env environment: *yhub-env
@@ -219,22 +219,30 @@ services:
timeout: 5s timeout: 5s
retries: 20 retries: 20
start_period: 30s start_period: 30s
# The server never creates its schema: run the idempotent init-db before every start. # Since v6.1.0 the image is distroless (no shell), so this is plain node:
# The v6.1.0 yhub image is distroless (no shell), so the init-db + server chain is a # - wait for the RSA key the jwt-keys sidecar generates into the shared volume
# plain Node script: wait for the RSA key, build POSTGRES from the secret, init-db, # - POSTGRES has no _FILE variant: build it from the postgres_p secret
# then exec the server exactly as the image's default Cmd would. # - the server never creates its schema: run the idempotent init-db
# (dist/init-db.js retries while postgres isn't up yet) before every start
# - then load sentry and the server in this process, like the image's
# `node --import ./dist/sentry.js dist/server.js`
# No `$` in here, or compose would interpolate it.
entrypoint: entrypoint:
- /nodejs/bin/node - node
- "-e" - -e
- |- - >-
const fs = require("fs"), cp = require("child_process"); const fs = require('fs'), cp = require('child_process');
const key = "/keys/yhub-jwt.pem"; const key = '/keys/yhub-jwt.pem';
const sleep = () => { Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 1000); }; const hasKey = () => { try { fs.accessSync(key, fs.constants.R_OK); return true; } catch { return false; } };
for (let i = 0; i < 300 && !(fs.existsSync(key) && fs.statSync(key).size > 0); i++) sleep(); const sab = new Int32Array(new SharedArrayBuffer(4));
if (!(fs.existsSync(key) && fs.statSync(key).size > 0)) { console.error("yhub: RSA key never appeared in /keys"); process.exit(1); } for (let i = 0; i < 300 && !hasKey(); i++) Atomics.wait(sab, 0, 0, 1000);
process.env.POSTGRES = "postgres://docs:" + encodeURIComponent(fs.readFileSync("/run/secrets/postgres_p", "utf8").trim()) + "@db:5432/yhub"; if (!hasKey()) { console.error('yhub: RSA key never appeared in /keys'); process.exit(1); }
cp.execFileSync(process.execPath, ["node_modules/@y/hub/bin/init-db.js"], { stdio: "inherit" }); const pw = encodeURIComponent(fs.readFileSync('/run/secrets/postgres_p', 'utf8').trim());
cp.execFileSync(process.execPath, ["--import", "./dist/sentry.js", "dist/server.js"], { stdio: "inherit" }); process.env.POSTGRES = 'postgres://docs:' + pw + '@db:5432/yhub';
const r = cp.spawnSync(process.execPath, ['/app/dist/init-db.js'], { stdio: 'inherit' });
if (r.status !== 0) process.exit(r.status ?? 1);
import('/app/dist/sentry.js').then(() => import('/app/dist/server.js'));
# The image's CMD gets appended to `node -e` as extra argv and is ignored
volumes: volumes:
- jwt_keys:/keys:ro - jwt_keys:/keys:ro
secrets: secrets:
@@ -245,7 +253,7 @@ services:
# Valkey of yhub: holds updates not yet persisted to postgres, so it is a store, not a cache # Valkey of yhub: holds updates not yet persisted to postgres, so it is a store, not a cache
yhub-valkey: yhub-valkey:
image: valkey/valkey:9.2.0-alpine image: valkey/valkey:9.2.1-alpine
command: ["valkey-server", "--maxmemory-policy", "volatile-lru", "--appendonly", "yes", "--appendfsync", "everysec"] command: ["valkey-server", "--maxmemory-policy", "volatile-lru", "--appendonly", "yes", "--appendfsync", "everysec"]
healthcheck: healthcheck:
test: ["CMD", "valkey-cli", "ping"] test: ["CMD", "valkey-cli", "ping"]
@@ -262,7 +270,7 @@ services:
# Conversion service only since v6 (no longer serves the collaboration) # Conversion service only since v6 (no longer serves the collaboration)
y-provider: y-provider:
image: lasuite/impress-y-provider:v6.1.0 image: lasuite/impress-y-provider:v6.1.1
networks: networks:
- backend - backend
healthcheck: healthcheck:
@@ -281,11 +289,11 @@ services:
- y_api_key - y_api_key
docspec: docspec:
image: ghcr.io/docspec/api:1.21.4 image: ghcr.io/docspec/api:1.21.11
networks: networks:
- backend - backend
healthcheck: healthcheck:
# Use 127.0.0.1, which is required instead of localhost for this healthcheck # Use 127.0.0.1 (not localhost) for this healthcheck
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/health"] test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/health"]
interval: 15s interval: 15s
timeout: 5s timeout: 5s
@@ -354,7 +362,7 @@ services:
- postgres_p - postgres_p
redis: redis:
image: redis:8.10.3 image: redis:8.12.0
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 15s interval: 15s
@@ -395,7 +403,7 @@ services:
- minio_ru - minio_ru
web: web:
image: nginx:1.31.9 image: nginx:1.31.10
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8083"] test: ["CMD", "curl", "-f", "http://localhost:8083"]
interval: 15s interval: 15s
+8 -2
View File
@@ -13,6 +13,12 @@ server {
# Disables server version feedback on pages and in headers # Disables server version feedback on pages and in headers
server_tokens off; server_tokens off;
# Docker's embedded DNS. Used to resolve yhub per request (via a variable
# in proxy_pass) so nginx doesn't refuse to start while yhub isn't healthy
# yet: swarm only publishes a service's DNS name once it has a healthy task.
resolver 127.0.0.11 valid=10s ipv6=off;
set $yhub_upstream http://{{ env "STACK_NAME" }}_yhub:3002;
location @proxy_to_docs_backend { location @proxy_to_docs_backend {
proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
@@ -62,7 +68,7 @@ server {
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
# Collaboration server # Collaboration server
proxy_pass http://{{ env "STACK_NAME" }}_yhub:3002; proxy_pass $yhub_upstream;
# Set appropriate timeout for WebSocket # Set appropriate timeout for WebSocket
proxy_read_timeout 86400; proxy_read_timeout 86400;
@@ -76,7 +82,7 @@ server {
# Document routes (http fallback, history) and the public keys of yhub # Document routes (http fallback, history) and the public keys of yhub
location ~ ^/collaboration/(ydoc|activity|changeset|rollback|jwks)/ { location ~ ^/collaboration/(ydoc|activity|changeset|rollback|jwks)/ {
proxy_pass http://{{ env "STACK_NAME" }}_yhub:3002; proxy_pass $yhub_upstream;
proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Proto https;
proxy_set_header Origin $http_origin; proxy_set_header Origin $http_origin;
proxy_set_header Host $host; proxy_set_header Host $host;
+1
View File
@@ -0,0 +1 @@
Latest images need different handling, but you should not need to change anything!
+1
View File
@@ -0,0 +1 @@
Patches nginx image
+24 -16
View File
@@ -1,18 +1,26 @@
Fix upstream main + make v6.1.0 deployable; runtime RSA keys + docspec 1.21.4. Patch upgrade to Docs v6.1.1 + valkey 9.2.1, and v6 deployable without manual keys.
- Upstream `compose.yml` at `34e6c91` contains unresolved merge-conflict markers - Docs app images bumped v6.1.0 -> v6.1.1 (backend, celery, yhub, y-provider);
(valkey 9.1.4 vs 9.1.3) around the `yhub-valkey` service — abra FATA the frontend image stays v6.1.0-1 (no v6.1.1 frontend image published yet).
`yaml: line 230: could not find expected ':'`. Resolved here to a single Includes upstream security fixes (access-request/role/invitation rights,
`yhub-valkey` bumped to `valkey/valkey:9.2.0-alpine`. email normalization, document move/duplicate rights). Celery v6.1.1 adds
- The yhub v6.1.0 image is distroless (no shell, no /usr/local/bin/entrypoint), so heartbeat-file probes but still answers `celery inspect ping`, so the
upstream's renovate bump broke the yhub service entirely. The entrypoint is now a existing healthcheck keeps working. Auto-migrations apply 0037 on startup.
plain `node -e` script: wait for the RSA key, build POSTGRES from the secret, run Changelog: https://github.com/suitenumerique/docs/releases/tag/v6.1.1
the idempotent init-db, then exec the server (same default Cmd). - yhub-valkey bumped 9.2.0-alpine -> 9.2.1-alpine (in-line patch; bug fixes,
- The two RSA JWT keys (backend ↔ yhub) are now generated at runtime by a `jwt-keys` incl. TLS loading and the forkless-save crash). Changelog:
sidecar (`node:22-alpine`) into the `jwt_keys` volume; consumers wait for their https://github.com/valkey-io/valkey/releases/tag/9.2.1
file. `SECRET_JWT_PK_VERSION`/`SECRET_YHUB_JWT_PK_VERSION` are gone — fresh - Docspec moves to the Rust `ghcr.io/docspec/api:1.21.11` (port 3000), which
installs deploy without manual `abra app secret insert` of PEMs. Docs >= 5.7 expects; the archived Elixir `ghcr.io/docspecio/api` (port 4000)
- Docspec moves to the Rust `ghcr.io/docspec/api:1.21.4` (port 3000), which Docs is removed. Changelog: https://github.com/docspec/docspec/releases
>= 5.7 expects; the archived Elixir `ghcr.io/docspecio/api` (port 4000) is removed. (1.21.4 -> 1.21.11 is within-major, no breaking changes; 2.0.0 is still RC).
- The two RSA JWT keys (backend <-> yhub) are now generated at runtime by a
`jwt-keys` sidecar (`node:22-alpine`) into the `jwt_keys` volume; the backend,
celery and yhub wait for their file. `SECRET_JWT_PK_VERSION` /
`SECRET_YHUB_JWT_PK_VERSION` are gone -- fresh installs deploy without manual
`abra app secret insert` of PEMs, and upgrades move to the new keys
transparently.
- Postgres stays pgautoupgrade 18-debian: the same-shape 19-debian image is a
DB major and is held (app support / migration window not declared).
Recommended release: `abra recipe release lasuite-docs -y` Recommended release: `abra recipe release lasuite-docs -z`