netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Let users edit `AUTH_EXEMPT_PATHS` configuration variable

Open miaow2 opened this issue 1 year ago • 3 comments

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.

miaow2 avatar Nov 07 '23 09:11 miaow2

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.

abhi1693 avatar Nov 09 '23 15:11 abhi1693

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

miaow2 avatar Nov 13 '23 15:11 miaow2

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.

github-actions[bot] avatar Feb 12 '24 04:02 github-actions[bot]

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.

github-actions[bot] avatar Mar 13 '24 04:03 github-actions[bot]