export templates authentication #2773

Closed
opened 2025-12-29 18:22:02 +01:00 by adam · 1 comment
Owner

Originally created by @neilfab on GitHub (Aug 4, 2019).

Environment

  • Python version: 2.7.16
  • NetBox version: v2.6.2

Export templates now require auth to view

Unauthenticated read-view used to work in v2.5.12 but since upgrading to v2.6.2 this now requires auth. Web auth works fine but this doesn't work via curl and API auth does not work.

Export Template:
[{% for device in queryset %}{% if device.status == 1 %}{"name":"{{ device.name }}","model":"{{ device.device_type.model}}","role":"{{ device.device_role.slug }}"},{% endif %}{% endfor %}{}]

Expected Behavior:
Allow unauthenticated read only view or API authentication method the same for export templates ?

Originally created by @neilfab on GitHub (Aug 4, 2019). ### Environment * Python version: 2.7.16 * NetBox version: v2.6.2 Export templates now require auth to view Unauthenticated read-view used to work in v2.5.12 but since upgrading to v2.6.2 this now requires auth. Web auth works fine but this doesn't work via curl and API auth does not work. Export Template: [{% for device in queryset %}{% if device.status == 1 %}{"name":"{{ device.name }}","model":"{{ device.device_type.model}}","role":"{{ device.device_role.slug }}"},{% endif %}{% endfor %}{}] Expected Behavior: Allow unauthenticated read only view or API authentication method the same for export templates ?
adam closed this issue 2025-12-29 18:22:02 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 5, 2019):

Please see the v2.6 release notes for information about view permissions.

@jeremystretch commented on GitHub (Aug 5, 2019): Please see the v2.6 release notes for information about view permissions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2773