You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FR] switch API token storage to hmac digest #12027
Please verify that this feature request has NOT been suggested before.
I checked and didn't find a similar feature request
Problem statement
The API tokens are currently saved in plaintext in the DB; there are various safety mechanisms already implemented but getting access to a fully permissioned template environment one might extract these tokens (this is why we warn about templates in the thread modelling docs)
Suggested solution
Implement a new token format that uses hmac digests; netbox did this somewhat recently.
Describe alternatives you've considered
The threat model currently is written to address this so we might also accept the current stqte
depends on the implementation and how hard one wants to tackle this; imo we would just deprecate them with the next major and remove it in the major after that.
Edit: forcing a re-issue is the consequential but very appraisive choice
Activity
SchrodingersGat commentedon May 28, 2026
Would this require re-issuing all existing tokens?
matmair commentedon May 28, 2026
depends on the implementation and how hard one wants to tackle this; imo we would just deprecate them with the next major and remove it in the major after that.
Edit: forcing a re-issue is the consequential but very appraisive choice
feat(backend): switch API token storage to hmac digest (inventree#12850)