Ability to disable 'secrets' #1330

Closed
opened 2025-12-29 16:31:31 +01:00 by adam · 1 comment
Owner

Originally created by @candlerb on GitHub (Oct 19, 2017).

Issue type

[X] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.2

Description

Since we are not using 'secrets', it would be nice to have a way to disable them entirely from the UI to reduce clutter and having to explain why it's there.

I note that when the user is not logged in, the secrets sections are already hidden from the main menu and on the Device page.

Looking at the code 1, 2, right now it appears to be a checking only whether the user is logged in. This could be factored out into a more general test which also checks a global flag in settings.py; or perhaps add a new "permission" type e.g. "can view secrets".

Originally created by @candlerb on GitHub (Oct 19, 2017). ### Issue type [X] Feature request <!-- Requesting the implementation of a new feature --> [ ] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.2 ### Description Since we are not using 'secrets', it would be nice to have a way to disable them entirely from the UI to reduce clutter and having to explain why it's there. I note that when the user is not logged in, the secrets sections are already hidden from the main menu and on the Device page. Looking at the code [1](https://github.com/digitalocean/netbox/blob/develop/netbox/templates/inc/nav_menu.html#L351), [2](https://github.com/digitalocean/netbox/blob/develop/netbox/templates/dcim/device.html#L175), right now it appears to be a checking only whether the user is logged in. This could be factored out into a more general test which also checks a global flag in `settings.py`; or perhaps add a new "permission" type e.g. "can view secrets".
adam closed this issue 2025-12-29 16:31:31 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 19, 2017):

Folding this in with #426

@jeremystretch commented on GitHub (Oct 19, 2017): Folding this in with #426
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1330