-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Extend customvalidators with user request information #14279
Comments
some examples of integrations that right now don't have vrf support so it would be great to be able to exclude the related user from an rfc1918 validator |
Thanks! I support that and suggest extending the concept to the new |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide. |
Historically this has not been possible as custom validators are processed via the Also, the |
NetBox version
v.3.6.5
Feature type
Change to existing functionality
Proposed functionality
Extend customvalidators with an additional variable - request user details
Use case
It would be great it customvalidators had a way to check what users are making the request. in some situations, it can make sense to allow one user/usergroup/API integration the ability to skip a specific validation.
for example we wish to use an ipaddress validator to make sure rfc 1918 ip's don't end up in the global vrf, however there is one particular api integration that is going to take quite awhile to update to support vrf lookup's, in the meantime we want to stop any other rfc 1918 ip's getting added to the global vrf. being able to write the validator with an exclusion for a particular user would be great.
I understand that sometimes the supplied user would also need to be None/False as changes from nbshell wouldn't have an attached user.
Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: