UNCLASSIFIED - NO CUI

Convert bb-common from library chart to subchart

Summary

Converts the package from consuming bb-common as a library chart to consuming it as a subchart. Istio, network policy, and route configuration now lives under the bb-common key and is validated by bb-common's own values.schema.json; the thin chart/templates/bigbang/{istio,network-policies,routes}.yaml include templates are removed and domain moves to global.domain. Rendered resources are unchanged (verified by diffing helm template output before and after).

Also folds in the Renovate updates from !241 (closed) (bb-common 1.6.1, gluon 1.1.10, kubectl v1.37) and makes the Cypress test work on Cypress 16. The bbtests.cypress.image override and the Cypress package.json/package-lock.json are removed, so the test runner uses gluon's default Cypress image:

  • Environment variables are read once in before() with cy.env(), since Cypress 16 removed Cypress.env().
  • Keycloak login and terms-acceptance selectors match by id/name regardless of element type (#kc-login, #kc-accept, button[name="accept"], input[name="accept"]), matching the authservice test.

tests/test-sso-values.yaml and the package docs are updated for the new values layout. The paired umbrella change (subchart wiring, removal of _bb-common-migrations.tpl and the mergeLegacyIstioHardenedKeys call, updated unit tests) is on the umbrella branch below.

Supersedes !241 (closed).

Relevant logs/screenshots

  • helm template with istio, network policies, and authorization policies enabled renders the same VirtualService, ServiceEntries, NetworkPolicies, PeerAuthentication, Sidecar, and AuthorizationPolicies as before the conversion.
  • Schema validation is active: --set bb-common.istio.injection=enabled is rejected with additional properties 'injection' not allowed.
  • Umbrella unit tests (unittests/packages/fortify) pass on the paired umbrella branch (8/8).
  • Local k3d clean install with the paired umbrella branch; Cypress helm test passed on gluon's default image (cypress:16.1.1), 1/1 spec passing (Fortify health > allows a user to sign in).

helm-test-fortify

Linked Issue

issue

Umbrella Branch

285-fortify-bb-common-subchart

Upgrade Notices

Big Bang values that override Fortify's istio, networkPolicies, or routes must move under a bb-common key (for example packages.fortify.values.bb-common.networkPolicies.egress.definitions.external-mysql.to). Overrides left at the old top-level paths are ignored.

  • domain moved to global.domain.
  • istio.injection removed; sidecar behaviour is derived from bb-common.istio.enabled and bb-common.istio.ambient.enabled.
  • The legacy istio.fortify.{enabled,gateways,hosts} overrides (translated by the removed umbrella _bb-common-migrations.tpl) are no longer honoured; set bb-common.routes.inbound.fortify.* instead.
  • istio.hardened.customServiceEntries / istio.hardened.customAuthorizationPolicies are no longer translated; set bb-common.istio.serviceEntries.custom / bb-common.istio.authorizationPolicies.custom directly.
  • Package-owned Cypress tests now require Cypress 16 (cy.env()).
Edited by Rob Ferguson

Merge request reports

Loading
Loading