Convert mattermost to bb-common subchart
General MR
Summary
Convert Mattermost from bb-common library includes to a subchart, moving networking values beneath bb-common and updating package resources, tests, version, generated documentation, and migration guidance.
Use the existing Istio enabled and ambient-mode values to select sidecar behavior. Render the gossip Service only in sidecar mode. Let the package configure its ServiceMonitor for strict sidecar mTLS, with existing user scrape overrides preserved.
Paired operator MR: mattermost-operator!164 (merged) Companion umbrella MR: big-bang/bigbang!8395 (merged)
The package's Cypress runner now extends the image configuration to disable Chrome background/Autofill traffic and enforce configured blockHosts for native browser requests. It preserves reporting/artifact hooks and existing browser options.
Relevant logs/screenshots
helm lint chart: passed. All 37 Helm unit tests and five Node browser-configuration tests passed.- Dedicated AWS K3D validation deployed commit
a34910fwith the paired operator and umbrella branches. All 15 HelmReleases reached Ready. Mattermost's login/chat and file-storage Cypress checks passed (2/2), with test artifacts preserved. Kibana and Podinfo browser tests also passed (1/1 each). - Live Chrome process arguments confirmed background/Autofill controls and configured native DNS blocks. Raw test sidecar BlackHoleCluster records: 78 before, 0 after. Live application logs contained none of the reported SMTP/STUN errors with the umbrella CI fixture.
- Runtime test report and captured evidence, including actual Pod exit statuses, operator Events, browser arguments, release revisions, and retained findings.
- Same-policy full scan: 0 high findings; four retained warnings are explained in umbrella MR !8395. The separate five-minute scan had no active findings.
- Pipeline 5774325 is running the final commit, including default and SSO clean-install/upgrade checks.
- Commits are signed and contain no co-author trailers.
Umbrella Branch
akesterson/bb-common-subchart
Linked Issue
Closes #303 (closed)
Upgrade Notices
Big Bang values that override Mattermost's Istio networking, networkPolicies, or routes must move under packages.mattermost.values.bb-common.
Remove the retired istio.injection setting. An enabled mesh with bb-common.istio.ambient.enabled: false uses sidecar mode; ambient.enabled: true selects ambient mode. Gossip and ServiceMonitor behavior derive from these existing settings. This follows package-maintainer guidance and requires no bb-common schema change or replacement gossip toggle.
For strict sidecar mTLS, the ServiceMonitor defaults to HTTPS using /etc/prom-certs/root-cert.pem, /etc/prom-certs/cert-chain.pem, and /etc/prom-certs/key.pem. Ambient mode, a disabled mesh, and permissive mTLS default to HTTP without sidecar certificates. The existing monitoring.serviceMonitor.scheme and tlsConfig overrides remain supported; the scheme default is now empty to select the mode-appropriate default.
Replace legacy istio.chat.enabled, hosts, and gateways with bb-common.routes.inbound.chat settings. Replace legacy istio.hardened settings with supported bb-common.istio configuration. The package-specific hardened-key adapters and _bb-common-migrations.tpl files are removed; configure networkPolicies.egress.definitions.kubeAPI explicitly instead of relying on controlPlaneCidr / vpcCidr translation.
Standalone Mattermost installs must use global.domain for the default chat route and configure bb-common.routes.outbound.sso.hosts for custom identity providers. Route host templates use bb-common scope.
Hold the paired package MRs and umbrella MR in draft until the final Big Bang 3.x release ships. Release compatible package charts and replace temporary branch pins before merging the umbrella change.