Disable v1 token plaintext retrieval #11685

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

Originally created by @jeremystretch on GitHub (Oct 3, 2025).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v4.4.2

Feature type

Change to existing functionality

Proposed functionality

Remove the ability to retrieve the plaintext key from legacy (v1) API tokens. This entails removing the ALLOW_TOKEN_RETRIEVAL configuration parameter, which is disabled by default.

Use case

An improved API token implementation is being developed for NetBox v4.5 (see #20210), which will no longer rely on storing token plaintexts in the database. Support for legacy (v1) tokens will be removed in a future NetBox release. This change is a natural step toward that eventuality, and delivers improved operational security in the interim.

Database changes

This change does not entail any modifications to the database or token data. It is only an application level change.

External dependencies

N/A

Originally created by @jeremystretch on GitHub (Oct 3, 2025). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v4.4.2 ### Feature type Change to existing functionality ### Proposed functionality Remove the ability to retrieve the plaintext key from legacy (v1) API tokens. This entails removing the `ALLOW_TOKEN_RETRIEVAL` configuration parameter, which is disabled by default. ### Use case An improved API token implementation is being developed for NetBox v4.5 (see #20210), which will no longer rely on storing token plaintexts in the database. Support for legacy (v1) tokens will be removed in a future NetBox release. This change is a natural step toward that eventuality, and delivers improved operational security in the interim. ### Database changes This change does not entail any modifications to the database or token data. It is only an application level change. ### External dependencies N/A
adam added the type: featurestatus: backlogbreaking changecomplexity: low labels 2025-12-29 21:48:36 +01:00
adam closed this issue 2025-12-29 21:48:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11685