-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Closed as not planned
Copy link
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
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."}
cah-william-parsley
Metadata
Metadata
Assignees
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application