Closed as not planned
Closed as not planned
Description
Deployment Type
Self-hosted
NetBox Version
v3.6.8
Python Version
3.10
Steps to Reproduce
- Create a User with View Permissions to all Object Types
- Create a API key for this User with out
Wrire Enabled
- Create a Device (No configured render config is needed to trigger this bug)
- Try to use the dcim_devices_render_config_create API Endpoint with the created API key / user
Expected Behavior
The User with Read Access to the Device should be able to get the render config from the API. As there is no config set a No config template found for this device
error is expected.
user@host:~$ curl -H 'Authorization: Token <YOURTOKEN>' https://netbox/api/dcim/devices/<ID>/render-config/
{"error":"No config template found for this device."}
Observed Behavior
The User with Read Access to the Device has no permission to access the render config from the API.
user@host:~$ curl -H 'Authorization: Token <YOURTOKEN>' https://netbox/api/dcim/devices/<ID>/render-config/
{"detail":"You do not have permission to perform this action."}
If the user is granted add permissions on the DCIM > Device
Object Types and the API Token is set to Write Enabled
the access works as expected.
user@host:~$ curl -H 'Authorization: Token <YOURTOKEN>' https://netbox/api/dcim/devices/<ID>/render-config/
{"error":"No config template found for this device."}