Skip to content

Feature/k8s auth proxy#91

Open
shyam0904a wants to merge 3 commits intonetbirdio:mainfrom
shyam0904a:feature/k8s-auth-proxy
Open

Feature/k8s auth proxy#91
shyam0904a wants to merge 3 commits intonetbirdio:mainfrom
shyam0904a:feature/k8s-auth-proxy

Conversation

@shyam0904a
Copy link
Copy Markdown

@shyam0904a shyam0904a commented Dec 19, 2025

Description

Add Kubernetes API Auth Proxy feature that provides identity-aware access to the Kubernetes API through NetBird.

New files:

  • cmd/auth-proxy/main.go: Auth proxy binary with embedded NetBird client
  • Dockerfile.auth-proxy: Multi-arch container build
  • helm/kubernetes-operator/templates/auth-proxy-*.yaml: Helm templates for deployment, RBAC, and secret

Configuration (values.yaml):

  • authProxy.enabled: Enable/disable the auth proxy
  • authProxy.setupKey: NetBird setup key for the proxy peer
  • authProxy.hostname: Peer hostname in NetBird network
  • authProxy.dnsDomain: NetBird DNS domain for TLS cert
  • authProxy.managementURL: NetBird management server URL

Requires: netbird with client/embed package support

shyam0904a and others added 3 commits December 19, 2025 23:37
This adds a Kubernetes API authentication proxy that:
- Embeds the NetBird client to join the mesh network
- Authenticates incoming requests using WhoIs peer identity lookup
- Maps NetBird user/groups to Kubernetes impersonation headers
- Provides identity-aware RBAC for kubectl access through NetBird

New files:
- cmd/auth-proxy/main.go: Auth proxy binary with embedded NetBird client
- Dockerfile.auth-proxy: Multi-arch container build
- helm/kubernetes-operator/templates/auth-proxy-*.yaml: Helm templates

Configuration (values.yaml):
- authProxy.enabled: Enable/disable the auth proxy
- authProxy.setupKey: NetBird setup key for the proxy peer
- authProxy.hostname: Peer hostname in NetBird network
- authProxy.dnsDomain: NetBird DNS domain for TLS cert generation
- authProxy.managementURL: NetBird management server URL

RBAC:
- ClusterRole with impersonate permissions for users, groups, serviceaccounts
- Dedicated ServiceAccount for the auth proxy

Requires: netbird with client/embed package support
@Wouter0100
Copy link
Copy Markdown

This seems like a feature we'd love, love, love to use! Any idea when it might be merged & released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants