Open mas-who opened 1 week ago
@markylaing is this a bug?
@mas-who which LXD version please
@mas-who which LXD version please
@tomponline I tested this with LXD snap for both latest/edge
and 5.21/edge
channels. Also added to the issue description.
@mas-who which LXD version please
@tomponline I tested this with LXD snap for both
latest/edge
and5.21/edge
channels. Also added to the issue description.
Please can you provide output of snap list
so we can see specific version (please make that a default habit for opening issues too).
@mas-who which LXD version please
@tomponline I tested this with LXD snap for both
latest/edge
and5.21/edge
channels. Also added to the issue description.Please can you provide output of
snap list
so we can see specific version (please make that a default habit for opening issues too).
Sure will make sure to include this in the future, here's the snap list
output:
Name Version Rev Tracking Publisher Notes
bare 1.0 5 latest/stable canonical✓ base
code 4849ca9b 168 latest/stable vscode✓ classic
core 16-2.61.4-20240607 17200 latest/stable canonical✓ core
core18 20240612 2829 latest/stable canonical✓ base
core20 20240416 2318 latest/stable canonical✓ base
core22 20240823 1612 latest/stable canonical✓ base
core24 20240710 490 latest/stable canonical✓ base
firefox 130.0-2 4848 latest/stable/… mozilla✓ -
gnome-3-34-1804 0+git.3556cb3 93 latest/stable canonical✓ -
gnome-3-38-2004 0+git.efb213a 143 latest/stable/… canonical✓ -
gnome-42-2204 0+git.510a601 176 latest/stable/… canonical✓ -
gtk-common-themes 0.1-81-g442e511 1535 latest/stable/… canonical✓ -
konf 0+git.129ff3c 50 latest/stable canonicalwebteam -
kubectl 1.14.10 1377 1.14/stable canonical✓ classic
lxd git-c6d9159 30228 latest/edge canonical✓ -
microceph 0+git.7b5672b 707 quincy/stable canonical✓ held
microcloud 1.1-04a1c49 734 latest/stable canonical✓ -
microovn 22.03.3+snap0e23a0e4f5 395 22.03/stable canonical✓ -
parca-agent 0.30.0 1763 latest/stable parca-team✓ classic
rockcraft 1.5.3 2218 latest/stable canonical✓ classic
slack 4.39.95 158 latest/stable slack✓ -
snap-store 41.3-77-g7dc86c8 1113 latest/stable/… canonical✓ -
snapd 2.63 21759 latest/stable canonical✓ snapd
snapd-desktop-integration 0.9 178 latest/stable/… canonical✓ -
yq v4.44.2 2566 latest/stable mikefarah -
Thanks for reporting @mas-who. @tomponline yes this is a bug, we've documented that admin
on server
should grant the equivalent of unix socket access.
The reason for this is that the OpenFGA driver relies on the database, but these networks are not in the database! It's an edge case that I should have thought about.
I think we should add a new entitlement to server
, called can_view_host_networks
, which will grant the identity permission to view these networks and will be granted automatically if they have admin
.
Issue description
When making an API request to
GET /1.0/networks
as a TLS authenticated identity, all networks are reported by LXD in the response as shown in the example below:However, when making the same request as an OIDC authenticated identity, with server admin entitlement assigned, the API response shows only the LXD managed networks as shown below.
Since the OIDC identity has server admin entitlement, I would expect to see all networks shown within the API response. This seems like a possible bug in permissions check specifically related to networks.
The above behaviour was seen in the
latest/edge
and5.21/edge
LXD snap.