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
backend: serviceproxy: helm: server: Add cluster service proxy, helm user verification (#3532)
This commit introduces the in-cluster service proxy feature, tightens auth/verification for Helm installs, and simplifies backend token handling.
- Add new serviceproxy package (handler, service, connection, http) to proxy requests to in-cluster Services
- Implements ServiceConnection, HTTP GET helper, service discovery and URL prefix generation
- Adds comprehensive unit tests for handler, service, connection and http helpers
- Registers route: /clusters/{clusterName}/serviceproxy/{namespace}/{name}?request={request}
- Disables response caching for proxied responses and supports auth token from cookie or Authorization header
- Propagate auth tokens into cluster requests:
- Pull token from cookie into Authorization header when missing
- Set context.AuthInfo.Token when Authorization bearer token present (used by Helm handlers)
- Helm changes:
- Add VerifyUser() to perform a whoami-style check (SelfSubjectReview) to ensure minimal privileges before installs
- Integrate VerifyUser into install flow and clean up installRelease (streamline error handling)
- Add tests for VerifyUser
- Misc:
- Add tests and small fixes in headlamp server tests to exercise new service proxy behavior
Co-authored-by: Murali Annamneni <[email protected]>
Co-authored-by: vrushah <[email protected]>
0 commit comments