Repository navigation
Description
Tracking issue
This issue tracks the two pull requests of the section "Delivery".
- PR 1, feat(k8s): deploy-stack declares its stack names once, and a cluster secret row can name its Secret type and hold derived entries #2008: deploy-stack declares its stack names once, and a cluster secret row can name its Secret type and hold derived entries. The post-Helm step is already on
main(_POST_HELM_BY_STACK, since v0.2.38), so PR 1 does not add it. - PR 2, no child issue: the rest of the body, which deploys the
chatstack. Intake judged a separate PR 2 issue a duplicate of feat(k8s): deploy-stack declares its stack names once, and a cluster secret row can name its Secret type and hold derived entries #2008 on 2026-10-23 (fix(roadmap): intake judges a split part a duplicate of the issue that its --source names, so the part gets no issue #1985), so PR 2 stays in this issue.
The pull request of PR 2 closes this issue. It merges after #2008 closes, so this issue closes after its child issue.
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D6 (owner, 2026-10-17): "Mattermost push notifications and the remote Marketplace are off." This answers the one Key question the body leaves to the owner. Nothing in this item needs public egress, so the perimeter's egress stays "DNS and pods in
mattermost, nothing else", and live check (i) stays. - Decision D16 (owner, 2026-10-17): "v0.2.38 may go over the cap of 16 for now; unblocking work goes first." feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391 goes first because it is the real blocker of feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392, feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393 and feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395.
- The
chatkustomization does not go in_KUSTOMIZATIONS_BY_STACK. A native deploy applies that table with the root kustomization at step 4, before any Secret or chart (stack_lifecycle.py:206-212,:1068-1070), so theCluster,MattermostandPodMonitorobjects would find no CRD. - deploy-stack gets one post-Helm step, shared with fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367, whose gateway ServiceMonitor needs the same order. Whichever item lands first adds the step, and the other adds only its entry. This item needs a kustomization directory and fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 needs a single file, so the step accepts both.
- Stack names are declared in one place. Today they appear in three:
stack_lifecycle.py:214,networking.py:65and the literals inside_resolve_stacks(networking.py:68-78). Addingchatas a fourth copy could leave it out ofall. - One split. No part of this item helps feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392-feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 until the chat stack runs. The parts that other items reuse ship first, as a separate issue that its own pull request closes.
Scope
- The body's scope is unchanged, with two additions: the post-Helm step (unless fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 has already added it) and the single declaration of stack names. Nothing moves to another item. fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 keeps its ServiceMonitor entry.
Delivery
- PR 1 (M) closes feat(k8s): deploy-stack declares its stack names once, and a cluster secret row can name its Secret type and hold derived entries #2008. It adds the post-Helm step (left out if fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 has added it), declares stack names once, and adds the push table's derived entries and Secret types, each with tests. It changes no manifest under
k8s/. - PR 2 (M), "Closes feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391". It delivers the rest of the body: the namespaces and LimitRange, the three Applications and their projects, the values files,
k8s/mattermost/, the host override, themattermost/mattermost-dbrow, thechatstack, the perimeters, the alerts and the guide.
Acceptance criteria (these replace the body's _KUSTOMIZATIONS_BY_STACK["chat"] bullet and its "set as the owner decides" bullet; every other criterion, security criteria included, still applies)
-
mattermostEnvsetsMM_EMAILSETTINGS_SENDPUSHNOTIFICATIONS=falseandMM_PLUGINSETTINGS_ENABLEREMOTEMARKETPLACE=false(D6). Both are asserted intests/test_third_party_telemetry.py, next to the diagnostics pair. - The post-Helm step (added by whichever of feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391 and fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 lands first):
stack_lifecycle.pygains one table, keyed by stack, of paths under--k8s-dir. A directory is applied withkubectl apply -kand a file withkubectl apply -f.- On a cluster without Argo CD, deploy-stack applies the table after the last Helm release (the loop at
stack_lifecycle.py:1090-1094) and before post-deploy networking. An offline test of--stack chatrecordskubectl apply -k <k8s-dir>/mattermostafter the Secret push and after thehelm upgradeofmattermost-operator. - The Argo CD path (
stack_lifecycle.py:1054-1063) does not change. Argo CD applies these objects, usingSkipDryRunOnMissingResource=true. - The
deploy-stack --dry-runoutput lists the entries under their own key and still makes no request. teardown-stackdeletes the entries in reverse order, before it uninstalls the releases (stack_lifecycle.py:1251-1257), and its dry run lists them._deploy_stack_network_policies(tests/test_k8s_network_policies.py:64-81) reads the table, so the Mattermost perimeters count as applied. An existence check in the style oftest_manifests_by_stack_files_exist(tests/test_architectural_invariants.py:1410) covers the table's paths.- AGENTS.md:53 names the table alongside
_MANIFESTS_BY_STACKand_HELM_RELEASES_BY_STACK.
- The table's
chatentry is(Path("mattermost"),)._KUSTOMIZATIONS_BY_STACKgains nochatentry, and the rootk8s/kustomization.yamldoes not listmattermost. - Stack names live in one tuple in
networking.py._resolve_stacksderivesalland the valid names from that tuple, andstack_lifecycle.pykeeps no copy. Every help text that lists stacks nameschat: the--stackhelp of deploy-stack and teardown-stack (HELP.k8s.stack,src/devops_cli/lang/en/help.py:410, today "infra | llm | all"), the deploy-stack summary (:326) and thepush_stackhelp (:332-334). The 2026-10-08 refinement's dry-run checkbox still applies. - The guide also says two things. First, deploy
chatwith the default--wait, because CloudNativePG's admission webhook refuses theClusteruntil its operator is ready. Second, on a cluster without Argo CD,teardown-stack --stack chatdeletes the database and the files claim.
Current references (checked at 3dd7fa6; covers the new code paths and the body references that moved)
src/devops_cli/commands/k8s/stack_lifecycle.py::206-212(_KUSTOMIZATIONS_BY_STACK, "before any Secret or chart"),:214(VALID_STACKS),:1054-1063(Argo CD early return),:1068-1070(step 4),:1072-1075(Secret push),:1090-1094(Helm releases),:1096-1101(post-deploy),:1233-1260(teardown steps).src/devops_cli/commands/k8s/networking.py:65and:68-78.src/devops_cli/lang/en/help.py:326,:332-334and:410.src/devops_cli/config/constants.py:679-684(was:688).src/devops_cli/k8s/cluster_secrets.py:34-80(was:33-79). These are unchanged:secret_push.py:566,argocd_overrides.py:42-59and:108-130,tests/test_k8s_push_secrets.py:330-334,k8s/devops/roadmap-service/networkpolicy.yaml:15-25,k8s/devops/networkpolicy.yaml:44-55andk8s/argocd/apps/prometheus-operator-crds.yaml:34.tests/test_k8s_argocd_apps.py:52,:217,:277-309and:396.tests/test_k8s_network_policies.py:34(TARGET_NAMESPACES).tests/test_k8s_monitoring_alerting.py:30-75(SERVED_SERIES).k8s/monitoring/networkpolicy.yaml:80-101(API-server rule) and:103-146(namespace egress).k8s/monitoring/grafana-values.yaml:116-121.k8s/monitoring/k8s-monitoring-values.yaml:146-148.k8s/README.md:145(no ingressipBlock, was:147) and:145-149(kube-router and host-network traffic, was the Key question's:147-151).SkipDryRunOnMissingResource=trueis now set only ink8s/argocd/apps/k8s-monitoring.yaml:34andingress.yaml:28.dcgm-exporter.yamlno longer sets it.- AGENTS.md:50 is the rule to confirm before turning off a functional web integration (was
:55). AGENTS.md:51-53 is the deploy-stack rule (was:56-58).
Dependencies and order
- This item still depends on nothing, and nothing from it has landed.
- fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 is open, in the backlog with no milestone, and shares the post-Helm step. feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391 will probably land first and add the step, and fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 would then add only its ServiceMonitor entry.
- This item blocks feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392 and feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393, both open in the backlog. It also blocks feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395, open in the backlog, which also waits on feat(service): one webhook router verifies each provider its own way, parses a typed payload and delivers each event only to the consumers subscribed to it #1386 (open, v0.2.38). feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392 and feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 carry
status/blocked. The plan has a person re-point those labels to feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391, and feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395's to feat(service): one webhook router verifies each provider its own way, parses a typed payload and delivers each event only to the consumers subscribed to it #1386 as well. feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392 and feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393 reuse PR 1's derived entries. - Priority: the owner's blocker rule raises nothing, because none of feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392-feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 has a priority label.
Problem
No chat server runs in the cluster. On 2026-10-08 the live namespaces were argocd, cloudflared, default, devops, kube-node-lease, kube-public, kube-system, llm, local-path-storage, logging, monitoring, otel and registry. Every integration in #1390 needs one.
What the Operator needs
Sources: the operator v1.25.x source and the mattermost-operator chart 1.0.5, read 2026-10-08.
- A database Secret with
DB_CONNECTION_STRING. An external database is a Secret that must hold that key (pkg/mattermost/database_external.go:35). Mattermost v11 needs PostgreSQL 14 or later. - No readiness init container, unless asked for.
- The Operator adds the init container only when that Secret has
DB_CONNECTION_CHECK_URL. - Its default "external" mode pulls
postgres:13andappropriate/curl. The Operator itself calls that mode deprecated. - The "builtin" mode arrived in June 2026 (operator feat(ai): route reviews and embeddings through the gateway across every inference backend #459). Chart 1.0.5's CRD (
crds/crd-mattermosts.yaml) doesn't have its field.
- The Operator adds the init container only when that Secret has
- A claim for files.
fileStore.localmakes the Operator create a claim, which defaults to ReadWriteMany since operator fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431.local-pathgives only ReadWriteOnce.fileStore.externalVolume.volumeClaimNametakes a claim we create and annotate ourselves.
- SiteURL from the Ingress host. The Operator sets
MM_SERVICESETTINGS_SITEURLtohttps://<spec.ingress.host>(siteURLFromHost,pkg/mattermost/helpers.go). TLS ends at Cloudflare, so that is the right URL. - Defaults to override.
- The Operator sets
MM_PLUGINSETTINGS_ENABLEUPLOADS=true,MM_METRICSSETTINGS_ENABLE=trueandMM_CLUSTERSETTINGS_ENABLE=true(pkg/mattermost/env_var.go). - It sets
MM_FILESETTINGS_MAXFILESIZEto 1000 MB (constants.go). - An entry in
spec.mattermostEnvreplaces any of these by name (mergeEnvVars,helpers.go).
- The Operator sets
- Rolling updates by default. Two pods on different nodes can't mount one ReadWriteOnce claim.
deploymentTemplate.deploymentStrategyType: Recreateis supported (operator feat(github): in-flight work, pr stagnation & blocker radar (devops gh pm inflight) #418). - Team Edition by image. The default image is
mattermost/mattermost-enterprise-edition(apis/mattermost/v1beta1/mattermost_utils.go:20);spec.imageselectsmattermost/mattermost-team-edition. The Operator labels Mattermost's podsapp: mattermostandinstallation.mattermost.com/installation: <name>(mattermost_utils.go:288-312). - The chart can't set the operator's resources. Chart 1.0.5's
templates/mattermost-operator/deployment.yamltemplates only the top-levelpodSecurityContextandsecurityContext, the args, the env and the image. Itsvalues.yamlhas noresourceskey. - The CRDs are large.
- The Mattermost CRD is 259,446 bytes as compact JSON, within about 2.7 KB of the 262,144-byte last-applied annotation once Argo CD adds its tracking annotation.
- CloudNativePG 0.29.1's largest CRDs are
poolers.postgresql.cnpg.io(about 679 KB of YAML) andclusters.postgresql.cnpg.io(about 470 KB), each beyond that limit on its own.
- Which line. v11.7 is the current Extended Support Release, supported until 2027-05-15; its latest patch was v11.7.11 (2026-09-15) on 2026-10-08.
What this repository has, and what it lacks
- Hosts. Homelab hosts reach Argo CD as Kustomize patches, which
devops k8s deploy-stackwrites on raw Applications (fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config #1290)._host_fieldsreads only Ingress rules, Ingress TLS hosts and IngressRoute matches (src/devops_cli/k8s/argocd_overrides.py:108-130).application_sourcerefuses an Application withspec.sources(:42-59, the refusal at:47-51). So a Helm Application can't carry a deploy-time host.CONST_K8S_ARGOCD_HOMELAB_APPLICATIONSis("devops", "ingress")(src/devops_cli/config/constants.py:688).clusterignoresspec.source.kustomizeon those two only (k8s/argocd/bootstrap/cluster.yaml).
- Stacks.
VALID_STACKSholds infra, llm, logging, devops and all (src/devops_cli/commands/k8s/stack_lifecycle.py:203). AGENTS.md:56-58 requires a deploy-stack path, included inall, for every in-cluster workload. - Secrets.
- The push table has four kinds of source: a keyring entry, gh's machine token, a setting and a literal (
src/devops_cli/k8s/cluster_secrets.py:33-79). - None can build one value from another.
DB_CONNECTION_STRINGmust be built from the password the database is bootstrapped with. - Every pushed Secret is
Opaque(src/devops_cli/k8s/secret_push.py:566), and CloudNativePG'sbootstrap.initdb.secretexpectskubernetes.io/basic-auth. Kubernetes requires onlyusernameorpasswordin such a Secret, so the extraDB_CONNECTION_STRINGkey is allowed (pkg/apis/core/validation/validation.go). - A row's restart targets must be a workload rendered from a manifest under
k8s/or a Helm release's name (test_every_restart_target_is_a_manifest_workload_or_helm_release,tests/test_k8s_push_secrets.py:330-334). The Operator createsdeployment/mattermost, which is neither.
- The push table has four kinds of source: a keyring entry, gh's machine token, a setting and a literal (
- Data safety.
test_namespace_and_pvc_data_safetychecks only Namespaces and PVCs (tests/test_k8s_argocd_apps.py:271-303). CloudNativePG gives its claims an owner reference to theClusterobject, so deleting that object deletes the database volume's claim. - Sync order. The
mattermostApplication rendersCluster,MattermostandPodMonitorobjects whose CRDs other Applications install. The repository handles that withSkipDryRunOnMissingResource=true(k8s/argocd/apps/k8s-monitoring.yaml:34,ingress.yaml:28,dcgm-exporter.yaml:34), and large CRDs withServerSideApply=true(prometheus-operator-crds.yaml:34). - Monitoring.
- Alloy reads PodMonitors (
prometheusOperatorObjects,k8s/monitoring/k8s-monitoring-values.yaml:147-149), and the PodMonitor CRD is installed. - Grafana's sidecar loads dashboards from every namespace (
k8s/monitoring/grafana-values.yaml:108-113). - The monitoring perimeter has no egress to the new namespaces (
k8s/monitoring/networkpolicy.yaml:102-132).
- Alloy reads PodMonitors (
- Perimeter shape. The monitoring perimeter's API-server rule (
k8s/monitoring/networkpolicy.yaml:79-101) needs an all-addressesipBlockon 443, 6443 and other ports, because kube-router checks API traffic after DNAT against the node's address. In a namespace-wide policy, that peer would let every pod reach any public host on 443. - Tunnel. The wildcard route, DNS record and Access application already cover any
<name>.<domain>host (feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081 describes them), so a new host needs only an Ingress.
Acceptance criteria
In the gate.
-
New tests touch no cluster and no network, and they use structural tuple assertions.
-
Each new test's call phase stays under 1 s, as
uv run pytest tests/test_k8s_mattermost.py tests/test_k8s_argocd_apps.py tests/test_k8s_argocd_overrides.py tests/test_k8s_network_policies.py tests/test_k8s_push_secrets.py tests/test_third_party_telemetry.py tests/test_k8s_monitoring_alerting.py --durations=0shows. -
Namespaces.
k8s/namespaces.yamlgainsmattermost,cnpg-systemandmattermost-operator, each likeotel:- Pod Security
restrictedfor enforce, warn and audit; argocd.argoproj.io/sync-options: Prune=false,Delete=false.
- Pod Security
-
CloudNativePG.
k8s/argocd/apps/cloudnative-pg.yaml, projecthomelab-system:- chart
cloudnative-pgfromhttps://cloudnative-pg.github.io/charts, at an exact version; - values from
$values/k8s/mattermost/cloudnative-pg-values.yaml; destinationcnpg-system; syncOptions: [ServerSideApply=true], asprometheus-operator-crdshas, because single CRDs exceed the last-applied annotation (Problem);- values:
monitoring.podMonitorEnabled: trueandmonitoring.grafanaDashboard.create: true, for the operator's metrics and CloudNativePG's own dashboard; - values: restricted security contexts; requests of 50m and 128Mi; limits of 500m and 512Mi.
- chart
-
Mattermost Operator.
k8s/argocd/apps/mattermost-operator.yaml, projecthomelab-system:- chart
mattermost-operatorfromhttps://helm.mattermost.com, at an exact version, with the chart's own image tag; - values from
$values/k8s/mattermost/mattermost-operator-values.yaml: restricted top-levelpodSecurityContextandsecurityContext; syncOptions: [ServerSideApply=true], because the Mattermost CRD is within 2.7 KB of the annotation limit;- destination
mattermost-operator.
- chart
-
The operator's resources. The chart can't set them, so a
LimitRangein namespacemattermost-operator, in the root kustomization besidek8s/namespaces.yaml, gives containers default requests of 50m and 64Mi and default limits of 500m and 256Mi. A test asserts it. -
Projects.
homelab-systemgains both chart repositories, and the destinationscnpg-systemandmattermost-operator.homelabgains the destinationmattermost.test_application_projects_and_destinations(tests/test_k8s_argocd_apps.py:51) counts the two operator Applications among the system apps.
-
The Application.
k8s/argocd/apps/mattermost.yaml, projecthomelab:- one
spec.source, with pathk8s/mattermost; destinationmattermost; - the finalizer, automated prune and selfHeal, and the retry the other leaf Applications have;
syncOptions: [SkipDryRunOnMissingResource=true], so a first sync before the operators' CRDs exist doesn't exhaust its retries.k8s/mattermost/kustomization.yamllists exactlynetworkpolicy.yaml,database.yaml,files-pvc.yaml,mattermost.yamlandpodmonitor.yaml.
- one
-
Database (
database.yaml): a CloudNativePGClusternamedmattermost-db, with:- one instance;
imageNamepinned toghcr.io/cloudnative-pg/postgresql:<major>.<minor>, major 17;- 10Gi on
local-path; bootstrap.initdbcreating databasemattermost, owned bymattermost, from Secretmattermost-db;- superuser access off (the default, asserted);
- requests of 100m and 256Mi; limits of 1 CPU and 1Gi;
- the annotation
argocd.argoproj.io/sync-options: Prune=false,Delete=false; - no
monitoring.enablePodMonitor, which CloudNativePG deprecated. Instead,podmonitor.yamlselectscnpg.io/cluster: mattermost-dbon portmetrics.
-
Files (
files-pvc.yaml): claimmattermost-files, 10Gi, ReadWriteOnce, onlocal-path, annotatedPrune=false,Delete=false. -
Mattermost (
mattermost.yaml): aninstallation.mattermost.com/v1beta1Mattermostnamedmattermost, annotatedPrune=false,Delete=false.image: mattermost/mattermost-team-edition, withversionpinned to an exact 11.7 patch.- One replica, and
deploymentTemplate.deploymentStrategyType: Recreate. database.external.secret: mattermost-db. That Secret has noDB_CONNECTION_CHECK_URL, so no init container is added.fileStore.externalVolume.volumeClaimName: mattermost-files.ingress:- enabled, with host
mattermost.example.comandingressClass: traefik; - the annotation
traefik.ingress.kubernetes.io/router.entrypoints: web, as ink8s/ingress/ingress-routes.yaml; - no
tlsSecret.
- enabled, with host
podTemplatesecurity contexts:- non-root, as the image's own user and group 2000, with
fsGroup2000; - RuntimeDefault seccomp, no privilege escalation, all capabilities dropped;
- a writable root filesystem, because Mattermost unpacks its bundled plugins at start.
- non-root, as the image's own user and group 2000, with
scheduling.resources: requests of 100m and 512Mi; limits of 2 CPU and 2Gi.mattermostEnvhas exactly these entries, each asserted:MM_LOGSETTINGS_ENABLEDIAGNOSTICS=falseandMM_SERVICESETTINGS_ENABLESECURITYFIXALERT=false: telemetry and the update check. They are asserted intests/test_third_party_telemetry.py.MM_PLUGINSETTINGS_ENABLEUPLOADS=false,MM_METRICSSETTINGS_ENABLE=falseandMM_CLUSTERSETTINGS_ENABLE=false, which replace the Operator's defaults.MM_FILESETTINGS_MAXFILESIZE=99000000. Cloudflare's 100 MB limit applies to the whole multipart request, so a file at exactly 100 MB would get a 413 at the edge before Mattermost sees it. The test's comment says so.MM_TEAMSETTINGS_ENABLEOPENSERVER=false.MM_LOGSETTINGS_ENABLEFILE=false, so logs go only to stdout, which Alloy ships to Loki.MM_SERVICESETTINGS_ENABLELOCALMODE=true, sommctl --localworks throughkubectl execand nowhere else.MM_EMAILSETTINGS_SENDPUSHNOTIFICATIONSandMM_PLUGINSETTINGS_ENABLEREMOTEMARKETPLACE, set as the owner decides (Key questions).
-
The host at deploy time.
_host_fieldsalso reads aMattermostobject's/spec/ingress/host, and each of its/spec/ingress/hosts/<i>/hostName.CONST_K8S_ARGOCD_HOMELAB_APPLICATIONSgainsmattermost, andCONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK["chat"]is("mattermost",).- The
ignoreDifferencesincluster.yamlgainsmattermost, astest_the_app_of_apps_keeps_the_hosts_deploy_stack_sets_on_the_homelab_applicationsrequires. - Checked in
tests/test_k8s_argocd_overrides.py:host_patchesoverkubectl kustomize k8s/mattermostgives one patch, for theMattermostobject. It tests/spec/ingress/host, then replaces it withmattermost.<configured domain>.
-
Derived entries and Secret types in the push table. These are new table features that feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392 and feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393 reuse.
- A derived entry's value is built from other values of the same push, and never stored on its own.
--planshows it asderived, and--dry-runas<placeholder>. - A row may name its Secret type; it defaults to
Opaque. - The in-cluster base URL
http://mattermost.mattermost.svc.cluster.local:8065is one constant insrc/devops_cli/config/constants.py.
- A derived entry's value is built from other values of the same push, and never stored on its own.
-
The database Secret. The push table gains
mattermost/mattermost-db, stackchat, of typekubernetes.io/basic-auth, with no restart target:usernamecomes from the literalmattermost.passwordcomes from the keyring-only keymattermost_db_password. It is adopted from the live Secret, or else generated withtoken_urlsafe(32).DB_CONNECTION_STRINGis derived from those two:postgres://<masked-user>:<masked-password>@mattermost-db-rw.mattermost.svc.cluster.local:5432/mattermost?sslmode=require&connect_timeout=10. Both credentials are quoted withurllib.parse.quote(..., safe="").- It restarts nothing: the first push happens before either reader can start, and rotation is out of scope (Key questions). So the restart guard needs no change.
- Tests check that:
- the DSN parses back with
urllib.parse.urlsplitto the same user, password, host and database; - the pushed manifest has type
kubernetes.io/basic-auth; keyring_only_keys()includes the new key;- the
homelabproject ignores the Secret as an orphan.
- the DSN parses back with
-
The
chatstack.VALID_STACKSandallgainchat._HELM_REPOS_BY_STACK["chat"]holds both chart repositories._HELM_RELEASES_BY_STACK["chat"]holdscloudnative-pg, thenmattermost-operator, at the Applications' versions._KUSTOMIZATIONS_BY_STACK["chat"]is(Path("mattermost"),). It is applied after both releases, because it needs their CRDs.- On an Argo CD-managed cluster,
--stack chatpushesmattermost/mattermost-dband sets themattermostApplication's host, as--stack devopsdoes for its own. deploy-stack --stack chat --dry-runlists the releases, the kustomization, the Secret's key names and the host patch, and it makes no request.
-
Perimeter.
k8s/mattermost/networkpolicy.yamlholds two policies, andmattermostjoinsTARGET_NAMESPACES(tests/test_k8s_network_policies.py:16).-
mattermost-default-perimeterselects every pod in the namespace. It admits:- Traefik's pods, on 8065, with the namespace and pod selectors in one peer, as in
k8s/devops/roadmap-service/networkpolicy.yaml:15-25; - pods in
mattermost; - namespace
cnpg-system, on 8000 and 5432, as CloudNativePG's "Networking" page asks; - namespace
monitoring, on 9187.
Its egress allows DNS and pods in
mattermost, and nothing else. - Traefik's pods, on 8065, with the namespace and pod selectors in one peer, as in
-
mattermost-db-apiselects onlycnpg.io/cluster: mattermost-db, which covers the instance pods and CloudNativePG's bootstrap and join Jobs. It allows egress to the Kubernetes API on 443 and 6443, which the instance manager needs, in the shape ofk8s/monitoring/networkpolicy.yaml:79-101. -
A test asserts that no policy with an
ipBlockegress peer selects a pod labelledapp: mattermost. -
No ingress peer is an
ipBlock(k8s/README.md:147). -
The monitoring perimeter gains egress to
mattermoston 9187, and tocnpg-systemon the operator's metrics port.
-
-
Alerts. Two rules in
prometheus-values.yaml, each withfor, a severity and annotations. Their series joinSERVED_SERIES(tests/test_k8s_monitoring_alerting.py:31-75), each with what serves it.MattermostUnavailable(warning):kube_deployment_status_replicas_available{namespace="mattermost", deployment="mattermost"} < 1for 10m.MattermostDatabaseDown(warning):max(cnpg_collector_up{namespace="mattermost"}) < 1 or absent(cnpg_collector_up{namespace="mattermost"})for 5m, so a database pod that is gone or never scheduled fires too.
-
Ownership and data safety in the gate.
test_rendered_raw_objects_single_ownership(tests/test_k8s_argocd_apps.py:211) andtest_namespace_and_pvc_data_safetyboth buildk8s/mattermost. The data-safety test also checksClusterandMattermostobjects. -
Guide. A "Mattermost" section in
k8s/README.mdcovers:- what runs where, and the in-cluster and tunnel addresses. The tunnel diagram gains
mattermost.<domain>. - The rollout order:
- Merge. Argo CD creates the namespaces and the objects, and the database waits for its Secret.
MattermostDatabaseDownfires until step 2. uv run devops k8s deploy-stack --stack chat --context <context>pushes the Secret and sets the host.- The owner signs up first, from the bypassed address.
- Set both PVs to Retain.
- Merge. Argo CD creates the namespaces and the objects, and the database waits for its Secret.
- creating the team and the channels
alertsanddeploys, and that every incoming webhook is created with "Lock to this channel" (feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390); - what is lost with a node, since nothing is backed up;
- the upload limit, and the mobile app's limit;
- upgrades, by changing
version. With Recreate, an upgrade means a short outage; - resetting a password without email:
kubectl -n mattermost exec deploy/mattermost -- mmctl --local user change-password <user> --password <new>.
- what runs where, and the in-cluster and tunnel addresses. The tunnel diagram gains
-
uv run devops pr check-readinesspasses. -
uv run devops cipasses within its 5-minute budget.
Pending a person, after merge, with the cluster's context, from the devcontainer:
- (a)
kubectl -n argocd get application cloudnative-pg mattermost-operator mattermostshows all three asSyncedandHealthy. - (b)
kubectl label --dry-run=server --overwrite ns mattermost cnpg-system mattermost-operator pod-security.kubernetes.io/enforce=restrictedprints no warning. - (c) The database and Mattermost are up:
kubectl -n mattermost get cluster mattermost-db -o jsonpath='{.status.phase}'printsCluster in healthy state;kubectl -n mattermost get mattermost mattermost -o jsonpath='{.status.state}'printsstable.
- (d) The data is kept:
- the
Cluster, theMattermostobject, claimmattermost-filesand namespacemattermostall carryPrune=false,Delete=false; - both bound PVs print
Retainfor.spec.persistentVolumeReclaimPolicy.
- the
- (e)
curl -s https://mattermost.<domain>/api/v4/system/pingprints"status":"OK"from the bypassed address. From a network outside the bypass, the same URL redirects to the Access login. - (f) No placeholder is left:
kubectl -n mattermost get deploy mattermost -o jsonpath='{.spec.template.spec.containers[0].env}'holdsMM_SERVICESETTINGS_SITEURLset tohttps://mattermost.<domain>;kubectl get ingress -A -o yaml | grep example.comprints nothing.
- (g) The web app stays connected for 10 minutes with no "connection lost" banner, which shows that WebSockets pass through cloudflared and Traefik.
- (h) Once the owner's account exists, a sign-up attempt in a private window finds no way to create an account.
- (i)
kubectl -n mattermost exec deploy/mattermost -- curl -s -m 5 -o /dev/null -w '%{http_code}\n' https://githubproxy.fjygbaifeng.eu.orgfails. - (j) Monitoring sees it:
cnpg_collector_up{namespace="mattermost"}is 1 in Prometheus;- CloudNativePG's dashboard shows the cluster;
- Loki has lines for
{namespace="mattermost"}.
- (k) After
kubectl -n mattermost rollout restart deploy/mattermost,kubectl -n mattermost get pods -wnever shows two Running Mattermost pods. - (l)
kubectl -n mattermost-operator get pod -o jsonpath='{.items[0].spec.containers[0].resources}'shows the LimitRange's defaults. - (m) From a phone outside the bypass, the mobile app either completes the Access login or doesn't; the result goes into the guide's mobile-app note.
Key questions
- CloudNativePG, or a plain PostgreSQL StatefulSet? Proposed: CloudNativePG.
- It is the CNCF operator that feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081 names as the maintained route to PostgreSQL.
- It brings minor-version upgrades, a metrics exporter and a dashboard. Later, its Barman Cloud plugin can bring backups.
- A StatefulSet of the
postgresimage would mean hand-written manifests with no exporter, no upgrades and no backups. - The cost: one more operator, and cluster-wide CRDs and admission webhooks.
- Team Edition on an Operator whose documented support covers only Entry and the Enterprise plans? Proposed: yes.
spec.imageis part of the Operator's API, and the Operator is open source. If an Operator release stops working with Team Edition, the fallback is to pin the last one that does, or to move to Entry within its message limit. - Where do the operators' values live? Proposed: in
k8s/mattermost/, beside what uses them. CloudNativePG moves into its own directory and theinfrastack when a second database appears. - A
chatstack inall, or only on the homelab, as feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081 proposes for Gitea? Proposed: achatstack inall, as AGENTS.md:56-58 requires. On minikube,--stack allthen also runs Mattermost and PostgreSQL, about 1 GiB more in memory requests. - Perimeters for the operator namespaces? Proposed: none in this item.
- The API server calls CloudNativePG's admission webhooks (port 9443,
failurePolicy: Fail) from the control-plane node's host network. - kube-router admits host-network traffic only to pods on the same node, and an address range would admit every pod (
k8s/README.md:147-151). - So a default-deny ingress would refuse the database's creation whenever the operator runs on another node.
- The API server calls CloudNativePG's admission webhooks (port 9443,
- A LimitRange, or an unbounded operator pod? Proposed: the LimitRange. It is the Kubernetes way to bound a pod whose chart exposes no resources, and it touches nothing else in a namespace that holds only the operator.
- Which Mattermost line? Proposed: the newest patch of the current Extended Support Release (11.7.x), moving to the next ESR when it ships. ESRs get security fixes for longer and change less often. v12.0 is still a release candidate.
- PostgreSQL 17 or 18? Proposed: 17. Mattermost's minimum is 14, and it names no maximum. 17 has had a year of releases.
- Operator chart 1.0.5 with its own image, or a newer operator image? Proposed: the chart's own, v1.25.4.
- Its CRD defines every field this item uses:
image,externalVolume,deploymentStrategyTypeandingressClass. - A newer image with an older CRD would lose any field the API server doesn't know.
- Its CRD defines every field this item uses:
- Push notifications and the remote Marketplace? Owner decision. AGENTS.md:55 asks for a person's confirmation before an agent turns off a functional web integration, and it names remote marketplace catalogs as an example.
- Proposed: push notifications off. Away from the bypassed address, the mobile app meets Access. Each notification would also go through Mattermost's hosted test proxy.
- Proposed: the Marketplace off. Bundled plugins still install, and plugin uploads are off.
- Turning either one on needs public HTTPS egress for the Mattermost pods only, in a policy of its own in the shape of
k8s/devops/networkpolicy.yaml:44-55.
- Who creates the admin? Proposed: the owner, by signing up first, right after the rollout.
- Access admits only the owner, so no one else can sign up first.
- No admin password goes through the keyring. The person keeps it.
- Rotating the database password? Proposed: out of scope. The generated password stays:
initdbsets it once, so a changed keyring value pushed with--rotatewould break the connection. A later item proves a rotation path through CloudNativePG'sspec.managed.roles, and adds the restart it needs then.
Strategic alignment
- Priority: P2. It is the base of feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390. Nothing breaks without it, but every other child waits for it.
- Value: M. Effort: L.
- Library-first:
- upstream's operators and charts;
- the Operator's own Ingress and SiteURL;
- CloudNativePG's PodMonitor shape and its dashboard;
- a Kubernetes LimitRange where the chart has no resources value;
urllib.parsefor the DSN;- no hand-written database or chat workloads beyond the two custom resources.
- Depends on: nothing.
- Blocks: feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392, feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393 and feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395. Each adds its own peer to this perimeter, and the first two reuse its derived entries.
- Related:
- feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390: the parent;
- feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081: the pattern. Gitea stays on SQLite;
- fix(k8s): argo cd takes homelab values from deploy-time overrides, and the repository holds no private or placeholder config #1290: deploy-time hosts;
- feat(k8s): Read homelab config from in-cluster Gitea, drop overrides #1291: later, the host comes from the Gitea configuration repository. Whichever lands second moves the Mattermost host there;
- feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755: PV Retain, and Prune=false and Delete=false;
- feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741: push-secrets;
- fix(k8s): deploy-stack applies the monitoring namespace perimeter #913: the monitoring perimeter;
- fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130 and refactor(k8s): the monitoring stack runs on k8s-monitoring and chart features, with no duplicate collection, dead defaults or leftovers #1128: the monitoring layout. The CloudNativePG PodMonitor goes through Alloy, consistent with fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130.
Update 2026-10-08: refinement
The chat kustomization cannot go in _KUSTOMIZATIONS_BY_STACK, applied before Secrets and charts (commands/k8s/stack_lifecycle.py:197-203); deploy-stack gains a post-Helm step, which #1367 also needs. Stack names live in three places.
-
deploy-stack --stack chat --dry-runand--stack all --dry-runselectchat.
Proposed design
Problem statement
No chat server runs in the cluster. Every integration in #1390 needs one. This issue deploys Mattermost Team Edition v11.7.x under Argo CD using the mattermost-operator chart and a CloudNativePG PostgreSQL 17 database on a protected volume. The service is at https://mattermost. through the tunnel. It adds a chat stack, derived Secret entries, and supporting manifests.
Acceptance criteria
- Criterion 1: mattermostEnv sets MM_EMAILSETTINGS_SENDPUSHNOTIFICATIONS=false and MM_PLUGINSETTINGS_ENABLEREMOTEMARKETPLACE=false.
Verification: tests/test_third_party_telemetry.py asserts both values next to the diagnostics pair. - Criterion 2: deploy-stack applies the post-Helm table after the last Helm release and before post-deploy networking.
Verification: An offline test of --stack chat records kubectl apply -k /mattermost after the Secret push and after helm upgrade of mattermost-operator. - Criterion 3: The post-Helm table's chat entry is (Path('mattermost'),) and _KUSTOMIZATIONS_BY_STACK has no chat entry.
Verification: The root k8s/kustomization.yaml does not list mattermost. - Criterion 4: Stack names live in one tuple in networking.py and _resolve_stacks derives all from it.
Verification: stack_lifecycle.py keeps no copy and every help text that lists stacks names chat. - Criterion 5: k8s/namespaces.yaml gains mattermost, cnpg-system, and mattermost-operator with restricted Pod Security and Prune=false,Delete=false.
Verification: A test asserts the three namespaces exist with the required labels and annotations. - Criterion 6: The CloudNativePG Application uses ServerSideApply=true and an exact chart version.
Verification: k8s/argocd/apps/cloudnative-pg.yaml has syncOptions with ServerSideApply=true and a pinned version. - Criterion 7: The Mattermost Operator Application uses ServerSideApply=true and an exact chart version.
Verification: k8s/argocd/apps/mattermost-operator.yaml has syncOptions with ServerSideApply=true and a pinned version. - Criterion 8: A LimitRange in mattermost-operator gives default requests of 50m/64Mi and limits of 500m/256Mi.
Verification: A test asserts the LimitRange values in the root kustomization. - Criterion 9: The mattermost Application uses SkipDryRunOnMissingResource=true and its kustomization lists exactly five files.
Verification: k8s/mattermost/kustomization.yaml lists networkpolicy.yaml, database.yaml, files-pvc.yaml, mattermost.yaml, and podmonitor.yaml. - Criterion 10: The database Cluster is named mattermost-db with PostgreSQL 17, 10Gi on local-path, and Prune=false,Delete=false.
Verification: k8s/mattermost/database.yaml has the required fields, annotation, and bootstrap.initdb from Secret . - Criterion 11: The files claim is mattermost-files, 10Gi, ReadWriteOnce, on local-path, with Prune=false,Delete=false.
Verification: k8s/mattermost/files-pvc.yaml has the required fields and annotation. - Criterion 12: The Mattermost object uses team-edition image, Recreate strategy, and all required mattermostEnv entries.
Verification: k8s/mattermost/mattermost.yaml has the required fields and tests assert each env entry by name. - Criterion 13: _host_fields reads a Mattermost object's /spec/ingress/host and CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS gains mattermost.
Verification: tests/test_k8s_argocd_overrides.py checks host_patches over kubectl kustomize k8s/mattermost gives one patch for the Mattermost object. - Criterion 14: The push table supports derived entries and named Secret types defaulting to Opaque.
Verification: A derived entry's value is built from other values, --plan shows it as derived, and --dry-run shows a placeholder. - Criterion 15: The push table gains mattermost/mattermost-db with type kubernetes.io/basic-auth and a derived DB_CONNECTION_STRING.
Verification: Tests check the DSN parses back with urllib.parse.urlsplit and the pushed manifest has type kubernetes.io/basic-auth. - Criterion 16: VALID_STACKS and all gain chat with the correct Helm repos, releases, and post-Helm entry.
Verification: deploy-stack --stack chat --dry-run lists the releases, kustomization, Secret key names, and host patch with no request. - Criterion 17: k8s/mattermost/networkpolicy.yaml holds two policies and mattermost joins TARGET_NAMESPACES.
Verification: tests/test_k8s_network_policies.py asserts the policies and no ipBlock egress peer selects a pod labelled app: mattermost. - Criterion 18: Two alert rules join SERVED_SERIES with for, severity, and annotations.
Verification: tests/test_k8s_monitoring_alerting.py asserts MattermostUnavailable and MattermostDatabaseDown. - Criterion 19: test_rendered_raw_objects_single_ownership and test_namespace_and_pvc_data_safety build k8s/mattermost.
Verification: Both tests pass and the data-safety test checks Cluster and Mattermost objects. - Criterion 20: A Mattermost section in k8s/README.md covers rollout order, data safety, and operations.
Verification: The section names the tunnel address, the four rollout steps, and the password reset command. - Criterion 21: uv run devops pr check-readiness passes.
Verification: The command exits with status 0. - Criterion 22: uv run devops ci passes within its 5-minute budget.
Verification: The CI workflow completes with all checks green.
Key questions
- CloudNativePG, or a plain PostgreSQL StatefulSet?: CloudNativePG. It is the CNCF operator named in feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081, brings minor-version upgrades, a metrics exporter, and a dashboard. A StatefulSet would mean hand-written manifests with no exporter or upgrades. (proposed)
- Team Edition on an Operator whose documented support covers only Entry and Enterprise?: Yes. spec.image is part of the Operator's API and the Operator is open source. The fallback is to pin the last compatible Operator release or move to Entry. (proposed)
- Where do the operators' values live?: In k8s/mattermost/, beside what uses them. CloudNativePG moves into its own directory and the infra stack when a second database appears. (proposed)
- A chat stack in all, or only on the homelab?: A chat stack in all, as AGENTS.md:56-58 requires a deploy-stack path included in all for every in-cluster workload. [sources: AGENTS.md]
- Perimeters for the operator namespaces?: None in this item. kube-router admits host-network traffic only to pods on the same node, and an address range would admit every pod, so a default-deny ingress would refuse database creation whenever the operator runs on another node. [sources: k8s/README.md]
- A LimitRange, or an unbounded operator pod?: The LimitRange. It is the Kubernetes way to bound a pod whose chart exposes no resources, and it touches nothing else in a namespace that holds only the operator. (proposed)
- Which Mattermost line?: The newest patch of the current Extended Support Release, 11.7.x. ESRs get security fixes for longer and change less often. v12.0 is still a release candidate. (proposed)
- PostgreSQL 17 or 18?: 17. Mattermost's minimum is 14 with no named maximum. 17 has had a year of releases. (proposed)
- Operator chart 1.0.5 with its own image, or a newer operator image?: The chart's own, v1.25.4. Its CRD defines every field this item uses. A newer image with an older CRD would lose any field the API server does not know. (proposed)
- Push notifications and the remote Marketplace?: Both off. Decision D6, owner, 2026-10-17: Mattermost push notifications and the remote Marketplace are off. Nothing in this item needs public egress. (proposed)
- Who creates the admin?: The owner, by signing up first, right after the rollout. Access admits only the owner, so no one else can sign up first. No admin password goes through the keyring. (proposed)
- Rotating the database password?: Out of scope. initdb sets the password once, so a changed keyring value pushed with --rotate would break the connection. A later item proves a rotation path through CloudNativePG's spec.managed.roles. (proposed)
Open questions
- It is the CNCF operator that feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081 names as the maintained route to PostgreSQL.
- It brings minor-version upgrades, a metrics exporter and a dashboard. Later, its Barman Cloud plugin can bring backups.
- A StatefulSet of the
postgresimage would mean hand-written manifests with no exporter, no upgrades and no backups. - The cost: one more operator, and cluster-wide CRDs and admission webhooks.
- Team Edition on an Operator whose documented support covers only Entry and the Enterprise plans? Proposed: yes.
spec.imageis part of the Operator's API, and the Operator is open source. If an Operator release stops working with Team Edition, the fallback is to pin the last one that does, or to move to Entry within its message limit. - The API server calls CloudNativePG's admission webhooks (port 9443,
failurePolicy: Fail) from the control-plane node's host network. - kube-router admits host-network traffic only to pods on the same node, and an address range would admit every pod (
k8s/README.md:147-151). - So a default-deny ingress would refuse the database's creation whenever the operator runs on another node.
- Its CRD defines every field this item uses:
image,externalVolume,deploymentStrategyTypeandingressClass. - A newer image with an older CRD would lose any field the API server doesn't know.
- Proposed: push notifications off. Away from the bypassed address, the mobile app meets Access. Each notification would also go through Mattermost's hosted test proxy.
- Proposed: the Marketplace off. Bundled plugins still install, and plugin uploads are off.
- Turning either one on needs public HTTPS egress for the Mattermost pods only, in a policy of its own in the shape of
k8s/devops/networkpolicy.yaml:44-55. - Access admits only the owner, so no one else can sign up first.
- No admin password goes through the keyring. The person keeps it.
Fit
Needs splitting into 2 items:
- PR 1: deploy-stack declares stack names once and the push table gains derived entries and Secret types (closes feat(k8s): deploy-stack declares its stack names once, and a cluster secret row can name its Secret type and hold derived entries #2008)
- PR 2: deploy the chat stack with all manifests, perimeters, alerts, and guide (closes feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391)
Suspected block
None.
Dependencies
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
It is a dependency for integrations in #1390 but is not a security fix or a blocking defect, so it is needed but not urgent.A team chat server supports collaboration and is a prerequisite for #1390's integrations, but it is not core to the project's primary function.It requires deploying the Mattermost operator, a CloudNativePG database, a ReadWriteMany volume, ingress through the Cloudflare tunnel, and working around Argo CD's last-applied annotation size limit for large CRDs.fix(roadmap): intake judges a split part a duplicate of the issue tha…
1 remaining item
dan-petty commentedon Oct 28, 2026
Refine cannot set this item to Ready at 0b76871 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
postgresimage would mean hand-written manifests with no exporter, no upgrades and no backups.spec.imageis part of the Operator's API, and the Operator is open source. If an Operator release stops working with Team Edition, the fallback is to pin the last one that does, or to move to Entry within its message limit.failurePolicy: Fail) from the control-plane node's host network.k8s/README.md:147-151).image,externalVolume,deploymentStrategyTypeandingressClass.k8s/devops/networkpolicy.yaml:44-55.feat(monitoring): the roadmap Service's identity refusals, failing an…
feat(k8s): derived push entries, Secret types, one stack list (#2618)
fix(k8s): resolve mattermost image pin and update chart test invarian…
test(k8s): cover image version combine and remove unused host entries (…