Let users edit AUTH_EXEMPT_PATHS configuration variable #8816

Closed
opened 2025-12-29 20:41:37 +01:00 by adam · 4 comments
Owner

Originally created by @miaow2 on GitHub (Nov 7, 2023).

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.

Originally created by @miaow2 on GitHub (Nov 7, 2023). ### 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.
adam added the type: featurepending closure labels 2025-12-29 20:41:37 +01:00
adam closed this issue 2025-12-29 20:41:37 +01:00
Author
Owner

@abhi1693 commented on GitHub (Nov 9, 2023):

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 commented on GitHub (Nov 9, 2023): 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.
Author
Owner

@miaow2 commented on GitHub (Nov 13, 2023):

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 commented on GitHub (Nov 13, 2023): 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
Author
Owner

@github-actions[bot] commented on GitHub (Feb 12, 2024):

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] commented on GitHub (Feb 12, 2024): 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](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Mar 13, 2024):

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] commented on GitHub (Mar 13, 2024): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8816