XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    netbox plugin: which rights does the user need?

    Scheduled Pinned Locked Moved Xen Orchestra
    5 Posts 3 Posters 1.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      luca steinke
      last edited by

      Hello,

      I activated the Netbox plugin as described in https://xen-orchestra.com/docs/advanced.html#netbox.

      The synchronisation works fine as long as the user which the token belongs to has "Superuser status".

      When I only give them "Staff status" and rights for custom field, cluster, cluster group, cluster type, virtual machine, interface - the synchronisation test works. However, when I try to manually sync a pool, there's an "unknown error". When I take away one of the object rights listed above, I get the following nondescript error when testing the connection:

      Code: -32000
      Message: unknown error from the peer
      

      Which permissions does XOA actually need to synchronise to netbox? This is something I'd like to have documented in https://xen-orchestra.com/docs/advanced.html#netbox.

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        We can probably provide a list of objects we are using to sync, that might be helpful.

        @pdonias will do that when he can (he's pretty busy right now)

        L 1 Reply Last reply Reply Quote 1
        • L Offline
          luca steinke @olivierlambert
          last edited by

          @olivierlambert yes, a list of objects would certainly suffice. Probably everything that #makeRequest is calling in packages/xo-server-netbox/index.js?

          pdoniasP 1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Yes, all the code related to Netbox is in there. If you have time to take a look, you'll find your answers there 🙂

            1 Reply Last reply Reply Quote 0
            • pdoniasP Offline
              pdonias Vates 🪐 XO Team @luca steinke
              last edited by

              Hi @luca-steinke, this is indeed something that we should and will document. Here are the minimum required permissions:

              View permissions on:

              • extras > custom-fields
              • ipam > prefixes

              All permissions on:

              • ipam > ip-addresses
              • virtualization > cluster-types
              • virtualization > clusters
              • virtualization > interfaces
              • virtualization > virtual-machines
              1 Reply Last reply Reply Quote 0
              • First post
                Last post