Description
NetBox version
v3.1.9
Feature type
New functionality
Proposed functionality
I'm opening this FR to explore the idea of preventing the export of API tokens after their creation. Upon creating a token, users would have one opportunity to copy the token out of NetBox, after which it will be functional but no longer accessible.
As there are likely use cases where retaining the ability to retrieve tokens is necessary, this should be implemented as a configuration parameter (e.g. ALLOW_TOKEN_RETRIEVAL = False
). I don't anticipate any changes to the database, unless agreement is reached to remove this ability entirely.
Use case
Provides greater security, as users can no longer retrieve API tokens from NetBox. If a token is lost, it will need to be replaced and all API consumers which used it will need to be updated with the new token.
Database changes
No response
External dependencies
No response