Use pipeline PostgreSQL for Anchore CI
This MR updates the Anchore Enterprise package to upstream chart 4.1.2 / app 6.1.1.
Note: this started as a Renovate MR and the original description was inaccurate: Renovate proposed a
postgresqlchart bump and5.27.2images. Thepostgresqldependency has since been removed rather than bumped, and the images are6.1.1/6.1.0. The table below is the corrected set of changes.
| Package | Update | Change |
|---|---|---|
| bb-common | minor | 1.2.0 → 1.4.0 |
| enterprise (source) | major | 3.25.1 → 4.1.2 |
| gluon | patch | 1.1.3 → 1.1.5 |
| postgresql | removed | 18.8.0 → (dependency dropped) |
| redis (source) | major | 27.0.14-bb.0 → 28.0.2-bb.0 |
| registry1.dso.mil/ironbank/anchore/enterprise/enterprise (source) | major | 5.27.1 → 6.1.1 |
| registry1.dso.mil/ironbank/anchore/enterpriseui/enterpriseui (source) | major | 5.27.1 → 6.1.0 |
| registry1.dso.mil/ironbank/big-bang/cypress (source) | minor | 15.18.1 → 15.20.1 |
| registry1.dso.mil/ironbank/opensource/redis/redis8-slim (source) | minor | 8.8.0 → 8.10.0 |
appVersion moves 5.27.2 → 6.1.1 to match what the upstream 4.1.2 chart deploys.
⚠️ Breaking: an external PostgreSQL database is now required
This package no longer bundles a PostgreSQL subchart. Three things drove that: the upstream chart dropped its own Bitnami dependency in 4.x, Bitnami's public catalog is deprecated, and Big Bang does not support in-cluster persistence for production workloads.
Consumers must set upstream.postgresql.externalEndpoint and upstream.postgresql.auth.*.
The chart will not render until they are.
Anchore Enterprise 6.x additionally requires PostgreSQL 17 or above with pg_cron installed
and enabled, and the Anchore role must be granted access to the cron schema — CREATE EXTENSION pg_cron leaves that schema owned by the superuser, so without the grants every
service fails with permission denied for schema cron. The exact SQL is in
docs/BBCHANGES.md.
Upgrading from a release that used the bundled database is a manual data migration, done outside Helm and before the chart upgrade. Neither the upstream chart nor this package performs any database management. The procedure is documented in Migrating from the bundled PostgreSQL.
Also in this MR
upstream.preInstallJob.enabled: false. The upstream pre-install hook gates the install onanchore-enterprise-manager db pre-upgrade-check, but on 6.x that command writes all output to stdout, so the hook's stderr test always passes and it reports the database ready even when it is unreachable. Its exit code is 2 both for a healthy empty database and for a connection failure, so that cannot distinguish them either. The loop is unbounded and discards the error, so a real problem blocked the install indefinitely with no diagnostic. Resources and a container security context are still set for anyone re-enabling it.- Removed
postgresqlSuperUserandensureDbJobs, which only configured thechart/templates/bigbang/db/jobs deleted in an earlier release and had no remaining effect, andupstream.postgresql.chartEnabled, which no longer exists upstream and fails the deprecation check. - Test values only: CloudNativePG provides the database for CI. Includes
pg_croninshared_preload_libraries, thecronschema grants, and sizing (4Gi /max_connections: 400) — 1Gi caused repeated OOMKills that surfaced in every service asserver closed the connection unexpectedly, which reads as a network fault rather than a database restart. - Ambient fix: the
postgresqlnamespace carriesistio.io/dataplane-mode: none. Ambient enrollment put ztunnel in the middle of the CNPG operator's mTLS call to the instance manager on:8000, which reset it, so theClusternever reported Ready and the ambient job hung.istio.injection: disabledis the sidecar-mode opt-out and has no effect in ambient. This matches what the umbrella's owncert-managerpackage does. - Diagnostics: both the
postgresqlandanchorepackages now fail fast rather than inheritinginstall.remediation.retries: -1andupgrade.remediation.retries: 3. Failures previously consumed the whole job soafter_scriptnever ran and no pod logs were collected.
Umbrella Branch
anchore-sso
Validation
Pipeline 5541975 — all four test jobs green, with no skip-job-upgrade:
| Job | Result |
|---|---|
| default clean install | |
| ambient clean install | |
| default upgrade | |
| ambient upgrade |
The upgrade jobs deploy main (chart 3.25.1 / app 5.27.1), test, then upgrade in place to this
branch (chart 4.1.2 / app 6.1.1) and test again. They validate the chart upgrade — that the
release upgrades in place, that the removed PostgreSQL subchart's resources are pruned cleanly,
and that the services come up and pass their smoke tests. They deliberately do not exercise
the data migration, because the chart makes no data-continuity guarantee to test; a green
upgrade job is not evidence that a production migration preserves data.
Note that codex-review fails for reasons unrelated to this MR — Big Bang's AskSage account is
over its monthly token limit (30001277 out of 30000000), so both review passes return HTTP 429
without reviewing the diff. It is allow_failure, so it does not gate the pipeline.
Complete MR checklist
Assignee
- Followed upgrade instructions outlined in docs/DEVELOPMENT_MAINTENANCE.md
- Update Docs with new/updated steps as needed
- Tested and Validated Changes made with supporting info like logs or screenshots from test pipelines
Add supporting info below
See the Validation section above: pipeline 5541975, all four test jobs green.
Reviewer only
- Tested and Validated changes
Configuration
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
- If you want to rebase/retry this MR, check this box
This MR was automatically generated by Renovate Bot.
Upgrade Notices
Upgrading from Anchore Enterprise 5.x to 6.x is a database migration, not only a chart upgrade.
-
Refer to the upstream migration guide****
-
Refer to the following for any upstream values changes
-
Provision a dedicated external PostgreSQL 17+ database. This chart no longer deploys the bundled PostgreSQL database. Configure it with
addons.anchoreEnterprise.database.{host,username,password,database};portdefaults to5432. -
Take a database backup immediately before upgrading. The 6.1 schema migration is one-way; rollback requires restoring that backup and the previous chart/application version.
-
If 5.x uses the bundled database, dump and restore it into the external database before the Helm upgrade. If it already uses an external database, upgrade that database to PostgreSQL 17+.
-
Enable
pg_cronfor the Anchore database prior to upgrading. -
Remove obsolete bundled-database values:
postgresql.*,upstream.postgresql.chartEnabled,upstream.postgresql.primary.service.ports.postgresql,upstream.migrationPodImage,postgresqlSuperUser, andensureDbJobs. -
Preserve the existing admin credential by explicitly setting
upstream.anchoreConfig.default_admin_passwordor referencing the existing secret. A newly generated password will not replace the credential stored in the migrated database. -
For SSO deployments, existing Big Bang
sso.*values remain unchanged, but migrate Anchore 5-specific overrides before upgrading. I.E as an example: RemoveANCHORE_SSO_REQUIRES_EXISTING_USERSfrom anyextraEnvblock and set:upstream: anchoreConfig: user_authentication: sso_require_existing_users: trueIf internal API TLS used
upstream.anchoreConfig.internalServicesSSL.*, replace it with root or per-serviceserver.ssl_enable,ssl_cert,ssl_chain, andssl_key; certificate paths now use/home/anchore/certs. Refer to Anchores Values File Changes for the complete mapping. -
Leave
upstream.upgradeJob.enabled=true(the default) and allow enough Helm/Flux timeout for the schema migration to finish.
The chart does not move data out of the bundled PostgreSQL database automatically. See Anchore's v5.x → v6.x migration guide and Migrating from the bundled PostgreSQL for the migration procedure and rollback guidance.
Closes #297 (closed)