-
Notifications
You must be signed in to change notification settings - Fork 89
Description
Describe the problem
Judging by this comment, the display of the peer owner should work, but it does not.
netbirdio/netbird#3537
Although judging by the code, it should.
Here, a check is made for the match of the user.id and the peer.user_id from the peer, and after that the peer should show the owner in UI.
https://github.com/netbirdio/dashboard/blob/main/src/app/(dashboard)/peers/page.tsx#L44
https://github.com/netbirdio/dashboard/blob/main/src/contexts/PeersProvider.tsx#L16
https://github.com/netbirdio/dashboard/blob/main/src/contexts/UsersProvider.tsx#L20
To Reproduce
Steps to reproduce the behavior:
- Open UI and see that peers have no owner
Expected behavior
Should work
Are you using NetBird Cloud?
No
NetBird version
0.38.2
Screenshots
/peers
{
"accessible_peers_count": 0,
"approval_required": false,
"city_name": "xxx",
"connected": true,
"connection_ip": "xxx",
"country_code": "xxx",
"dns_label": "macbook-pro.netbird.selfhosted",
"extra_dns_labels": [],
"geoname_id": "xxx",
"groups": [
{
"id": "xxx",
"name": "All",
"peers_count": 3,
"resources_count": 0
}
],
"hostname": "MacBook-Pro.local",
"id": "xxx",
"inactivity_expiration_enabled": true,
"ip": "xxx",
"kernel_version": "24.3.0",
"last_login": "2025-03-21T10:12:18.479683429Z",
"last_seen": "2025-03-21T10:50:02.130525774Z",
"login_expiration_enabled": true,
"login_expired": false,
"name": "MacBook-Pro.local",
"os": "Darwin 15.3.1",
"serial_number": "xxx",
"ssh_enabled": false,
"ui_version": "netbird-desktop-ui/0.38.2",
"user_id": "vladislav.xxx@xxx",
"version": "0.38.2"
}/users
[
{
"auto_groups": [
"xxx",
],
"email": "",
"id": "vladislav.xxx@xxxx",
"is_blocked": false,
"is_current": true,
"is_service_user": false,
"issued": "api",
"last_login": "2025-03-21T10:12:18.479683429Z",
"name": "",
"permissions": {
"dashboard_view": "full"
},
"role": "owner",
"status": "active"
}
]As can be seen from the queries above, the user_id and id match (I have hidden some personal information).

