Operations Documentation
Welcome to the Operations documentation for App Suite for Teams.
Overview
This section provides comprehensive operational guides for deploying, configuring, and maintaining App Suite for Teams in production environments.
App Suite for Teams is a containerized microservice that integrates with existing App Suite infrastructure. It consists of a Fastify backend with WebSocket support, a Vue 3 frontend, and PostgreSQL for state persistence.
Getting Started
For new deployments, follow this order:
- Deployment Guide - Set up infrastructure and deploy the service
- Configuration Reference - Configure environment variables and settings
Deployment
Deployment Guide
Complete guide for deploying Teams in production environments.
Topics Covered:
- Prerequisites (PostgreSQL, authentication, Kubernetes)
- Authentication setup (Keycloak vs Switchboard)
- Database setup (Postgres Operator, external PostgreSQL)
- Helm chart deployment and upgrades
- Network routing (Istio VirtualService examples)
- Health checks and graceful shutdown
- Troubleshooting deployment issues
Quick Start:
# Install with Helm (OCI registry)
helm install teams \
oci://registry.open-xchange.com/appsuite-core-internal/charts/teams \
-f teams-values.yaml \
--namespace production
# Verify deployment
kubectl get pods -l app.kubernetes.io/name=teams -n production
kubectl logs -l app.kubernetes.io/name=teams -n productionConfiguration
Configuration Reference
Complete reference for all configuration options, environment variables, and Helm chart values.
Topics Covered:
- Environment variables (service, database, authentication)
- Helm chart configuration
- Configuration examples (production, staging, development)
- Security best practices
- Configuration validation
- Troubleshooting configuration issues
Key Configuration Areas:
- Service settings (ports, logging, CORS)
- Database connection (PostgreSQL, SSL)
- Authentication (Keycloak token exchange or Switchboard legacy)
- Error tracking (Sentry integration)
- Performance tuning (resources, scaling)
Authentication
Teams supports several authentication modes. For same-domain deployments, prefer Session Forwarding — it is by far the simplest. Otherwise use Keycloak token exchange, the OIDC popup flow, or Switchboard.
Session Forwarding
The simplest mode (AUTH_MODE=session): when Teams is served under the same domain as App Suite, it forwards the user's existing App Suite session to the Middleware. No Keycloak, JWT, or token exchange — only APP_SUITE_API is required. See ADR-0022.
Keycloak Token Exchange
Detailed guide for setting up authentication using Keycloak token exchange with impersonation (RFC 8693).
Topics Covered:
- Keycloak configuration and setup
- Token exchange flow with impersonation
- Integration with App Suite Middleware
- Switchboard integration
- User identity mapping (static provisioning and dynamic creation)
- Security considerations
- Troubleshooting authentication issues
Authentication Flow:
- User authenticates via Switchboard, Teams receives user JWT
- Teams validates Switchboard token locally using JWKS
- Teams obtains service account token from Keycloak (client credentials)
- Teams exchanges service account token for user token via impersonation
- Teams uses Keycloak-issued token with App Suite Middleware
Alternative: Teams also supports Switchboard legacy mode for environments without Keycloak.
Error Tracking
Sentry Deployment
Guide for configuring Sentry-compatible error tracking (Sentry SaaS, self-hosted Sentry, or GitLab Error Tracking).
Topics Covered:
- GitLab integrated error tracking setup
- Sentry SaaS configuration
- Self-hosted Sentry deployment
- Configuration reference
- Sample rate recommendations
- Verification and troubleshooting
Features:
- Backend error tracking (5xx errors only)
- Frontend error tracking (all unhandled exceptions)
- Runtime configuration via authenticated
/api/configendpoint - User context for debugging
Architecture
For understanding the technical architecture before deploying:
- ADR-0006: Database Layer - PostgreSQL and Drizzle ORM
- ADR-0007: Yjs for Real-time State - Collaborative editing with CRDTs
- ADR-0008: Custom WebSocket Implementation - WebSocket architecture
- ADR-0011: Token Exchange - Authentication architecture
Support and Troubleshooting
Common Issues
Deployment Failures:
- Database connection errors → See Deployment Guide - Troubleshooting
- Authentication failures → See Keycloak Token Exchange - Troubleshooting
Configuration Issues:
- Invalid environment variables → See Configuration Reference - Troubleshooting
- CORS errors → See Configuration Reference - CORS
Getting Help
- Check the logs - Enable
debuglevel temporarily - Review error tracking - Check Sentry/GitLab for error patterns
- Verify configuration - Use validation steps in configuration guide
Quick Reference
Helm Installation
# Install from OCI registry (Helm 3.8.0+ required)
helm install teams \
oci://registry.open-xchange.com/appsuite-core-internal/charts/teams \
-f teams-values.yaml \
--namespace production \
--create-namespaceHealth Checks
# Check liveness
curl http://teams:9090/live
# Check readiness
curl http://teams:9090/readyView Logs
kubectl logs -l app.kubernetes.io/name=teams -n production -fCommon Commands
# Upgrade deployment
helm upgrade teams \
oci://registry.open-xchange.com/appsuite-core-internal/charts/teams \
-f teams-values.yaml
# Rollback deployment
helm rollback teams
# Scale deployment
kubectl scale deployment/teams --replicas=5
# Check pod status
kubectl get pods -l app.kubernetes.io/name=teams
