mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-17 20:19:55 +00:00
- Switch header literals to the headerNetBirdUser / headerNetBirdGroups constants so a future rename can't silently desync tests. - Add GroupsOnlyWhenEmailEmpty: unattached tunnel peer (machine agent) case — groups must still be stamped while X-NetBird-User stays unset. - Add EmailOnlyWhenGroupsEmpty: symmetric case for users without resolved group memberships. - Add CapturedDataPresentButEmpty: client-supplied headers are stripped even when CapturedData carries no identity fields. - Extend the group-id fallback test to also exercise an explicit empty-string entry in userGroupNames (not just a shorter slice).