mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 14:42:05 +09:00
The dashboard-resourcemap template was using an OR condition that also enabled the external-bootstrap Role entry when tls.enabled=true with external=false. This violates least-privilege: the external listener is only created when external=true (matching kafka.yaml), so RBAC for it must follow the same gate. Simplify $showExternal to .Values.external | default false and update the test to assert the external-bootstrap entry is absent when external=false, regardless of tls.enabled. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Arsolitt <arsolitt@gmail.com>
How to test packages local
cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd