Stack
Scope: namespaced · Optional umbrella · Licensed (managed-deployment feature + a stacks cap)
Stack is an optional umbrella resource that creates and owns a curated bundle of the granular resources, auto-wires their references, and aggregates progress — an ARM-deployment-style one-shot provisioning experience.
It does not replace the per-component resources. The granular CRDs remain a first-class way to compose the platform by hand; Stack simply sits on top for teams that want a single object to manage a whole environment.
When to use it
- Use
Stackwhen you want to provision and track a full environment (secrets- datastores + gateway + observability + UI) as one unit, with the operator wiring the cross-references for you and rolling status up into one place.
- Use the granular resources when you want fine-grained control, are composing resources across namespaces by hand, or are sharing datastores between several independently-managed workloads.
What it does
- Creates + owns the bundled components (the operator sets owner references so the whole bundle is garbage-collected with the
Stack). - Auto-wires the references between them (Gateway→Postgres, Gateway→Observability, ChatUI→Gateway, workloads→datastores) — this relies on the
auto-wiringcapability. - Aggregates progress into
status.components[]andstatus.endpoints, so a singlekubectl get stackshows the whole environment's readiness and URLs.
Drift policy
By default the Stack continuously enforces the curated spec on its children: any manual edit you make to a generated component CR (for example bumping a datastore's storage size or a workload's replica count) is reverted on the next reconcile. spec.driftPolicy lets you relax this:
driftPolicy | Behaviour |
|---|---|
Enforce (default) | The curated spec is reasserted on every reconcile — manual child edits are reverted (full drift correction). |
Adopt | The curated spec is applied on creation and whenever the Stack's own spec changes (an ARM-style "redeploy"). Between Stack edits, manual per-component edits are preserved. |
Adopt mirrors how an Azure Resource Manager deployment behaves: the Stack seeds and wires the resources, but afterwards you can tune each component directly. Editing the Stack itself reasserts every child and overwrites your drift, so treat a Stack edit as a redeploy.
The owner reference is kept under both policies, so deleting the Stack always cascades to (and tears down) every component it created.
apiVersion: core.navique.com/v1alpha1
kind: Stack
metadata:
name: forge
spec:
driftPolicy: Adopt # let users tune individual components after creation
# ...Changing a running Stack
A Stack can be edited while it runs. The operator converges the cluster to the new spec, including removing things:
- Switching a component off (
gateway,observabilityorchatUIset toenabled: false), removing a guardrail or MCP catalog key, or disabling a datastore deletes the child the spec no longer produces. Workloads go first. Datastores follow once those workloads are gone, so a workload never loses its database while it is tearing down. While this runs, the children showphase: Deletinginstatus.components. - A datastore a component no longer needs is deleted too, unless a deletion-protection Lock guards it. A managed Postgres, ClickHouse or MongoDB is Locked by default, so it is kept and shown as
phase: Retained. That counts as ready, so the Stack still becomesReady. Delete the Lock to let the operator remove the datastore. Redis and Meilisearch are never Locked and are removed when unused. - Switching
spec.gateway.type(litellm↔waeg) replaces the gateway in place: see Switching an existing Gateway. The Stack gives each implementation its own database (litellm/waeg), so the two schemas never meet. The ChatUI is re-wired automatically.
Data is never thrown away by these edits. A database the Stack stops declaring (the gateway's litellm database after a switch, Langfuse's langfuse database after observability is switched off) stays on the Postgres and in its backups. What a switched-off workload kept only inside itself, such as LiteLLM keys and spend, is not carried over.
Example: a running Stack drops Langfuse and moves from LiteLLM to Wäg, keeping its models and chat UI:
spec:
observability: { enabled: false } # Langfuse is deleted; its database is kept
gateway:
enabled: true
type: waeg # was litellm
organization: { name: Acme } # a Wäg gateway needs one for the ChatUI
# licenseSecretRef: { name: waeg-enterprise-license, key: license }
# optional: you can activate the licence in the Wäg console instead
models: [ ... ] # unchanged, now emitted as Wäg providers + aliases
chatUI: { enabled: true } # re-wired to Wäg automatically
datastores:
clickhouse: { enabled: true, ... } # Wäg's default (split) analytics plane;
# or set gateway.waeg.storageMode: singleSome children are never deleted this way. They show as phase: Retained, with the reason in their message:
- a child protected by a Lock;
- a
SecretsManagement, because workloads may still mount the Secrets it produces; - a child left over from an operator version that did not remove unused components.
Delete a Retained child yourself once you no longer need it.
A guardrail or MCP server the Stack created counts as in use while gateway.guardrails.refs or chatUI.mcp.refs names it, not only while it is listed under catalog. It is removed once nothing names it any more.
Upgrading the operator
Upgrading deletes nothing on its own. Older operator versions left a component switched off on a running Stack running. After the upgrade such a leftover shows as Retained (see above) instead of being removed. Every component a Stack produces from then on is cleaned up when you switch it off.
Datastore sizing
Each managed datastore under spec.datastores takes an optional resources shorthand that sizes the underlying container's CPU and memory. It is honored for the Postgres, ClickHouse, Redis, and MongoDB datastores (managed mode only), and is fanned into the emitted PostgresCluster / ClickHouseCluster / RedisInstance / MongoCluster child as its managed.resources.
| Field | Maps to |
|---|---|
cpu | CPU request |
memory | memory request |
memoryLimit | memory limit |
The shorthand deliberately has no CPU limit (CPU limits throttle rather than protect). If you need one, use the standalone datastore CRD directly, which takes a full managed.resources.
apiVersion: core.navique.com/v1alpha1
kind: Stack
metadata:
name: forge
spec:
datastores:
postgres:
storageSize: 20Gi
resources: { cpu: 500m, memory: 1Gi, memoryLimit: 2Gi }
clickhouse:
storageSize: 50Gi
resources: { cpu: 500m, memory: 2Gi, memoryLimit: 3Gi }
redis:
storageSize: 5Gi
resources: { cpu: 100m, memory: 256Mi, memoryLimit: 512Mi }
mongo:
storageSize: 20Gi
resources: { cpu: 250m, memory: 1Gi, memoryLimit: 2Gi }When resources is omitted the upstream chart defaults apply (ClickHouse keeps its operator-tuned 3Gi memory limit to avoid OOMs under Langfuse load).
Choosing the gateway implementation
spec.gateway.type selects the gateway product: litellm (default) or waeg (the Wäg gateway, via the waeg-operator). See Gateway → Wäg gateway for what differs.
With type: waeg the Stack:
- requires
datastores.clickhouse.enabledin the defaultsplitstorage mode — admission rejects the Stack otherwise, because that is where Wäg's analytics live. Setgateway.waeg.storageMode: singleto keep them in the Stack's Postgres instead, which drops the requirement entirely — see Wäg analytics storage; - auto-wires the Stack's own ClickHouse (and Redis, when enabled) as the gateway's second storage plane — in
splitmode only; - declares the
waegdatabase on that ClickHouse so the gateway can start at all: Wäg creates only its tables, never its database (ClickHouseCluster→databases[]); - names the gateway's logical Postgres database
waegrather thanlitellm, so the two implementations never share a schema; - attaches no Langfuse ref — Wäg cannot export traces declaratively, so the Stack does not wire one only for the Gateway to refuse it.
spec.gateway.waeg passes the Wäg-only knobs through: topology, jobWorkers, worker, storageMode, openfga, autoscaling, assistant (see Console assistant), bootstrapAdmin, dataEncryptionKeySecretRef, modelAccess, scim, jwt, smtp, publicURL (see Email (SMTP)), artifacts, azureEntra and providers (see Providers and models), and spec.chatUI.onBehalf and spec.chatUI.modelsFromGateway (see Models from the gateway) reach the ChatUI (see Each request names the signed-in user). The Enterprise licence is declared once, on spec.gateway.licenseSecretRef, and the gateway's organization, optionally, on spec.gateway.organization.
spec:
datastores:
clickhouse: { enabled: true, backup: { enabled: true, provider: s3, s3: { destinationPath: s3://b } } }
redis: { enabled: true }
gateway:
enabled: true
type: waeg
licenseSecretRef: { name: waeg-enterprise-license, key: license }
waeg:
topology: Split
worker: { enabled: true, replicas: 2 }
scim:
enabled: true
tokenSecretRef: { name: waeg-scim-token, key: scim-token }
defaultRole: viewer
jwt:
appClaim: azp
requireRegisteredApplication: trueFields below that are LiteLLM-specific (rolePermissions, healthCheck, storePromptsInLogs, guardrails, per-model limits — and the claim-mapping half of jwtAuth) are reported on the Gateway child's FeaturesSupported condition when type: waeg — they are never silently dropped.
Wäg analytics storage
spec.gateway.waeg.storageMode selects where the gateway's analytics (request logs, usage, spend) live. It is the Stack passthrough of Gateway.spec.waeg.storageMode.
| Mode | Analytics live in | datastores.clickhouse.enabled |
|---|---|---|
split (default) | the Stack's ClickHouse | required |
single | the Stack's Postgres | not needed — no ClickHouse is provisioned |
Upstream Wäg's own default is single, and it is the recommended starting point; this operator keeps split as its default for continuity and because it holds up at volume. With single the Stack provisions no ClickHouse at all and the admission rule that demanded one no longer applies. Leaving the default in place without a ClickHouse is rejected with:
gateway.type=waeg with the default storageMode 'split' requires
datastores.clickhouse.enabled; set gateway.waeg.storageMode: single to keep
analytics in Postgres insteadSwitching modes does not migrate analytics history
The two planes are separate stores. Changing storageMode on a running Stack points the gateway at the other one; the analytics already collected stay where they were, and neither the operator nor Wäg copies them across.
apiVersion: core.navique.com/v1alpha1
kind: Stack
metadata:
name: forge
namespace: forge
spec:
datastores:
postgres:
enabled: true
storageSize: 20Gi
backup: { enabled: true, provider: s3, s3: { destinationPath: s3://forge-pg } }
redis: { enabled: true }
# no clickhouse block at all — storageMode: single needs none
gateway:
enabled: true
type: waeg
organization: { name: forge }
waeg:
storageMode: singleIn the default split mode the Stack additionally declares the waeg database on its managed ClickHouse, because Wäg creates only its tables and never its database — see ClickHouseCluster → databases[].
Gateway organization
spec.gateway.organization gives the gateway a named top-level organization: the object budgets and rate caps roll up to.
| Field | Description |
|---|---|
name (required) | The organization name |
maxBudget | Spend cap for the organization |
budgetDuration | Period the cap resets over (e.g. 30d). LiteLLM only — Wäg budget policies have no period field |
rpmLimit | Requests-per-minute cap |
tpmLimit | Tokens-per-minute cap |
It is optional for both gateway types. On a LiteLLM gateway it is passed to the child Gateway's spec.organization.
On a Wäg gateway:
- Without it, the chat app, its key, teams and model access use Wäg's built-in Default Organization.
- With it and the
identity-managementlicence, the Stack creates anOrganizationnamed<gateway>-org, which you can manage in the console, and the Gateway refers to it (spec.organizationRef). People join a Wäg organization through its teams. A gateway that already had its own organization keeps the same one in Wäg: theOrganizationtakes it over, so the chat app and its key stay as they are. - With it but without that licence, the Gateway manages the organization itself, as before.
spec:
datastores:
clickhouse: { enabled: true, backup: { enabled: true, provider: s3, s3: { destinationPath: s3://forge-ch } } }
redis: { enabled: true }
gateway:
enabled: true
type: waeg
licenseSecretRef: { name: waeg-enterprise-license, key: license }
organization:
name: navique-ag
maxBudget: 2000
rpmLimit: 1000
tpmLimit: 500000
waeg:
modelAccess: # org-rooted: needs the organization above
openByDefault: false
fallbackMode: deny
grants:
- models: [premium, economy]
chatUI:
enabled: true # auto-wired as an application under navique-agSee ChatUI connects as an application for the objects the operator emits, and What is not applied for the organization fields Wäg cannot honour.
Gateway Enterprise licence
spec.gateway.licenseSecretRef supplies the gateway's own Enterprise licence, passed through to the Gateway's instance.licenseSecretRef. For type: litellm that is the LiteLLM Enterprise key; for type: waeg it is the Wäg Enterprise licence, and it is the difference between a working Enterprise gateway and one that answers 402 license_required.
Every Wäg Enterprise module is gated on it — SSO, SCIM, audit, CMEK, FIPS and console branding — and enforcement is unconditional, so without this field a Stack-managed Wäg gateway has no reachable Enterprise feature at all.
spec:
gateway:
type: waeg
licenseSecretRef: { name: waeg-enterprise-license, key: license }The Secret key defaults to license. Let the Stack's SecretsManagement backend materialize the Secret rather than creating it by hand.
Licence from the console, and branding
licenseSecretRef is optional for a Wäg gateway: you can instead activate the licence in the gateway's own console (Platform → License) after it is up — see Activating the licence in the console. Either way, the operator hands the built-in Navique theme pack to the console (an owned <gateway>-branding ConfigMap), and it shows once the gateway is licensed. Use gateway.waeg.brandingConfigMapRef / defaultBranding for your own pack or Wäg's own look.
Gateway sizing
spec.gateway.resources sizes the LiteLLM proxy container. Unlike the datastore shorthand it is a full Kubernetes ResourceRequirements (so you can set a CPU limit), passed straight through to the emitted Gateway's instance.resources → the LiteLLMInstance's spec.resources. Omit it to leave the litellm-operator's own default.
spec:
gateway:
resources:
requests: { cpu: "500m", memory: 512Mi }
limits: { cpu: "2", memory: 2Gi }Pinning the gateway proxy build
spec.gateway.image pins the LiteLLM proxy image, passed through to the emitted Gateway's instance.image → the LiteLLMInstance's spec.image.
spec:
gateway:
image:
repository: ghcr.io/berriai/litellm
tag: v1.94.0-dev.2Leave it unset unless you are qualifying a specific build. With no pin the litellm-operator applies its own default tag — the one validated against its database-migration entrypoint — so an arbitrary tag can break the migration and leave the gateway down.
Do not try to patch the child Gateway by hand instead: with the default drift policy Enforce the Stack re-applies its children on every reconcile and your edit is reverted within seconds. Declare the pin here.
For a Wäg gateway the same field pins the Wäg image, which becomes the WaegInstance's spec.image. Set the repository as well as the tag, because a tag alone is not applied, and keep an -ee build for the Enterprise features:
spec:
gateway:
type: waeg
image:
repository: quay.io/waeg/waeg-gateway
tag: 1.2.0-eeThe pin belongs to one product. If it clearly names the other product's image, for example a LiteLLM pin left over after switching to Wäg, it is not applied. The product's default image runs instead, and the Gateway reports it (FeaturesSupported names spec.gateway.image on Wäg; a warning event on LiteLLM). Remove or replace the pin when you switch. The management console's Stack editor does this for you.
Gateway JWT auth & RBAC
spec.gateway.jwtAuth and spec.gateway.rolePermissions enable JWT-based API authentication and per-role model access on the Stack's Gateway — passed straight through to the Gateway's instance.jwtAuth / instance.rolePermissions. See JWT API authentication & RBAC for the fields. Requires a LiteLLM Enterprise license.
spec:
gateway:
jwtAuth:
enabled: true
userRolesJWTField: roles
userAllowedRoles: ["basic_user"]
enforceRBAC: true
rolePermissions:
internal_user: { models: ["anthropic-claude"] }Wäg console branding
spec.gateway.waeg.brandingConfigMapRef and defaultBranding pass through to the Gateway's console branding: the Navique theme by default, your own theme pack with the licensed custom-branding feature, or Wäg's own look with defaultBranding: false.
On a Wäg gateway
spec.gateway.jwtAuth also turns on JWT auth for type: waeg — enabled, publicKeyURL (→ Wäg's jwksUrl), issuer, audience and userIDJWTField (→ subjectClaim) all apply. The Wäg-only knobs live in spec.gateway.waeg.jwt, and spec.gateway.rolePermissions plus the claim mappings (userRolesJWTField, userRoleJWTField, userAllowedRoles, enforceRBAC, userIDUpsert, teamIDsJWTField, adminJWTScope) are reported as unsupported instead: Wäg authorizes through OpenFGA and registered applications. See Data-plane JWT authentication.
spec:
gateway:
type: waeg
licenseSecretRef: { name: waeg-enterprise-license, key: license }
jwtAuth:
enabled: true
publicKeyURL: https://login.microsoftonline.com/<tenant>/discovery/v2.0/keys
issuer: https://login.microsoftonline.com/<tenant>/v2.0
audience: <client-id>
userIDJWTField: sub
waeg:
jwt:
appClaim: azp
requireRegisteredApplication: trueHardening switches can stop the gateway booting
waeg.jwt.allowMasterKey: false or allowVirtualKeys: false require jwtAuth.enabled: true, a publicKeyURL, an audience and insecureSkipVerify: false — otherwise Wäg refuses to start. allowVirtualKeys: false also cuts off every application key, the Stack's ChatUI included.
Wäg SCIM provisioning
spec.gateway.waeg.scim turns on Wäg's SCIM v2 endpoints on the Stack's gateway, so your IdP provisions and deprovisions console users directly. It is independent of SSO — it works with no interactive login wired — and needs spec.gateway.licenseSecretRef.
spec:
gateway:
type: waeg
licenseSecretRef: { name: waeg-enterprise-license, key: license }
waeg:
scim:
enabled: true # default
tokenSecretRef: { name: waeg-scim-token, key: scim-token } # required
defaultRole: viewer
orgSource: waeg
roleMap: { "AI Platform Admins": admin }The bearer token is projected onto the gateway pods as WAEG_EE_SCIM_TOKEN, so rotating the Secret is the whole rotation procedure. The endpoints live under /waeg/admin/v1/ee/scim/v2. See SCIM provisioning for every field.
Document OCR in the chat UI
spec.chatUI.ocr.model names one of the Stack gateway's OCR models (spec.gateway.models[] with mode: ocr). The chat UI then reads scanned and image-only PDFs and images uploaded as text or as agent context, through the gateway. It is passed through to the ChatUI's spec.ocr, which reports the result on its DocumentOCR condition.
spec:
gateway:
enabled: true
models:
- { name: gpt, modelName: gpt-4o, model: azure/gpt-4o, refSecretKey: azure-key }
- { name: ocr, modelName: mistral-ocr, model: mistral/mistral-ocr-latest, refSecretKey: mistral-key, mode: ocr }
chatUI:
enabled: true
ocr: { model: mistral-ocr }Licensed feature document-ocr (Enterprise). It works with either gateway type; on Wäg, use a Mistral, Azure AI Foundry or Azure Document Intelligence OCR model.
File search
chatUI.fileSearch.model names one of the Stack gateway's embeddings models (spec.gateway.models[] with mode: embedding). People can then upload files in a chat and ask about them. It is passed through to the ChatUI's spec.fileSearch, which reports the result on its FileSearch condition. Experimental: it runs LibreChat's RAG API from its development image. Free, with either gateway type.
The vectors go to the database librechat_vectors on the Stack's managed Postgres, created with the vector extension. With an external Postgres, set chatUI.fileSearch.connectionSecretRef to a Secret (keys host, port, dbname, username, password) of a database you provide with the vector extension enabled; the Stack is refused without one.
spec:
gateway:
enabled: true
models:
- { name: gpt, modelName: gpt-4o, model: azure/gpt-4o, refSecretKey: azure-key }
- { name: embeddings, modelName: text-embedding-3-small, model: azure/text-embedding-3-small, refSecretKey: azure-key, mode: embedding }
chatUI:
enabled: true
fileSearch: { model: text-embedding-3-small }Changing the model starts a new index: files uploaded before must be uploaded again.
Memory
chatUI.memory lets the chat app learn lasting facts about each person and use them in later chats; the model is one of the gateway's chat models. It is free, but every chat turn makes one extra call to that model. See ChatUI → Memory for every field.
spec:
chatUI:
enabled: true
memory: { enabled: true, model: gpt-4o-mini }SharePoint files
chatUI.sharePoint lets people attach SharePoint and OneDrive files in the chat app. It needs sso.chatUI signing in with Microsoft Entra ID; the Stack is rejected otherwise. It is free. See ChatUI → SharePoint files for the fields and the Entra app registration.
spec:
sso:
issuerURL: https://login.microsoftonline.com/<tenant-id>/v2.0
chatUI: { name: chatui-oidc }
# chatUIAPIScope: api://chat.contoso.com/access_as_user # only for a non-default Application ID URI
chatUI:
enabled: true
sharePoint: { baseURL: https://contoso.sharepoint.com }ChatUI datastores: MongoDB & Meilisearch
MongoDB (the conversation store) and Meilisearch (search) back the ChatUI and are configured under datastores.mongo / datastores.meilisearch — the same mode: managed | external switch as the other datastores. They are only provisioned when the ChatUI is enabled, and default to managed.
managed(default): the Stack provisions and owns aMongoCluster/MeilisearchInstanceand wires the ChatUI to it. Size viastorageSize(Meilisearch also honorsstorageClass/resources).external: no datastore CR is provisioned; the ChatUI is wired to a user-managed instance. Mongo needsconnectionSecretRef(Secret keyMONGO_URI, override via.key). Meilisearch needshostplus aconnectionSecretRefholding the master key (Secret keyMEILI_MASTER_KEY).
spec:
datastores:
mongo:
mode: managed
storageSize: 10Gi
meilisearch:
mode: external
host: https://search.example.com
connectionSecretRef: { name: meili-master-key } # key MEILI_MASTER_KEYMCP servers (web search & tools)
chatUI.mcp wires MCPServer servers into the Stack's LibreChat UI. Two ways, combinable:
catalog— bundled servers the Stack provisions and owns asMCPServerchildren (one per key) and wires into the ChatUI. First entry:websearch(enterprise web search). Requires thebundled-mcp-cataloglicense; an unlicensed entry isRefusedand skipped (the UI still comes up).refs— wire pre-existingMCPServerCRs you create yourself (catalog or external — e.g. a self-hosted in-cluster MCP server), in any namespace. The Stack references them without owning their lifecycle.
spec:
chatUI:
enabled: true
mcp:
catalog: [ websearch ] # Stack creates + wires the MCPServer
refs:
- { name: my-internal-mcp } # an MCPServer you manageReferencing any MCP server auto-enables LibreChat's Agents endpoint. The Stack's MCPServer children appear in its progress tree and are torn down with the Stack. See MCPServer for the server definition and the automatic SSRF allowlist.
Guardrails (data-path)
gateway.guardrails wires Guardrail data-path guardrails into the Stack's Gateway. Two ways, combinable:
catalog— bundled engines the Stack provisions and owns asGuardrailchildren (one per key) and wires into the Gateway. First entry:pseudonymizer(PII pseudonymization). Requires theguardrail(Enterprise) license; an unlicensed entry isRefusedand skipped (the Gateway still comes up, unguarded).refs— wire pre-existingGuardrailCRs you create yourself (catalog or external HTTP guardrail), in any namespace. The Stack references them without owning their lifecycle.
spec:
gateway:
enabled: true
guardrails:
catalog: [ pseudonymizer ] # Stack creates + wires the Guardrail
refs:
- { name: my-guardrail } # a Guardrail you manageBoth catalog and external guardrails are licensed and routed through the operator-injected license-gate proxy (fails closed if the license lapses). The Stack's Guardrail children appear in its progress tree and are torn down with the Stack. See Guardrail for the full definition.
Debugging a guardrail inside a Stack
Set logLevel (and optionally blockedReason) on the Stack, not on the child:
spec:
gateway:
guardrails:
catalog: [ pseudonymizer ]
logLevel: debug # one proxy log record per request
blockedReason: "blocked by the Navique license gate"A Stack rewrites each child's curated spec, so under the default driftPolicy: Enforce a kubectl patch of the child Guardrail's logLevel is reverted — and since the Stack watches its Guardrail children, the patch triggers the very reconcile that undoes it. (With driftPolicy: Adopt a manual patch survives, but only until the next edit to the Stack, and it switches off drift correction for every child.) These fields apply to the catalog children the Stack owns; guardrails wired via refs are yours, so set logLevel on those CRs directly.
The proxy's decision counters need no opt-in at all — see Troubleshooting a failed guardrail call.
gateway.guardrails.detection sets what the Stack's catalog pseudonymizer detects: detection engine, kinds of data, never- and always-masked terms (see Detection settings for every field). A Stack with its own settings gets an engine of its own, with its own Presidio and name model; Stacks without, or with the same settings, share one. Like logLevel, it lives on the Stack because the Stack rewrites its children.
spec:
gateway:
guardrails:
catalog: [pseudonymizer]
detection:
entities: [PERSON, ORGANIZATION, PHONE_NUMBER]
allowList: [Navique]
denyLists: [{ entity: ORGANIZATION, terms: [Contoso Ltd] }]Backups & deletion protection
Because a Stack is the path non-technical users take, it treats stateful data defensively.
Backups are mandatory for managed stateful datastores. A Stack must set an enabled backup on every managed datastores.postgres, datastores.clickhouse, and datastores.mongo (the same set that is auto-Locked) — applying one without it is rejected (Postgres at admission via CEL; ClickHouse/Mongo at reconcile), so nobody stands a datastore up with no backups. Redis (cache) and Meilisearch (a rebuildable index) are exempt. The block is the same provider-neutral shape everywhere (s3/azure/gcs + schedule + retention) and is fanned into the managed child; Postgres runs CNPG-native PITR, ClickHouse a clickhouse-backup CronJob, MongoDB a mongodump+rclone CronJob. External datastores need no backup here — you manage that yourself. Set datastores.requireBackup: false to skip the requirement (advanced users / CI).
Managed datastores are auto-Locked. When the Stack provisions a managed PostgresCluster, ClickHouseCluster, or MongoCluster (which holds the ChatUI conversation history), it also creates a Lock on it, so a mistaken kubectl delete is blocked. Redis (a cache) and Meilisearch (a rebuildable search index) are never locked.
- This is deletion protection at the data layer: deleting the
Stackstays blocked until you remove those Locks — the datastores (and their PVCs) are never destroyed by accident. The Stack reports the blocking Lock(s) in its status. - The
Stackcreates each Lock once and never recreates one you remove — so to delete a protectedStackyou simplykubectl delete lock <name>first, then delete theStack. The operator won't race you by putting the Lock back. - The same Locks keep a datastore the Stack no longer uses: switching a component off leaves its Locked datastore in place as
Retained(see Changing a running Stack). - Set
datastores.protectData: falseto skip creating the Locks (existing Locks are left untouched).
spec:
datastores:
postgres:
storageSize: 20Gi
backup:
enabled: true
provider: s3
s3:
destinationPath: s3://forge-backups/pg
credentialsSecretRef: { name: pg-backup }
clickhouse: { storageSize: 20Gi }
redis: { storageSize: 5Gi }
# protectData: false # opt out of the auto-Locks (not recommended)Namespace separation
By default every component lands in the Stack's own namespace. Each component block optionally takes a namespace to place it elsewhere:
spec:
gateway: { namespace: forge-gateway }
chatUI: { namespace: forge-ui }
observability: { type: langfuse } # stays in the Stack's namespaceWhen a component declares a namespace, the Stack:
- creates the namespace if it does not exist (and leaves it in place on delete);
- places a
SecretsManagementin every namespace that hosts a workload, so each component's same-namespacesecretsRefresolves locally; - auto-wires the cross-namespace references (e.g. a Gateway in one namespace to the Postgres/Langfuse in another) — you still set no refs by hand.
Because Kubernetes owner references cannot cross namespaces, a cross-namespace child is tracked by the core.navique.com/owned-by label and removed by the Stack's finalizer on delete (same-namespace children keep the owner-reference cascade). The auto-created namespaces themselves are not deleted.
SSO / OIDC login
spec.sso configures single sign-on across the whole Stack from one identity provider. The shared issuer/provider/scopes apply to every enabled component, while each component gets its own OAuth client (callback URLs differ) via a per-component client ref. A component receives SSO only when it is enabled and its client ref is set, so you can roll SSO out selectively.
| Field | Description |
|---|---|
issuerURL | Shared OIDC issuer / discovery base URL |
providerName | Shared display label |
scopes | Shared requested scopes |
provider / tenantID / authorizationEndpoint / tokenEndpoint / userinfoEndpoint | Gateway-only provider flavor + endpoints (see the Gateway SSO notes) |
gateway / chatUI / observability | Per-component OAuth client refs ({ name, clientIDKey?, clientSecretKey? }) |
chatUIPasswordLogin | false leaves SSO as the only sign-in to the chat app (the chat app's sso.passwordLogin). Default true |
chatUIAPIScope | The chat app's own API scope for on-behalf-of token exchange (the chat app's sso.apiScope, see SharePoint files) |
spec:
sso:
issuerURL: https://idp.example.com
providerName: "Acme SSO"
provider: generic-oidc
authorizationEndpoint: https://idp.example.com/authorize
tokenEndpoint: https://idp.example.com/token
userinfoEndpoint: https://idp.example.com/userinfo
gateway: { name: gateway-oidc }
chatUI: { name: chatui-oidc }
observability: { name: langfuse-oidc }This is what powers self-service SSO from the management console's deployment wizard. Per-component details (which env each app receives, licensing) are on the Gateway, ChatUI, and Observability pages.
Mesh
spec.mesh.mode opts the Stack's component namespaces into the cluster ServiceMesh (mTLS + isolation). It defaults to auto (join when a Ready ServiceMesh exists, no-op otherwise); enabled requires one; disabled never joins. The Stack only labels its namespaces — the ServiceMesh singleton does the enrollment — so a mesh enabled later joins existing Stacks with no redeploy.
Licensing
Stack requires the managed-deployment feature and a stacks instance cap in the License. Without them, compose the platform with the granular resources, which are always available (subject to their own caps in the Community edition).
See Editions & Licensing.