twistlock update to 0.27.1-bb.0
Package Merge Request
Package Changes
https://repo1.dso.mil/big-bang/product/packages/twistlock/-/blob/0.27.1-bb.0/CHANGELOG.md
Package MR
big-bang/product/packages/twistlock!332 (merged)
For Issue
Closes big-bang/product/packages/twistlock#264 (closed)
Upgrade Notices
0.27.1-bb.0 changes ServiceAccount token mounting. SAs no longer auto-mount the token by default; the init Job and defender receive it via a projected volume at the same path, so token availability is unchanged for workloads that use it. The console SA no longer carries a token (it has no consumer). Revert per SA with console.serviceAccount.automountServiceAccountToken: true (or the init / defender equivalents). The projected volume relies on the kube-root-ca.crt ConfigMap the cluster auto-creates in every namespace.
Relevant logs/screenshots
helm-unittest (helm unittest chart -f unittests/**/*_test.yaml, same invocation as the pipeline job):
PASS test console deployment extraEnv chart/unittests/console_deployment_test.yaml
PASS test defender-only deployment mode chart/unittests/defender_only_test.yaml
PASS test metrics user secret persistence chart/unittests/metrics_secret_test.yaml
PASS service account token hardening chart/unittests/sa_hardening_test.yaml
Charts: 1 passed, 1 total
Test Suites: 4 passed, 4 total
Tests: 21 passed, 21 totalbats (BATS_LIB_PATH=/opt/lib bats chart/tests/twistlock-defenders-hardening.bats):
1..3
ok 1 SA automount is set false in the applied manifest
ok 2 DaemonSet gets the projected token volume
ok 3 defender container gets the token mount at the standard path