Skip to content

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:

  1. Environment Variables - Direct configuration for containerized deployments
  2. Helm Chart Values - Higher-level abstraction that generates environment variables
  3. Default Values - Sensible defaults defined in .env.defaults

Environment Variables

Service Configuration

VariableDescriptionDefaultRequired
BIND_ADDRIP address to bind. Use :: for IPv6 or 0.0.0.0 for IPv4::No
PORTHTTP server port8080No
METRICS_PORTHealth check and metrics port9090No
LOG_LEVELLogging verbosity (trace, debug, info, warn, error, fatal)infoNo
APP_ROOTApplication root path/No
ORIGINSAllowed CORS origins (comma-separated or *)*No
EXPOSE_API_DOCSExpose Swagger UI at /api-docsfalseNo

Database Configuration

VariableDescriptionDefaultRequired
DATABASE_HOSTPostgreSQL hostname-Yes
DATABASE_PORTPostgreSQL port5432No
DATABASE_NAMEDatabase name-Yes
DATABASE_USERDatabase username-Yes
DATABASE_PASSWORDDatabase password (not needed when using client certificates)-No
DATABASE_SSLSSL mode: secure (verify CA), insecure (self-signed), false (disabled)secureNo
DATABASE_SSL_CA_PATHPath to CA certificate file (PEM) for server verification-No
DATABASE_SSL_CERT_PATHPath to client certificate file (PEM) for client authentication-No
DATABASE_SSL_KEY_PATHPath 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.

VariableDescriptionDefaultRequired
THREAD_EVENTS_LISTENERon holds the LISTEN connection; off keeps events local to the replica (no cross-replica delivery).onNo
THREAD_EVENTS_DATABASE_HOSTDirect PostgreSQL host for the LISTEN connection. Set when DATABASE_HOST points at a transaction-mode pooler.DATABASE_HOSTNo
THREAD_EVENTS_DATABASE_PORT / _NAME / _USER / _PASSWORDFurther overrides for the LISTEN connection; each falls back to its DATABASE_* counterpart.DATABASE_*No
THREAD_EVENTS_SELFTEST_TIMEOUT_MSHow long the self-test waits for its own NOTIFY to arrive.5000No
THREAD_EVENTS_SELFTEST_INTERVAL_MSPause between self-tests while the LISTEN connection is up. A timeout on a connection that passed before ends it and reconnects with backoff.60000No
SSE_HEARTBEAT_MSHeartbeat interval on event streams. Must stay below every idle timeout on the request path (Fastify: 30 s).15000No
SSE_MAX_BUFFERED_BYTESUnsent bytes an event stream may buffer before it counts as stalled and is closed. The client re-fetches on reconnect.65536No
SSE_MAX_CONNECTIONS_PER_USEROpen event streams per user and replica; the oldest is closed when exceeded.5No

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.

