Make ALLOW_TOKEN_RETRIEVAL = False the default #10816

Closed
opened 2025-12-29 21:36:15 +01:00 by adam · 2 comments
Owner

Originally created by @hikhvar on GitHub (Feb 27, 2025).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v4.2.3

Feature type

Change to existing functionality

Proposed functionality

Currently,
a newly setup netbox will have set ALLOW_TOKEN_RETRIEVAL = True. This is a bad and insecure default, as API tokens of users should not be visible to administrators.

Use case

Be more secure by default.

If somebody gets administrator permissions on accident (people make errors), they immediatly have access to all tokens with the current default. That should not be the case

Database changes

No response

External dependencies

No response

Originally created by @hikhvar on GitHub (Feb 27, 2025). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v4.2.3 ### Feature type Change to existing functionality ### Proposed functionality Currently, a newly setup netbox will have set ALLOW_TOKEN_RETRIEVAL = True. This is a bad and insecure default, as API tokens of users should not be visible to administrators. ### Use case Be more secure by default. If somebody gets administrator permissions on accident (people make errors), they immediatly have access to all tokens with the current default. That should not be the case ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurebreaking changecomplexity: low labels 2025-12-29 21:36:15 +01:00
adam closed this issue 2025-12-29 21:36:15 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 6, 2025):

This needs to be picked up in a minor release as changing the default behavior is considered a breaking change.

@jeremystretch commented on GitHub (Mar 6, 2025): This needs to be picked up in a minor release as changing the default behavior is considered a breaking change.
Author
Owner

@hikhvar commented on GitHub (Mar 7, 2025):

Can we pick it for netbox v4.3 as that is the next minor release? I would happily take the topic and implement it.

@hikhvar commented on GitHub (Mar 7, 2025): Can we pick it for netbox v4.3 as that is the next minor release? I would happily take the topic and implement it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10816