🔥(project) remove occurences of COLLABORATION_SERVER_SECRET

COLLABORATION_SERVER_SECRET is no longer used in the codebase,
so we can remove it from the codebase.
This commit is contained in:
Anthony LC
2026-09-01 15:18:44 +02:00
parent 650b30ca89
commit 1b1e2a8a20
7 changed files with 2 additions and 17 deletions
+1 -11
View File
@@ -1,23 +1,13 @@
import { readFileSync } from 'fs';
export const COLLABORATION_BACKEND_BASE_URL =
process.env.COLLABORATION_BACKEND_BASE_URL || 'http://app-dev:8000';
export const COLLABORATION_LOGGING =
process.env.COLLABORATION_LOGGING || 'false';
export const COLLABORATION_SERVER_ORIGIN =
process.env.COLLABORATION_SERVER_ORIGIN || 'http://localhost:3000';
// TODO(yhub): unused since the yhub migration, mirrors the Django setting of
// the same name (see impress/settings.py). Kept until CollaborationService is
// reinstated.
export const COLLABORATION_SERVER_SECRET = process.env
.COLLABORATION_SERVER_SECRET_FILE
? readFileSync(process.env.COLLABORATION_SERVER_SECRET_FILE, 'utf-8')
: process.env.COLLABORATION_SERVER_SECRET || 'secret-api-key';
export const CONVERSION_FILE_MAX_SIZE = process.env.CONVERSION_FILE_MAX_SIZE
? Number(process.env.CONVERSION_FILE_MAX_SIZE)
: 20971520; // 20 MB default
// JWKS of the Django backend, used to verify the JWT it signs when calling us.
export const JWKS_URL =
process.env.JWKS_URL || `${COLLABORATION_BACKEND_BASE_URL}/api/v1.0/jwks`;
export const JWKS_URL = `${COLLABORATION_BACKEND_BASE_URL}/api/v1.0/jwks`;
export const PORT = Number(process.env.PORT || 4444);
export const SENTRY_DSN = process.env.SENTRY_DSN || '';
@@ -175,7 +175,6 @@ yProvider:
COLLABORATION_BACKEND_BASE_URL: https://docs.127.0.0.1.nip.io
COLLABORATION_LOGGING: true
COLLABORATION_SERVER_ORIGIN: https://docs.127.0.0.1.nip.io
COLLABORATION_SERVER_SECRET: my-secret
NODE_EXTRA_CA_CERTS: /cert/cacert.pem
# Extra volume mounts to manage our local custom CA and avoid to set ssl_verify: false
@@ -153,7 +153,6 @@ yProvider:
COLLABORATION_BACKEND_BASE_URL: https://{{ .Values.feature }}-docs.{{ .Values.domain }}
COLLABORATION_LOGGING: true
COLLABORATION_SERVER_ORIGIN: https://{{ .Values.feature }}-docs.{{ .Values.domain }}
COLLABORATION_SERVER_SECRET: my-secret
NODE_OPTIONS: "--max-old-space-size=1024"
docSpec: