Extend permission constraint feature to support Custom Scripts #6554
gmurman770
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
A simple hack would be for the custom script itself to check your policy, and refuse to run for unauthorized users. See: https://netbox.readthedocs.io/en/stable/additional-features/custom-scripts/#accessing-request-data Of course, all scripts are still visible to all users. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, community!
Currently we can give (or not) users permissions to run Custom Scripts. And it's great!
But I think that it's a common case when you have some really dangerous scripts (that triggers serious network changes for ex.) that you don't want to share with tech support team or managers. So we definitely need to separate the access here.
The reason we can not use constraints in permissions to achieve that currently is that:
Script is a "Dummy model used to generate permissions for custom scripts. Does not exist in the database."
So currently we can not filter Custom Scripts.
But may be we can hack it some how??:)
Thanks) Have a good day everybody!
Beta Was this translation helpful? Give feedback.
All reactions