mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 12:43:32 +09:00
Self-review fix: the Role granted `["get", "patch"]` on the OIDC kubeconfig Secret, but the bootstrap Job script never issues `kubectl get` against the management apiserver — it only `kubectl patch`es the pre-rendered Secret. The tenant-side `kubectl get clusterrolebindings` uses the mounted admin kubeconfig, which is a separate trust path. Tightens the SA's permission surface to exactly what the script uses. Signed-off-by: Ivan Okhotnikov <ivan.okhotnikov@aenix.io>
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