You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have this capability built into controller-runtime as it would make it possible to have this functionality without a dependency to an additional project and a sidecar container.
Is there interest in the controller-runtime community to support the nonResourceURL-based authorization (like core Kubernetes components)?
Notes:
Not sure how other projects are handling this but in cluster-api we removed kube-rbac-proxy after a few lengthy disussions (I think main reason was that it's not community-owned, xref: ⚠️ Remove kube-rbac-proxy and expose metrics on localhost:8080 cluster-api#4640). Since then metrics are basically disabled per default in Cluster API since we also didn't want to expose them unauthorized per default for security reasons.
~ related the metrics endpoint should also be served on https instead of http (with the same cert as the webhook?)
Not sure if other endpoints should be protected as well, but /metrics would be the most important one for us.
@sbueringer in general doing that seems ok to me but I also do not have a super precise picture of how much complexity this actually entails. From a cursory look at kube-rbac-proxy, most of the logic here can be imported from upstream?
Activity
sbueringer commentedon Nov 28, 2022
cc @alvaroaleman @joelanford @vincepri What do you think about it?
cc @fabriziopandini @killianmuldoon (given our recent discussions about metrics in Cluster API)
alvaroaleman commentedon Dec 4, 2022
@sbueringer in general doing that seems ok to me but I also do not have a super precise picture of how much complexity this actually entails. From a cursory look at kube-rbac-proxy, most of the logic here can be imported from upstream?
sbueringer commentedon Jan 20, 2023
Probably.
I'll try to get back to this as soon as I have time and implement a prototype or something so we have more data to decide this.
k8s-triage-robot commentedon Apr 20, 2023
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/staleis appliedlifecycle/stalewas applied,lifecycle/rottenis appliedlifecycle/rottenwas applied, the issue is closedYou can:
/remove-lifecycle stale/closePlease send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
sbueringer commentedon Apr 20, 2023
/remove-lifecycle stale
sbueringer commentedon Jun 6, 2023
/assign