On-Demand Workspaces via Flux Operator with Granular RDP/SSH & Kubeconfig Access #348
suse-coder
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Before posting
Product area
Kubernetes / Operator
Problem or use case
As a Platform Engineer / IT Administrator,
I want to offer developers a self-service, one-click portal within the NetBird UI to spin up secure, ephemeral workspaces (Kubernetes Pods or KubeVirt VMs) that are instantly connected to the NetBird network, while maintaining strict control over cloud costs and data exfiltration.
Because currently, managing remote developer environments requires stringing together multiple disconnected tools. While Coder provides a great workspace paradigm, it relies heavily on Terraform to orchestrate resources. Managing Terraform state and external providers inside a strictly declarative, API-managed environment like Talos Kubernetes is overly complex. Furthermore, giving developers self-service access to compute (especially AI/GPU nodes or full KubeVirt VMs) often leads to runaway cloud costs if there is no built-in way to enforce quotas, track runtime credits, or restrict expensive templates to specific user groups.
Proposed solution
We propose integrating a Workspace Management Engine within NetBird. However, instead of utilizing Terraform (like Coder), NetBird should use the Kubernetes-native Flux CD / Flux Operator with ResourceSets. This engine will feature robust resource governance, template access control, and a credit-based tracking system.
1. Flux-Powered Workspace Provisioning (UI & Engine)
ResourceSetdefinition must automatically enforce strict isolation (e.g., via generated NetworkPolicies). The workspace pod is restricted so it cannot communicate with other pods in the cluster (no east-west pod-to-pod traffic). All network access is strictly forced through the secure NetBird client interface..inputsschema from the FluxResourceSetand automatically generates a form in the UI for the user (e.g., choosing CPU/RAM, choosing custom environment variables, or disk size).2. Template Access Control, Limits, and Cost Accounting (Credits)
To prevent resource abuse and manage costs, we need governance features built directly into the NetBird workspace UI:
data-sciencegroup; the "Windows VM" template is restricted toit-admins).externalsis limited to a maximum of 1 active workspace and a quota of 100 credits per month).3. Automatic Networking & Client Injection
kubeconfiginto the workspace, allowing developers to safely interact with allowed Kubernetes resources directly over NetBird.4. Granular Access & DLP Policies (RDP/SSH)
Alternatives or workarounds considered
Currently, organizations have to use Coder alongside NetBird. However:
Community impact and priority
Examples from other tools or products
ResourceSetand App Definition spec to define input parameters and deployment dependencies.Security, privacy, and compatibility considerations
cliprdr) and drive/file redirection virtual channels from the IronRDP session negotiation based on the logged-in user's NetBird Group permissions.ResourceSetsis the ideal paradigm, keeping the host OS secure.Implementation ideas
ResourceSetCRD from the Flux Operator. NetBird's backend translates UI inputs into Kubernetes manifests applied via the operator.Are you willing to help?
Not at this time.
Additional context
I was talking with Jack Carter at Gitext Europe 2026 already about this idea.
All reactions