VariableDescriptionDefaultRequired
AUTH_MODEsession (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.

VariableDescriptionDefaultRequired
APP_SUITE_APIApp 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

VariableDescriptionDefaultRequired
ISSUER_ALLOWLISTComma-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.com matches core-ui.example.com, appsuite.example.com, etc.
  • Multiple domains: ISSUER_ALLOWLIST=*.example.com,appsuite.other.com/ui
VariableDescriptionDefaultRequired
TOKEN_EXCHANGE_ISSUER_URLKeycloak realm URL (e.g., https://keycloak.example.com/realms/ox)-Yes (for Keycloak mode)
TOKEN_EXCHANGE_CLIENT_IDKeycloak client ID-Yes (for Keycloak mode)
TOKEN_EXCHANGE_CLIENT_SECRETKeycloak client secret-Yes (for Keycloak mode)
SWITCHBOARD_API_PATHSwitchboard API path (legacy mode only)/apiNo

Mode Detection: When TOKEN_EXCHANGE_ISSUER_URL is set, Teams uses Keycloak token exchange. Otherwise, it falls back to Switchboard legacy mode.

Switchboard Legacy

VariableDescriptionDefaultRequired
SERVICE_TOKENSwitchboard-signed service token-Yes (for Switchboard mode)
ISSUER_ALLOWLISTComma-separated list of allowed JWT issuers-Yes
SWITCHBOARD_API_PATHSwitchboard API path/apiNo

Mode Detection: When TOKEN_EXCHANGE_ISSUER_URL is NOT set, Teams uses Switchboard legacy mode.

App Suite Integration

VariableDescriptionDefaultRequired
APP_SUITE_APP_IDApp Suite application ID for token login. Must match an entry in MW's com.openexchange.tokenlogin.applicationssecretYes
SERVERApp Suite Middleware base URL (development only)-No
FRONTEND_URISFrontend URIs (development only)-No

Feature Configuration

VariableDescriptionDefaultRequired
FEEDBACK_INBOX_IDInbox 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_USERSDeprecated. 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.2No

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.

VariableDescriptionDefaultRequired
EXTERNAL_SUBMISSION_INBOX_IDSComma-separated inbox IDs that accept external submissions. Unset = feature dormant (all submissions rejected).-No
EXTERNAL_SUBMISSION_CLIENTSComma-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_MAXMax submissions per principal (IP fallback) per window.2No
EXTERNAL_SUBMISSION_RATE_WINDOWRate-limit window.1 minuteNo
EXTERNAL_SUBMISSION_BODY_LIMITMax request body size in bytes.262144No

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)

VariableDescriptionDefaultRequired
SENTRY_DSNBackend Sentry DSN-No
SENTRY_DSN_FRONTENDFrontend Sentry DSN (defaults to SENTRY_DSN if not set)-No
SENTRY_ENVIRONMENTEnvironment tag (e.g., production, staging)productionNo
SENTRY_RELEASERelease version identifier-No
SENTRY_SAMPLE_RATEError sample rate (0.0-1.0). 1.0 = capture all errors1.0No
SENTRY_DEBUGEnable verbose Sentry loggingfalseNo

See Sentry Deployment Guide for configuration details.

Development Configuration

These variables are used for local development only and should NOT be set in production.

VariableDescriptionDefaultRequired
NODE_ENVNode environment (development, production, test)productionNo
ENABLE_SECURE_PROXYEnable SSL verification for proxied requeststrueNo
ENABLE_SECURE_FRONTENDSEnable SSL verification for frontend requeststrueNo
HOST_KEYPath to SSL private key (development only)ssl/host.keyNo
HOST_CRTPath to SSL certificate (development only)ssl/host.crtNo

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.0

Example 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.0

Example 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 troubleshooting

Example 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=teams

Example 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.key

Helm 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: 70

Development/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: 512Mi

Production 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.key

Creating 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.key

Configuration Best Practices

Security

  1. 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-dsn
  2. Use secret management systems:

    • Kubernetes Secrets
    • Sealed Secrets
    • External Secrets Operator (Vault, AWS Secrets Manager)
    • SOPS (encrypted secrets in Git)
  3. Restrict CORS origins:

    # Production - specific origins only
    origins: "https://appsuite.example.com,https://teams.example.com"
    
    # Development - wildcard acceptable
    origins: "*"
  4. Enable SSL for database:

    database:
      ssl: secure  # Production
      ssl: insecure  # Self-signed certificates
      ssl: false  # Development only
  5. Use client certificate authentication (mTLS) for enhanced security:

    database:
      ssl: secure
      sslSecret:
        name: teams-db-tls  # Secret with ca.crt, tls.crt, tls.key

Logging

  1. Production log levels:

    # Production
    logLevel: info
    logJson: true  # For log aggregation
    
    # Staging
    logLevel: debug
    
    # Development
    logLevel: debug
    logJson: false  # Pretty-printed logs
  2. Avoid trace in production:

    • trace logs request/response bodies
    • High performance impact
    • Potential security risk (sensitive data exposure)

Performance

  1. Set appropriate resource limits:

    resources:
      requests:
        cpu: 250m
        memory: 512Mi
      limits:
        cpu: 1000m
        memory: 1Gi
  2. Configure autoscaling:

    autoscaling:
      enabled: true
      minReplicas: 3
      maxReplicas: 10
      targetCPUUtilizationPercentage: 70

High Availability

  1. Multiple replicas:

    replicaCount: 3  # Minimum for HA
  2. Pod anti-affinity:

    affinity:
      podAntiAffinity:
        preferredDuringSchedulingIgnoredDuringExecution:
          - weight: 100
            podAffinityTerm:
              labelSelector:
                matchExpressions:
                  - key: app.kubernetes.io/name
                    operator: In
                    values:
                      - teams
              topologyKey: kubernetes.io/hostname
  3. Pod 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-configuration

Environment-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: 3

Staging

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: 512Mi

Development

logLevel: debug
logJson: false
origins: "*"
exposeApiDocs: true

database:
  ssl: false

sentry:
  enabled: false

resources:
  requests:
    cpu: 100m
    memory: 256Mi

Troubleshooting Configuration Issues

Error: "Database connection failed"

Cause: Database credentials or connection settings incorrect.

Solution:

  1. Verify credentials in secret:
    kubectl get secret teams-db-credentials -o yaml
  2. Test database connectivity from cluster
  3. Check DATABASE_SSL setting matches database configuration

Error: "JWKS endpoint not found"

Cause: ISSUER_ALLOWLIST incorrect or JWKS endpoint not accessible.

Solution:

  1. Verify issuer allowlist is correct
  2. Test endpoint accessibility:
    curl https://<ISSUER_ALLOWLIST>/.well-known/jwks.json
  3. Check DNS resolution from cluster

Error: "Token exchange failed"

Cause: Keycloak configuration incorrect or incomplete.

Solution:

  1. Verify TOKEN_EXCHANGE_ISSUER_URL, TOKEN_EXCHANGE_CLIENT_ID, and TOKEN_EXCHANGE_CLIENT_SECRET
  2. Check Keycloak client configuration
  3. See Keycloak Token Exchange - Troubleshooting

Error: "CORS policy blocked"

Cause: Origin not in ORIGINS whitelist.

Solution:

  1. Add origin to ORIGINS:
    origins: "https://appsuite.example.com,https://teams.example.com"
  2. Use * for development only (not production)