Skip to content

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

@matmair

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelates to the APIenhancementThis is an suggested enhancement or new featuresecurityRelates to a security issue
    No fields configured for Enhancement.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions