gardener / gardener-extension-shoot-dns-service

Gardener extension controller for DNS services for shoot clusters.
https://gardener.cloud
Apache License 2.0
8 stars 35 forks source link

Restrict admission controller permissions #280

Closed timuthy closed 10 months ago

timuthy commented 10 months ago

How to categorize this PR?

/area security /kind enhancement

What this PR does / why we need it: This change is mostly relevant for deployments without a virtual Garden cluster: In this case, the admission controller needed cluster-wide list/watch permissions for secrets. Restricting the cache to the --webhook-config-namespace namespace eliminates this requirement.

Special notes for your reviewer: /cc @ialidzhikov thanks for noticing.

Release note:

The requirement for the admission controller to need cluster-wide read permissions for secrets has been dropped.