Skip to content

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:

  1. Deployment Guide - Set up infrastructure and deploy the service
  2. 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 production

Configuration

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:

  1. User authenticates via Switchboard, Teams receives user JWT
  2. Teams validates Switchboard token locally using JWKS
  3. Teams obtains service account token from Keycloak (client credentials)
  4. Teams exchanges service account token for user token via impersonation
  5. 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/config endpoint
  • User context for debugging

Architecture

For understanding the technical architecture before deploying:

Support and Troubleshooting

Common Issues

Deployment Failures:

Configuration Issues:

Getting Help

  1. Check the logs - Enable debug level temporarily
  2. Review error tracking - Check Sentry/GitLab for error patterns
  3. 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-namespace

Health Checks

# Check liveness
curl http://teams:9090/live

# Check readiness
curl http://teams:9090/ready

View Logs

kubectl logs -l app.kubernetes.io/name=teams -n production -f

Common 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