Skip to content

[FR] switch API token storage to hmac digest #12027

Description

@matmair

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

Examples of other systems

netbox

Do you want to develop this?

  • I want to develop this.

Activity

  1. added this to the 1.4.0 milestone on May 28, 2026
  2. added
    enhancement
    api
    on May 28, 2026
  3. added
    security
    on May 28, 2026
  4. SchrodingersGat commented on May 28, 2026

    @SchrodingersGat
    Member

    Would this require re-issuing all existing tokens?

  5. matmair commented on May 28, 2026

    @matmair
    MemberAuthor

    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

  6. modified the milestones: 1.4.0, 1.5.0, 2.0.0 on May 30, 2026
  7. modified the milestones: 2.0.0, 1.6.0 on Sep 13, 2026
  8. self-assigned this
    on Sep 13, 2026
  9. added a commit that references this issue on Sep 16, 2026
    dca516b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apienhancementsecurity

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions