Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a custom permission action for rendering configuration templates #16681

Open
jeremystretch opened this issue Jun 21, 2024 · 1 comment
Labels
status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application

Comments

@jeremystretch
Copy link
Member

NetBox version

v4.0.5

Feature type

Change to existing functionality

Proposed functionality

Rendering a configuration template for a device or virtual machine will require a new custom permission action, render_config.

Currently, rendering a configuration template via the UI does not require any permissions beyond view for the relevant object type (e.g. dcim.view_device). However, rendering a configuration template via the REST API currently requires the add permission (e.g. dcim.add_device). While the requirement for write permission makes sense for API calls (because we're accepting and processing arbitrary user data), the specific permission for creating devices does not and has been captured as a bug in #14634.

Use case

This new permission action can be used to allow config rendering via the REST API without needing to grant users permission to create new devices/VMs.

Database changes

None

External dependencies

None

@jeremystretch jeremystretch added type: feature Introduction of new functionality to the application status: under review Further discussion is needed to determine this issue's scope and/or implementation labels Jun 21, 2024
@jeremystretch
Copy link
Member Author

Tagging #14400 as related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

1 participant