netbox
netbox copied to clipboard
Let users edit `AUTH_EXEMPT_PATHS` configuration variable
NetBox version
v3.6.4
Feature type
Change to existing functionality
Proposed functionality
NetBox has AUTH_EXEMPT_PATHS variable in which stored urls that exempted from authentication if LOGIN_REQUIRED is true.
At this moment user can't modify AUTH_EXEMPT_PATHS variable in configuration.py.
My idea is to move AUTH_EXEMPT_PATHS variable definition from settings.py to configuration.py, so user can change the variable.
Use case
At my daily job we developed some plugins for NetBox (in NetBox instance LOGIN_REQUIRED is set to true), we want to provide access to some pages in these plugins without authentication and don't change NetBox source code.
So it would be great to have the opportunity to change AUTH_EXEMPT_PATHS variable.
Also, you can assign this issue to me, and I will create PR.
Database changes
No changes.
External dependencies
No dependencies.
Rather than allowing the user's to edit, we should extent the variable AUTH_EXEMPT_PATHS with the user provided values. This will ensure the defaults are not altered.
Hi @abhi1693, this is a good point about extending the variable instead of editing, if your team is ok with that approach, I can implement this (extend variable AUTH_EXEMPT_PATHS ) in PR
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.
This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.