netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.74k stars 484 forks source link

Support for multiple user on single peer #2156

Open papoe opened 3 months ago

papoe commented 3 months ago

If a peer is added by an user, the peer is always linked to the same user. If you are switching the user (log out and login with another one), the peer configuration is still the same.

I would expect that if I change the user, the peer configuration will change based on the group configuration for the new user. The problem is, that a single peer (e.g. a windows workstation) can not be shared between multiple users.

Please add a support to change the user to be able to share a single peer for multiple users and access polices are working based on the user. For example user amueller is able to access file-srv-01 and file-srv-02 from the existing peer, meanwhile user meder is only allowed to access file-srv-01,

NetBird Version v0.28 even triggers an error while trying this: netbird-management-1 | 2024-06-20T07:15:13Z WARN management/server/peer.go:752: user mismatch when logging in peer cppbg01r904c73foaqog: peer user 272289022192123908, login user 272055969549123588