Deployment
3TL Bridge supports two deployment targets: Kubernetes via Helm for production, and Docker Compose for evaluation and smaller deployments.
Kubernetes (Helm)
The Helm chart is the production deployment path. It covers:
- Ingress — TLS termination and hostname routing
- ConfigMap — pipeline engine configuration
- Secret management — inline, existing Secret, or External Secrets Operator
- Prometheus ServiceMonitor — automatic metric scraping for Prometheus Operator
- NetworkPolicy — namespace isolation for multi-tenant deployments
- High availability — Valkey for pipeline engine HA (leader election and stream fan-out)
The registry
Charts and container images both come from a single Amazon ECR registry:
| Registry | 812987438529.dkr.ecr.eu-central-1.amazonaws.com |
| Region | eu-central-1 |
| Charts | <registry>/3t-helm/3t-bridge |
| Images | <registry>/3t-docker/{3t-bridge,bridge-engine} |
| Compose bundle | <registry>/3t-compose/3t-bridge |
Every shell command on this page refers to the registry as $REGISTRY. Your values.yaml does not need the host at all — the chart already points both global.imageRegistry and mstream.image.repository at it.
Configure the AWS access key and secret from your onboarding package however you normally would, for example aws configure --profile 3t. Configuring a named profile does not make it active, so export it as well — every command below assumes those credentials are in effect:
export AWS_PROFILE=3t
export REGISTRY=812987438529.dkr.ecr.eu-central-1.amazonaws.com
Installing the Chart
The chart is distributed as an OCI artifact from the registry above. Log Helm in:
aws ecr get-login-password --region eu-central-1 \
| helm registry login --username AWS --password-stdin "$REGISTRY"
AWS is a literal username, not a placeholder for your IAM user name — the identity is carried in the token, not the username. The token is valid for 12 hours; re-run the command above if a later helm pull returns 401 Unauthorized.
Pull and install the chart. Replace <version> with the latest version — plain semver like 1.1.3, no leading v — from the release notes. The ECR path has no /v<major> segment:
helm pull "oci://$REGISTRY/3t-helm/3t-bridge" --version <version>
helm install 3t-bridge 3t-bridge-<version>.tgz \
--namespace 3t-bridge \
--create-namespace \
--values values.yaml
To upgrade an existing release:
helm pull "oci://$REGISTRY/3t-helm/3t-bridge" --version <new-version>
helm upgrade 3t-bridge 3t-bridge-<new-version>.tgz \
--namespace 3t-bridge \
--values values.yaml
Required Secrets
The chart needs the following credentials for the pipeline engine and its supporting services.
| Secret key | Required | Description |
|---|---|---|
mstream-system-db-uri |
Yes | MongoDB connection string for the pipeline engine system database |
mstream-encryption-key |
Yes | Hex-encoded AES-256 key for encryption at rest — service credentials, AI conversation content, and dead-letter payloads. Generate with openssl rand -hex 32. The pipeline engine requires this key at startup and will not start without it. With KMS envelope encryption configured, new data is sealed under KMS-wrapped keys and this key keeps opening records written before KMS adoption — it remains required. |
bridge-license-id |
Yes | License ID issued with your subscription. Required whenever mstream.license.url is set — which it must be, as the pipeline engine does not start without a License Manager. |
aws-access-key |
No | AWS access key for Bedrock LLM provider |
aws-secret-key |
No | AWS secret key for Bedrock LLM provider |
valkey-password |
No | Valkey authentication password (only when valkey.password is set) |
Provide them in one of three ways — these are alternatives, not steps:
Inline values
Simplest, and suitable for evaluation. The chart creates the Secret from values you supply directly:
credentials:
mstreamSystemDbUri: "mongodb+srv://user:[email protected]/"
bridgeLicenseId: "your-license-id"
# Optional — only for the Bedrock LLM provider
awsAccessKey: "AKIA..."
awsSecretKey: "..."
mstream:
encryptionKey: "<openssl rand -hex 32>"
Values files holding real credentials must be protected accordingly — for production, prefer one of the other two options.
Existing Secret
Create the Secret yourself, then point the chart at it. The chart creates no Secret of its own:
# Generate and save the encryption key BEFORE creating the secret
ENCRYPTION_KEY=$(openssl rand -hex 32)
echo "$ENCRYPTION_KEY" # save this value — you will need it to recover
kubectl create secret generic bridge-credentials \
--namespace 3t-bridge \
--from-literal=mstream-system-db-uri='mongodb+srv://user:[email protected]/' \
--from-literal=mstream-encryption-key="$ENCRYPTION_KEY" \
--from-literal=bridge-license-id='your-license-id' \
--from-literal=aws-access-key='AKIA...' \
--from-literal=aws-secret-key='...'
credentials:
existingSecret: bridge-credentials
Create the Secret before helm install — the chart reads these keys at render time and the install fails if they are missing.
External Secrets Operator
The chart creates an ExternalSecret that syncs each key from your secret manager. Provider-agnostic — configure one of two modes:
externalSecrets:
enabled: true
secretPrefix: "bridge-yourcompany"
refreshInterval: 1h
# Mode A — reference a (Cluster)SecretStore you already run:
storeRef:
name: my-secret-store
kind: ClusterSecretStore # or SecretStore
# Mode B — instead, let the chart create a SecretStore from a provider spec
# (mutually exclusive with storeRef); pass the ESO provider block verbatim:
# provider:
# gcpsm:
# projectID: "my-gcp-project"
# auth: { workloadIdentity: { ... } }
Set either storeRef.name or provider, not both. Authentication to the secret manager is handled by the store/provider (e.g. Workload Identity / IRSA) — the chart takes no cloud API credentials.
By default each secret is resolved by name as <secretPrefix>—<secret-key> (e.g. bridge-yourcompany-mstream-system-db-uri). Some secret managers need a qualified lookup key or a non-standard version selector — set externalSecrets.keyRefPrefix to prepend a prefix (for example name: for Scaleway Secret Manager) and externalSecrets.keyRefVersion to override the remote version (default latest).
Save the encryption key
The encryption key protects all service credentials, AI conversation content, and dead-letter payloads at rest. If it is lost, that data cannot be decrypted — services must be re-created and conversation history is permanently unrecoverable. Back it up to a secrets manager or password vault immediately after generation.
Multi-Tenant Deployments
For environments serving multiple customers or teams, use namespace isolation: one Helm release per customer, all using the same Helm chart. Each release is independently configured via its own values.yaml.
Helm Chart Reference
| Value | Default | Description |
|---|---|---|
ingress.enabled |
true |
Enable ingress resource |
ingress.host |
— | Hostname for Bridge |
bridge.oidc.providers |
[] |
OIDC providers offered on the SPA login screen |
mstream.license.url |
— | License Manager URL (activates entitlement checks) |
credentials.existingSecret |
— | Name of an existing Kubernetes Secret |
externalSecrets.enabled |
false |
Sync secrets from an external secret manager via ESO |
valkey.enabled |
true |
Enable Valkey for pipeline engine HA coordination |
mstream.replicas |
1 |
Number of pipeline engine pods. Set > 1 for HA worker nodes (requires valkey.enabled: true and system.ha.enabled = true in the engine config) |
mstream.metrics.serviceMonitor.enabled |
false |
Create a Prometheus ServiceMonitor |
networkPolicy.enabled |
false |
Enable NetworkPolicy for namespace isolation |
The table above covers the most common values. The chart ships with a full values reference in its README.md. View it directly from the registry:
helm show readme "oci://$REGISTRY/3t-helm/3t-bridge" --version <version>
Or, if you have already pulled the chart locally:
tar xzf 3t-bridge-<version>.tgz
cat 3t-bridge/README.md
Pipeline Engine Configuration
The pipeline engine is configured via a TOML file (mstream-config.toml) that defines services, connectors (pipelines), system settings, and optional features like HA, audit logging, and the AI Agent.
In Kubernetes deployments, this file is embedded inline in the Helm values under mstream.config and mounted as a ConfigMap. In Docker Compose deployments, it is a standalone file mounted into the container.
GitOps-friendly configuration
The config is a plain text file that can be version-controlled alongside your infrastructure code. Use environment-specific files to manage differences between staging and production:
deploy/
├── values-staging.yaml # Helm values for staging
├── values-production.yaml # Helm values for production
├── mstream-config-staging.toml
└── mstream-config-production.toml
Credential References
Service credentials support the env:VAR_NAME syntax to resolve values from environment variables at startup rather than storing secrets in the config file:
[[services]]
provider = "mongodb"
name = "system-db"
connection_string = "env:MSTREAM_SYSTEM_DB_URI"
db_name = "mstream-system"
[[services]]
provider = "bedrock"
name = "llm-bedrock"
access_key = "env:AWS_ACCESS_KEY"
secret_key = "env:AWS_SECRET_KEY"
This keeps the TOML file free of secrets — credentials are injected via Kubernetes Secrets or .env files at runtime.
On a cloud cluster you can skip credentials for that cloud’s own services entirely: GCP services accept auth = { kind = "workload_identity" } and authenticate with the pod’s identity. See Security — Example: keyless GCP access on GKE.
Audit Log
To enable persistent audit logging, add a system.audit block pointing to a MongoDB service and collection:
[system.audit]
service_name = "system-db"
resource = "audit-log"
retention_days = 90 # optional — creates a TTL index on timestamp. Omit to keep forever.
Without this block, audit entries are emitted to the pipeline engine log output only. See Security — Audit Logging for the full list of audited actions and entry fields.
Lineage and Classification
Lineage is on by default and keeps its ledger in the system database; the processing report is generated from it. The settings below make it useful, and the chart and the Docker Compose bundle ship them:
[system.lineage]
namespace = "3t-bridge" # the namespace jobs are published under
# observe_interval_secs = 60 # how often a running pipeline records what its traffic carried
# Sample a source that registers no schema, so its fields are known from the
# start. Without this the report only lists fields once traffic has carried
# them, with nothing declared to compare against.
[system.lineage.introspect]
sample_size = 1000
# The rules that classify a field by its name. Seeded from the file shipped in
# the image on first start only; after that the store is the source of truth
# and a redeploy cannot overwrite rules somebody approved.
[system.data_inventory]
service_name = "system-db"
ruleset_resource = "inventory-rules"
ruleset_path = "rulesets/common-field-names.toml"
To forward events to a data catalogue as well, add [system.lineage.forward] with an HTTP or Kafka service and a resource. The ledger is written first either way; a catalogue that is down costs a log line, never a pipeline.
Configuration Reference
The full configuration reference with examples for every service provider (MongoDB, Kafka, Pub/Sub, HTTP, HTTP Source, UDF, Anthropic, Bedrock), connector patterns (CDC, batch, middleware chains), and system settings (HA, audit, checkpoints, lineage, classification, AI Agent) is included in the chart as mstream-config.toml.example. View it from the pulled chart:
tar xzf 3t-bridge-<version>.tgz
cat 3t-bridge/mstream-config.toml.example
Docker Compose
For evaluation and smaller deployments where Kubernetes overhead is not warranted. The stack runs three services — Bridge (nginx + React SPA), the pipeline engine, and Valkey, which the engine requires for HA coordination.
See the Quick Start for the full walkthrough: downloading the release, running the setup script, and starting the stack.
High Availability
| Component | HA mechanism |
|---|---|
| Bridge | Stateless nginx + React SPA — horizontally scalable without shared state |
| Pipeline engine | Source-aware work distribution (MongoDB CDC via Valkey leader election + stream fan-out; Kafka/Pub/Sub via native consumer groups); checkpoint persistence for resume after failover |
| Valkey | Redis-compatible store for leader election, stream fan-out, cluster commands, and backpressure coordination |
| Credentials | Encrypted at rest with AES-256 by the pipeline engine — survive restarts without re-entry |
For Kubernetes deployments, Valkey is enabled by default (valkey.enabled: true). The pipeline engine uses it for leader election and event distribution across workers.
Treat Valkey as part of the engine’s memory boundary
In HA mode, in-flight event data transits the Valkey stream fan-out. Run Valkey inside the same trust and network boundary as the engine — the chart’s NetworkPolicy already scopes it — and either disable its disk persistence or place its volume on encrypted storage, since persistence writes in-flight data and the shared log stream to that volume.
Running Multiple Worker Nodes
By default the chart deploys a single pipeline engine pod. To scale out pipeline processing, set mstream.replicas in your values file:
mstream:
replicas: 3
Each pod gets a unique worker ID (derived from its hostname). How work is distributed across workers depends on the source type:
- MongoDB CDC — one worker wins a Valkey leader lease and reads the change stream, then fans events out to the other workers through a Valkey Stream, so a single change stream is never consumed twice.
- Kafka and Pub/Sub — every worker consumes directly using the broker’s native consumer-group protocol; no leader election is involved.
- HTTP source — push-based, so every worker accepts requests independently.
Scaling requires HA mode enabled in the engine config:
[system.ha]
enabled = true
valkey_url = "redis://<release>-3t-bridge-valkey:6379"
Worker-level metrics are available via GET /jobs/{name}/workers and through the AI Agent’s get_worker_metrics tool.
Troubleshooting the registry
| Symptom | Cause | Fix |
|---|---|---|
401 Unauthorized from helm pull or helm install |
The Helm registry login has expired — the token lasts 12 hours | Re-run the helm registry login command above |
403 / AccessDenied from aws ecr get-login-password |
The IAM identity is missing ecr:GetAuthorizationToken |
Contact 3T support with the IAM user from your onboarding package |
helm registry login fails with an IAM user name as --username |
AWS is a literal, not a placeholder |
Use --username AWS; the identity is carried in the token, not the username |
not found from helm pull or helm install |
Either the chart or that version has never been published. Helm reports both cases identically, so it does not tell you which | Confirm the version first; do not assume a version number that exists elsewhere exists on ECR |
manifest unknown from a docker or compose pull |
The repository exists but not that version | Confirm the version. There is no latest on ECR by design |
ImagePullBackOff, often days after a working install |
The pull secret holds an ECR token, which expires after 12 hours. Running pods keep working, so this surfaces only when a pod is created or rescheduled | Have the External Secrets Operator keep it current, as shown in the Quick Start |
Requirements
| Component | Minimum requirement |
|---|---|
| Kubernetes | 1.24+ |
| Helm | 3.10+ |
| Docker Compose | 2.20+ |
| MongoDB source | 4.0+ (Change Streams require a replica set) |
| TLS | Recommended for all production deployments |