UNCLASSIFIED - NO CUI

Add gateway classification banner configuration

General MR

Summary

Moves the gateway-scoped classification banner implementation into the istio-gateway package.

The initial approach added gateway banner configuration under istiod.values.classificationBanner.gateways, which meant users had to enable the feature in istiod and also know which rendered gateway workload name to target. After review, this MR makes the configuration local to each gateway chart release instead:

classificationBanner:
  enabled: true
  classificationLevel: secret
  text: SECRET
  addFooter: true
  enabledHosts:
    - app.example.mil

When enabled, the gateway chart renders a context: GATEWAY EnvoyFilter in the gateway release namespace and selects the current gateway workload by app: .Release.Name.

This preserves the existing istiod sidecar/workload-label classification banner path for classic sidecar mode. The new gateway-scoped path is intended for ingress gateway traffic, including ambient deployments where the sidecar-oriented EnvoyFilter does not apply to application workloads.

Relevant logs/screenshots

Local validation:

helm unittest . -f 'unittests/**/*_test.yaml'
# PASS: 1 suite, 3 tests

helm lint ./chart
# 1 chart(s) linted, 0 chart(s) failed

helm lint ./chart \
  --set classificationBanner.enabled=true \
  --set classificationBanner.classificationLevel=secret \
  --set classificationBanner.text=SECRET \
  --set classificationBanner.addFooter=true \
  --set 'classificationBanner.enabledHosts[0]=app.example.mil'
# 1 chart(s) linted, 0 chart(s) failed

helm template public-ingressgateway ./chart \
  --namespace istio-gateway \
  --show-only templates/bigbang/istio/envoy-filters/classification-banner.yaml \
  --set classificationBanner.enabled=true \
  --set classificationBanner.classificationLevel=secret \
  --set classificationBanner.text=SECRET \
  --set classificationBanner.addFooter=true \
  --set 'classificationBanner.enabledHosts[0]=app.example.mil'
# Rendered EnvoyFilter classification-banner-public-ingressgateway in namespace istio-gateway
# with workloadSelector.labels.app: public-ingressgateway and match.context: GATEWAY

Linked Issue

Closes istiod#76 (closed)

Upgrade Notices

N/A

Edited by Dax McDonald

Merge request reports

Loading
Loading