Permission inheritance from site to device related items #14070
Replies: 4 comments
-
Interface is not directly related to Site, but an Interface is always linked to a Device. Therefore for Interface, you should be able to constrain access by Doing this for IP Address though is very difficult. A Prefix can be linked to a Site, and/or to a VLAN which may also be linked to a Site, and that's fine. However, an IP Address is not linked directly to a parent prefix in the ORM: it's implicit that it falls within the block of one or more ancestor prefixes, and AFAICS there is no ORM object accessor to locate an address' parent prefix. There is a parent filter, but I think this only works if you are starting with a list of IP Addresses, and want to filter it down to only those with a specific parent. If the IP address has been assigned to an interface then you may be able to do It might be possible use tags. If you explicitly tag every object with one or more tags, you can have user permissions that allow access to certain tags. But then, you have to worry about creating new objects with the right tags, and users not being able to modify these access control tags. In the end, I think Netbox's access control mechanisms are not flexible enough to do what you require of them. If you need strong isolation between users, it may require setting up separate Netbox instances for them (in this case, a separate Netbox instance per site).
You just open the device, and there are tabs for the related objects. E.g. the Interfaces tab shows interfaces, cables connected to those interfaces, and IP addresses assigned to those interfaces. |
Beta Was this translation helpful? Give feedback.
-
Thank you @candlerb for talking the time to replay. I was unaware of the reverse tree that can be use. I found I hard to find that reverse tree that can be used, and miss a overview, with all the options for
As it will be fun to make 50*10-20 sets for different Sites and subsystems. Our first roles set for permissions.Global_view
${Site}-001_Site_Gobal
${Site}_002_tenant
${Site}_003_device__site
${Site}-004_DCIM-device
${Site}-005_device-interface
${Site}-006-Tenants-admin
${Site}-006-Tenants-admin
${Site}-007-Vlan-group
|
Beta Was this translation helpful? Give feedback.
-
Most of these are accessors on model objects in the Django ORM. You can explore the Django data model interactively with nbshell. (I think you should be wary of using
Doesn't look like it (Netbox 3.6.4) It might be possible via REST API, and/or via the Django ORM (e.g. custom script)
No, and it's unclear what In the documentation you'll see that only
It will indeed. |
Beta Was this translation helpful? Give feedback.
-
Do you have example of how I can show the full list of filters for example,
All site like
I would use it is part of group "SiteA Global", and group "SiteA Global" has a variable named |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have problem understanding if there is inheritance for related items, and how to use it.
Topology
What we typing to archive
If give a group permission to view in Site:
{"name__icontains":"A"}
and Device, Location, Rack, Prefix, VLAN Group, VLAN{"site__name__icontains":"A"}
, the group should be able to view related objects to the Site.How are we able use inheritance in search?
To be able to show related items to:
like for
Interface
I the GUI I can search with filter:
but with permissions is not a options:
Beta Was this translation helpful? Give feedback.
All reactions