Configuration Reference
Complete reference for configuring App Suite for Teams through environment variables and Helm chart values.
Configuration Overview
Teams configuration follows a layered approach:
- Environment Variables - Direct configuration for containerized deployments
- Helm Chart Values - Higher-level abstraction that generates environment variables
- Default Values - Sensible defaults defined in
.env.defaults
Environment Variables
Service Configuration
| Variable | Description | Default | Required |
|---|---|---|---|
BIND_ADDR | IP address to bind. Use :: for IPv6 or 0.0.0.0 for IPv4 | :: | No |
PORT | HTTP server port | 8080 | No |
METRICS_PORT | Health check and metrics port | 9090 | No |
LOG_LEVEL | Logging verbosity (trace, debug, info, warn, error, fatal) | info | No |
APP_ROOT | Application root path | / | No |
ORIGINS | Allowed CORS origins (comma-separated or *) | * | No |
EXPOSE_API_DOCS | Expose Swagger UI at /api-docs | false | No |
Database Configuration
| Variable | Description | Default | Required |
|---|---|---|---|
DATABASE_HOST | PostgreSQL hostname | - | Yes |
DATABASE_PORT | PostgreSQL port | 5432 | No |
DATABASE_NAME | Database name | - | Yes |
DATABASE_USER | Database username | - | Yes |
DATABASE_PASSWORD | Database password (not needed when using client certificates) | - | No |
DATABASE_SSL | SSL mode: secure (verify CA), insecure (self-signed), false (disabled) | secure | No |
DATABASE_SSL_CA_PATH | Path to CA certificate file (PEM) for server verification | - | No |
DATABASE_SSL_CERT_PATH | Path to client certificate file (PEM) for client authentication | - | No |
DATABASE_SSL_KEY_PATH | Path to client private key file (PEM) for client authentication | - | No |
Client Certificate Authentication (mTLS): When DATABASE_SSL_CERT_PATH and DATABASE_SSL_KEY_PATH are provided, the client authenticates to PostgreSQL via mutual TLS. The certificate's Common Name must match the PostgreSQL role. No password is needed in this mode. See the Deployment Guide for setup instructions.
Real-time Events
Thread changes are published via PostgreSQL NOTIFY inside the write transaction, received by one dedicated LISTEN connection per replica and pushed to browsers over Server-Sent Events (GET /api/events). See ADR-0023.
| Variable | Description | Default | Required |
|---|---|---|---|
THREAD_EVENTS_LISTENER | on holds the LISTEN connection; off keeps events local to the replica (no cross-replica delivery). | on | No |
THREAD_EVENTS_DATABASE_HOST | Direct PostgreSQL host for the LISTEN connection. Set when DATABASE_HOST points at a transaction-mode pooler. | DATABASE_HOST | No |
THREAD_EVENTS_DATABASE_PORT / _NAME / _USER / _PASSWORD | Further overrides for the LISTEN connection; each falls back to its DATABASE_* counterpart. | DATABASE_* | No |
THREAD_EVENTS_SELFTEST_TIMEOUT_MS | How long the self-test waits for its own NOTIFY to arrive. | 5000 | No |
THREAD_EVENTS_SELFTEST_INTERVAL_MS | Pause between self-tests while the LISTEN connection is up. A timeout on a connection that passed before ends it and reconnects with backoff. | 60000 | No |
SSE_HEARTBEAT_MS | Heartbeat interval on event streams. Must stay below every idle timeout on the request path (Fastify: 30 s). | 15000 | No |
SSE_MAX_BUFFERED_BYTES | Unsent bytes an event stream may buffer before it counts as stalled and is closed. The client re-fetches on reconnect. | 65536 | No |
SSE_MAX_CONNECTIONS_PER_USER | Open event streams per user and replica; the oldest is closed when exceeded. | 5 | No |
No transaction-mode pooler on the LISTEN path. LISTEN is session state. Behind PgBouncer in transaction mode the subscription lands on an arbitrary backend and notifications are silently dropped. Serve the Teams database in pool_mode = session, or point THREAD_EVENTS_DATABASE_HOST at a direct endpoint. At startup each replica sends a NOTIFY through its regular pool and checks that it arrives on the LISTEN connection; a failure is logged at error level and exposed as thread_events_listener_healthy = 0. Real-time updates are degraded until fixed, but clients still re-fetch on reconnect and focus.
Silently dropped connections. A NAT gateway or load balancer can drop the idle LISTEN connection without closing it. The listener enables TCP keepalive after 30 s of idle time and repeats the self-test every THREAD_EVENTS_SELFTEST_INTERVAL_MS; when a connection that passed the test before times out, the replica reconnects with exponential backoff (up to 30 s). A connection that has never passed, such as one behind a transaction-mode pooler, is kept and retested at the same interval: the pooler hint is logged once, then each further failure is a warning.
Connection budget. Each replica uses its pool (up to 10 connections) plus one LISTEN connection. Size PostgreSQL max_connections accordingly.
Authentication Configuration
Teams supports several authentication modes, selected with AUTH_MODE (or auto-detected when unset). The simplest is session forwarding for same-domain deployments. Configure one of the following.
| Variable | Description | Default | Required |
|---|---|---|---|
AUTH_MODE | session (forward the host App Suite session), popup (OIDC Authorization Code Flow). Unset = auto: token exchange when TOKEN_EXCHANGE_ISSUER_URL is set, otherwise Switchboard. | - | No |
Session Forwarding (simplest)
When Teams is served under the same domain as the App Suite host, set AUTH_MODE=session. Teams reuses the user's existing App Suite session — passed by the frontend as ?session= and via the same-domain open-xchange-session* cookie — and forwards it to the Middleware. No Keycloak, no JWT validation, and no token exchange are involved; only APP_SUITE_API is required.
| Variable | Description | Default | Required |
|---|---|---|---|
APP_SUITE_API | App Suite Middleware API URL (the only auth-related requirement in this mode) | - | Yes |
In this mode ISSUER_ALLOWLIST, TOKEN_EXCHANGE_* and SERVICE_TOKEN are all unused. The external submission endpoint (ADR-0021), which relies on JWT validation, is not available in session mode.
User JWT Validation
| Variable | Description | Default | Required |
|---|---|---|---|
ISSUER_ALLOWLIST | Comma-separated list of allowed JWT issuers (supports wildcards). Mapped to OIDC_ISSUER internally for fastify-sdk compatibility. | - | Yes |
ISSUER_ALLOWLIST: This supports multiple domains and subdomain wildcards for validating user JWTs:
- Exact match:
appsuite.example.com/ui - Subdomain wildcard:
*.example.commatchescore-ui.example.com,appsuite.example.com, etc. - Multiple domains:
ISSUER_ALLOWLIST=*.example.com,appsuite.other.com/ui
Keycloak Token Exchange (Recommended)
| Variable | Description | Default | Required |
|---|---|---|---|
TOKEN_EXCHANGE_ISSUER_URL | Keycloak realm URL (e.g., https://keycloak.example.com/realms/ox) | - | Yes (for Keycloak mode) |
TOKEN_EXCHANGE_CLIENT_ID | Keycloak client ID | - | Yes (for Keycloak mode) |
TOKEN_EXCHANGE_CLIENT_SECRET | Keycloak client secret | - | Yes (for Keycloak mode) |
SWITCHBOARD_API_PATH | Switchboard API path (legacy mode only) | /api | No |
Mode Detection: When TOKEN_EXCHANGE_ISSUER_URL is set, Teams uses Keycloak token exchange. Otherwise, it falls back to Switchboard legacy mode.
Switchboard Legacy
| Variable | Description | Default | Required |
|---|---|---|---|
SERVICE_TOKEN | Switchboard-signed service token | - | Yes (for Switchboard mode) |
ISSUER_ALLOWLIST | Comma-separated list of allowed JWT issuers | - | Yes |
SWITCHBOARD_API_PATH | Switchboard API path | /api | No |
Mode Detection: When TOKEN_EXCHANGE_ISSUER_URL is NOT set, Teams uses Switchboard legacy mode.
App Suite Integration
| Variable | Description | Default | Required |
|---|---|---|---|
APP_SUITE_APP_ID | App Suite application ID for token login. Must match an entry in MW's com.openexchange.tokenlogin.applications | secret | Yes |
SERVER | App Suite Middleware base URL (development only) | - | No |
FRONTEND_URIS | Frontend URIs (development only) | - | No |
Feature Configuration
| Variable | Description | Default | Required |
|---|---|---|---|
FEEDBACK_INBOX_ID | Inbox ID (shared account address or public folder path) that receives user feedback threads. When set, a "Feedback" button appears in the sidebar and any authenticated user can submit feedback regardless of inbox membership. Leave empty to disable the feature. | - | No |
SHARED_INBOX_MIN_USERS | Deprecated. Number of distinct users that must have opened Teams with a secondary mail account before it counts as a shared inbox. Only applies to the deprecated secondary-account setup; shared accounts provisioned in App Suite are always shown to their grantees. Set to 1 only for development. | 2 | No |
Shared account discovery: When the App Suite middleware has shared accounts enabled (capability shared_accounts), Teams queries the user's shared accounts on every account sync and needs no further configuration. Without the capability the middleware answers with an error, Teams logs it at debug level and falls back to the secondary-account heuristic above. See Setting Up a Shared Inbox and ADR-0027.
How it works: In-app feedback is submitted through the external submission endpoint (POST /api/threads/:inboxId/submissions); the inbox named here is automatically added to that endpoint's allowlist, so it does not need to be listed in EXTERNAL_SUBMISSION_INBOX_IDS as well. A logged-in Teams user still gets full claim validation and keeps their OX identity on the submission. All other inboxes continue to enforce membership. Choose a dedicated triage inbox — not a regular shared inbox — as the target.
Environment targeting: Keep this unset in production by default so that the prod configuration does not inherit a non-prod target. Wire it per-environment via Helm (see Feedback Submission).
Finding the inbox ID: Open Teams as a user who can see the target inbox in the sidebar, open the inbox's context menu (hamburger / Shift+F10) and pick Properties. The dialog shows the inbox type and the internal ID — copy that value into FEEDBACK_INBOX_ID. Shared accounts use their primary address (e.g. support-demo@box.ox.io); public folders use their folder path (e.g. default0/Public/Feedback).
External Submission
Lets external pages (feedback widgets, contact forms) create threads in designated inboxes via POST /api/threads/:inboxId/submissions. See ADR-0021 and the External Submission feature spec.
| Variable | Description | Default | Required |
|---|---|---|---|
EXTERNAL_SUBMISSION_INBOX_IDS | Comma-separated inbox IDs that accept external submissions. Unset = feature dormant (all submissions rejected). | - | No |
EXTERNAL_SUBMISSION_CLIENTS | Comma-separated allowlist of accepted token azp/aud (client IDs). Unset = any valid trusted-issuer token is accepted. If set while in-app feedback is enabled, include the Teams app's own client ID so feedback is not rejected. | - | No |
EXTERNAL_SUBMISSION_RATE_MAX | Max submissions per principal (IP fallback) per window. | 2 | No |
EXTERNAL_SUBMISSION_RATE_WINDOW | Rate-limit window. | 1 minute | No |
EXTERNAL_SUBMISSION_BODY_LIMIT | Max request body size in bytes. | 262144 | No |
Authentication: Submissions require a valid JWT from a trusted issuer (user or application account) — the user scope is not required. To accept tokens from an external issuer (e.g. a separate Keycloak realm), add it to ISSUER_ALLOWLIST. This widens token trust globally, but all other routes remain gated by their own scope and membership checks. CORS is not the security boundary; still, set ORIGINS to a real allowlist (not *) when enabling this feature.
Relation to FEEDBACK_INBOX_ID: In-app feedback is folded into this endpoint. FEEDBACK_INBOX_ID designates the in-app feedback inbox (button visibility + display name) and seeds it into this endpoint's allowlist automatically; the request flows through POST /api/threads/:inboxId/submissions like any other submission. The difference is attribution: a logged-in Teams user keeps their full OX identity, while other origins submit as external principals.
Error Tracking (Sentry)
| Variable | Description | Default | Required |
|---|---|---|---|
SENTRY_DSN | Backend Sentry DSN | - | No |
SENTRY_DSN_FRONTEND | Frontend Sentry DSN (defaults to SENTRY_DSN if not set) | - | No |
SENTRY_ENVIRONMENT | Environment tag (e.g., production, staging) | production | No |
SENTRY_RELEASE | Release version identifier | - | No |
SENTRY_SAMPLE_RATE | Error sample rate (0.0-1.0). 1.0 = capture all errors | 1.0 | No |
SENTRY_DEBUG | Enable verbose Sentry logging | false | No |
See Sentry Deployment Guide for configuration details.
Development Configuration
These variables are used for local development only and should NOT be set in production.
| Variable | Description | Default | Required |
|---|---|---|---|
NODE_ENV | Node environment (development, production, test) | production | No |
ENABLE_SECURE_PROXY | Enable SSL verification for proxied requests | true | No |
ENABLE_SECURE_FRONTENDS | Enable SSL verification for frontend requests | true | No |
HOST_KEY | Path to SSL private key (development only) | ssl/host.key | No |
HOST_CRT | Path to SSL certificate (development only) | ssl/host.crt | No |
Configuration Examples
Example 1: Production with Keycloak
# Service
BIND_ADDR=::
PORT=8080
METRICS_PORT=9090
LOG_LEVEL=info
ORIGINS=https://appsuite.example.com
# Database
DATABASE_HOST=postgres.example.com
DATABASE_PORT=5432
DATABASE_NAME=teams
DATABASE_USER=teams
DATABASE_PASSWORD=<secure-password>
DATABASE_SSL=secure
# User JWT Validation
ISSUER_ALLOWLIST=switchboard.example.com
# Authentication (Keycloak Token Exchange)
TOKEN_EXCHANGE_ISSUER_URL=https://keycloak.example.com/realms/ox
TOKEN_EXCHANGE_CLIENT_ID=teams
TOKEN_EXCHANGE_CLIENT_SECRET=<client-secret>
# App Suite Integration
APP_SUITE_APP_ID=teams
# Error Tracking
SENTRY_DSN=https://<key>@sentry.io/<project>
SENTRY_ENVIRONMENT=production
SENTRY_SAMPLE_RATE=1.0Example 2: Production with Switchboard Legacy
# Service
BIND_ADDR=::
PORT=8080
METRICS_PORT=9090
LOG_LEVEL=info
ORIGINS=https://appsuite.example.com
# Database
DATABASE_HOST=postgres.example.com
DATABASE_PORT=5432
DATABASE_NAME=teams
DATABASE_USER=teams
DATABASE_PASSWORD=<secure-password>
DATABASE_SSL=secure
# User JWT Validation
ISSUER_ALLOWLIST=switchboard.example.com
# Authentication (Switchboard Legacy)
SERVICE_TOKEN=<switchboard-service-token>
SWITCHBOARD_API_PATH=/api
# App Suite Integration
APP_SUITE_APP_ID=teams
# Error Tracking
SENTRY_DSN=https://<key>@sentry.io/<project>
SENTRY_ENVIRONMENT=production
SENTRY_SAMPLE_RATE=1.0Example 3: Staging Environment
# Service
BIND_ADDR=::
PORT=8080
LOG_LEVEL=debug # More verbose logging for staging
ORIGINS=https://staging.appsuite.example.com
# Database
DATABASE_HOST=postgres-staging.example.com
DATABASE_PORT=5432
DATABASE_NAME=teams_staging
DATABASE_USER=teams
DATABASE_PASSWORD=<secure-password>
DATABASE_SSL=secure
# User JWT Validation
ISSUER_ALLOWLIST=switchboard-staging.example.com
# Authentication (Keycloak Token Exchange)
TOKEN_EXCHANGE_ISSUER_URL=https://keycloak-staging.example.com/realms/ox
TOKEN_EXCHANGE_CLIENT_ID=teams
TOKEN_EXCHANGE_CLIENT_SECRET=<client-secret>
# App Suite Integration
APP_SUITE_APP_ID=teams
# Error Tracking
SENTRY_DSN=https://<key>@sentry.io/<staging-project>
SENTRY_ENVIRONMENT=staging
SENTRY_DEBUG=true # Enable debug logging for troubleshootingExample 4: Local Development
# Service
NODE_ENV=development
BIND_ADDR=::
PORT=8080
LOG_LEVEL=debug
ORIGINS=*
EXPOSE_API_DOCS=true
# Database
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=teams
DATABASE_USER=teams
DATABASE_PASSWORD=secret
DATABASE_SSL=false # Disable SSL for local database
# User JWT Validation
ISSUER_ALLOWLIST=localhost
# Authentication (Keycloak Token Exchange - local)
TOKEN_EXCHANGE_ISSUER_URL=http://localhost:8081/realms/ox
TOKEN_EXCHANGE_CLIENT_ID=teams
TOKEN_EXCHANGE_CLIENT_SECRET=dev-secret
# Development
SERVER=https://appsuite-main.dev.oxui.de/
FRONTEND_URIS=https://teams-main.dev.oxui.de/
HOST_KEY=ssl/host.key
HOST_CRT=ssl/host.crt
# App Suite Integration
APP_SUITE_APP_ID=teamsExample 5: Production with Client Certificate Authentication (mTLS)
# Database with client certificate authentication
DATABASE_HOST=postgres.example.com
DATABASE_PORT=5432
DATABASE_NAME=teams
DATABASE_USER=teams
DATABASE_PASSWORD= # Optional when using client cert auth
DATABASE_SSL=secure
DATABASE_SSL_CA_PATH=/etc/ssl/db/ca.crt
DATABASE_SSL_CERT_PATH=/etc/ssl/db/client.crt
DATABASE_SSL_KEY_PATH=/etc/ssl/db/client.keyHelm Chart Configuration
Helm chart values provide a higher-level abstraction over environment variables.
Complete Values Reference
# Image configuration
image:
repository: registry.open-xchange.com/appsuite-core/teams
pullPolicy: IfNotPresent
tag: "" # Defaults to chart appVersion
# Service configuration
bindAddr: "::"
hostname: ""
origins: "*"
logLevel: "info"
logJson: false
exposeApiDocs: false
# Note: Network routing (Istio VirtualServices, etc.) is configured externally
# Authentication mode: "session" (forward host App Suite session; only appSuiteApi needed),
# "popup" (OIDC popup), or "" for auto (token-exchange when tokenExchange.enabled, else Switchboard)
authMode: ""
# User JWT Validation - Allowed issuers (Core UI)
oidc:
issuer: ""
# Token Exchange - Keycloak mode (for MW access)
tokenExchange:
enabled: false
issuerUrl: ""
clientId: ""
clientSecret: "" # Direct secret (not recommended)
existingSecret: "" # Use existing secret (recommended)
clientSecretKey: client-secret # Key in existing secret
# Authentication - Switchboard mode (mutually exclusive with tokenExchange)
serviceToken: ""
switchboardApiPath: "/api"
# Feedback feature (optional)
# Inbox ID that receives user feedback. When set, any authenticated user
# can submit feedback via the sidebar, regardless of inbox membership.
# Leave empty to disable the feature.
feedbackInboxId: ""
# External submission endpoint (optional) — see ADR-0021.
# Comma-separated inbox IDs that accept external submissions; empty disables.
externalSubmissionInboxIds: ""
# Optional accepted-client (azp/aud) allowlist; empty accepts any valid token.
externalSubmissionClients: ""
# Database configuration
database:
host: ""
port: "5432"
name: ""
# Direct credentials (not recommended for production)
auth:
user: ""
password: ""
# Existing secret (recommended - provides all database credentials)
existingSecret: "" # Secret containing host, database, username, password
existingSecretKeys: # Optional: customize key names in existing secret
host: host # Key for database host
database: database # Key for database name
username: username # Key for username
password: password # Key for password
ssl: secure # secure, insecure, or false
# TLS certificates for mTLS authentication (optional)
sslSecret:
name: "" # Secret containing TLS certificates
caKey: "ca.crt" # Key for CA certificate
certKey: "tls.crt" # Key for client certificate
keyKey: "tls.key" # Key for client private key
# Database migration (pre-install/pre-upgrade Helm hook)
migrate:
# When set, rendered into an annotation on the migrate Job so helm sees
# a manifest change whenever this value differs. Use a value that varies
# per deploy attempt (e.g. a unique identifier or timestamp) to force
# the hook to re-fire without a real chart/image/values change; leave
# empty otherwise.
triggerValue: ""
# Error tracking
sentry:
enabled: false
dsn: "" # Direct DSN value (not recommended for GitOps)
dsnFrontend: "" # Optional, defaults to dsn
existingSecret: "" # Use existing secret for DSN (recommended)
dsnKey: "sentry-dsn" # Key in existing secret for backend DSN
dsnFrontendKey: "" # Key for frontend DSN (falls back to dsnKey)
environment: "production"
release: "" # Defaults to chart appVersion
sampleRate: 1.0
debug: false
# Overrides (advanced)
overrides:
name: "teams"
fullname: "RELEASE-NAME-teams"Helm Values Examples
Production Deployment
image:
repository: registry.open-xchange.com/appsuite-core/teams
tag: "1.0.0"
pullPolicy: IfNotPresent
hostname: teams.example.com
origins: "https://appsuite.example.com"
logLevel: info
logJson: true
oidc:
issuer: switchboard.example.com
tokenExchange:
enabled: true
issuerUrl: https://keycloak.example.com/realms/ox
clientId: teams
clientSecret: <client-secret>
database:
host: postgres-cluster.database.svc.cluster.local
port: "5432"
name: teams-production
# Use existing secret for all credentials (recommended)
existingSecret: teams-db-credentials
ssl: secure
sentry:
enabled: true
# Option A: Direct DSN (not recommended for GitOps)
# dsn: https://<key>@sentry.io/<project>
# Option B: From existing secret (recommended)
existingSecret: teams-sentry-dsn
environment: production
sampleRate: 1.0
# Note: Network routing configured externally (e.g., Istio VirtualService)
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 1000m
memory: 1Gi
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 10
targetCPUUtilizationPercentage: 70Development/Testing Deployment
image:
repository: registry.open-xchange.com/appsuite-core/teams
tag: "dev-latest"
pullPolicy: Always
hostname: teams-dev.example.com
origins: "*"
logLevel: debug
exposeApiDocs: true
oidc:
issuer: switchboard-dev.example.com
tokenExchange:
enabled: true
issuerUrl: https://keycloak-dev.example.com/realms/ox
clientId: teams
clientSecret: dev-secret
database:
host: postgres-dev
port: "5432"
name: teams_dev
auth:
user: teams
password: dev-password
ssl: false
sentry:
enabled: true
dsn: https://<key>@sentry.io/<dev-project>
environment: development
debug: true
# Note: Network routing configured externally (e.g., Istio VirtualService)
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512MiProduction with Client Certificate Authentication (mTLS)
database:
host: postgres-cluster.database.svc.cluster.local
port: "5432"
name: teams-production
# Use existing secret for all credentials (recommended)
existingSecret: teams-db-credentials
ssl: secure
# Mount TLS certificates from a secret for mTLS authentication
sslSecret:
name: teams-db-tls
caKey: ca.crt
certKey: tls.crt
keyKey: tls.keyCreating the TLS Secret:
kubectl create secret generic teams-db-tls \
--from-file=ca.crt=/path/to/ca.crt \
--from-file=tls.crt=/path/to/client.crt \
--from-file=tls.key=/path/to/client.keyConfiguration Best Practices
Security
Never hardcode secrets:
# Bad - secrets in values file database: auth: password: "my-password" # Good - use existing secret (recommended) database: existingSecret: teams-db-credentials # Also good - use external secrets operator tokenExchange: existingSecret: keycloak-client-secret # Same for Sentry DSN sentry: existingSecret: teams-sentry-dsnUse secret management systems:
- Kubernetes Secrets
- Sealed Secrets
- External Secrets Operator (Vault, AWS Secrets Manager)
- SOPS (encrypted secrets in Git)
Restrict CORS origins:
# Production - specific origins only origins: "https://appsuite.example.com,https://teams.example.com" # Development - wildcard acceptable origins: "*"Enable SSL for database:
database: ssl: secure # Production ssl: insecure # Self-signed certificates ssl: false # Development onlyUse client certificate authentication (mTLS) for enhanced security:
database: ssl: secure sslSecret: name: teams-db-tls # Secret with ca.crt, tls.crt, tls.key
Logging
Production log levels:
# Production logLevel: info logJson: true # For log aggregation # Staging logLevel: debug # Development logLevel: debug logJson: false # Pretty-printed logsAvoid trace in production:
tracelogs request/response bodies- High performance impact
- Potential security risk (sensitive data exposure)
Performance
Set appropriate resource limits:
resources: requests: cpu: 250m memory: 512Mi limits: cpu: 1000m memory: 1GiConfigure autoscaling:
autoscaling: enabled: true minReplicas: 3 maxReplicas: 10 targetCPUUtilizationPercentage: 70
High Availability
Multiple replicas:
replicaCount: 3 # Minimum for HAPod anti-affinity:
affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchExpressions: - key: app.kubernetes.io/name operator: In values: - teams topologyKey: kubernetes.io/hostnamePod disruption budgets:
podDisruptionBudget: enabled: true minAvailable: 2
Configuration Validation
Pre-deployment Checklist
Before deploying, verify:
Required Configuration:
Security:
Observability:
Testing Configuration
Validate Helm Values:
# Dry-run to see generated resources
helm install teams \
oci://registry.open-xchange.com/appsuite-core-internal/charts/teams \
-f teams-values.yaml \
--dry-run \
--debug
# Template to see environment variables
helm template teams \
oci://registry.open-xchange.com/appsuite-core-internal/charts/teams \
-f teams-values.yaml | grep -A 20 "env:"Validate Database Connection:
# Test from within cluster
kubectl run -it --rm psql \
--image=postgres:16-alpine \
--restart=Never \
-- psql -h <DATABASE_HOST> -U <DATABASE_USER> -d <DATABASE_NAME>Validate Authentication:
# Test JWKS endpoint
curl -v https://<ISSUER_ALLOWLIST>/.well-known/jwks.json
# Test Keycloak (if using Keycloak mode)
curl -v <TOKEN_EXCHANGE_ISSUER_URL>/.well-known/openid-configurationEnvironment-Specific Configuration
Production
logLevel: info
logJson: true
origins: "https://appsuite.example.com"
exposeApiDocs: false
database:
ssl: secure
sentry:
enabled: true
environment: production
sampleRate: 1.0
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 1000m
memory: 1Gi
autoscaling:
enabled: true
minReplicas: 3Staging
logLevel: debug
logJson: true
origins: "*"
exposeApiDocs: true
database:
ssl: secure
sentry:
enabled: true
environment: staging
debug: true
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512MiDevelopment
logLevel: debug
logJson: false
origins: "*"
exposeApiDocs: true
database:
ssl: false
sentry:
enabled: false
resources:
requests:
cpu: 100m
memory: 256MiTroubleshooting Configuration Issues
Error: "Database connection failed"
Cause: Database credentials or connection settings incorrect.
Solution:
- Verify credentials in secret:
kubectl get secret teams-db-credentials -o yaml - Test database connectivity from cluster
- Check
DATABASE_SSLsetting matches database configuration
Error: "JWKS endpoint not found"
Cause: ISSUER_ALLOWLIST incorrect or JWKS endpoint not accessible.
Solution:
- Verify issuer allowlist is correct
- Test endpoint accessibility:
curl https://<ISSUER_ALLOWLIST>/.well-known/jwks.json - Check DNS resolution from cluster
Error: "Token exchange failed"
Cause: Keycloak configuration incorrect or incomplete.
Solution:
- Verify
TOKEN_EXCHANGE_ISSUER_URL,TOKEN_EXCHANGE_CLIENT_ID, andTOKEN_EXCHANGE_CLIENT_SECRET - Check Keycloak client configuration
- See Keycloak Token Exchange - Troubleshooting
Error: "CORS policy blocked"
Cause: Origin not in ORIGINS whitelist.
Solution:
- Add origin to
ORIGINS:origins: "https://appsuite.example.com,https://teams.example.com" - Use
*for development only (not production)
Related Documentation
- Deployment Guide - Deployment strategies and procedures
- Keycloak Token Exchange - Authentication setup
- Sentry Deployment - Error tracking configuration

