Token lenght for API Tokens #10771

Closed
opened 2025-12-29 21:35:47 +01:00 by adam · 1 comment
Owner

Originally created by @NotHBlocks on GitHub (Feb 18, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.1

Python Version

3.10

Steps to Reproduce

  1. Go to the menue where you can add an API Token
  2. Add an API Token which is longer then 40 characters
  3. Click create

Expected Behavior

The token will be accepted and I can use an API Token longer then 40 characters.

Observed Behavior

I get the following Error:

Image

Originally created by @NotHBlocks on GitHub (Feb 18, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.1 ### Python Version 3.10 ### Steps to Reproduce 1. Go to the menue where you can add an API Token 2. Add an API Token which is longer then 40 characters 3. Click create ### Expected Behavior The token will be accepted and I can use an API Token longer then 40 characters. ### Observed Behavior I get the following Error: ![Image](https://github.com/user-attachments/assets/16e707fd-0cc8-48de-898f-b4a7a32a41de)
adam added the type: bug label 2025-12-29 21:35:47 +01:00
adam closed this issue 2025-12-29 21:35:47 +01:00
Author
Owner

@arthanson commented on GitHub (Feb 18, 2025):

@NotHBlocks The token length is set to a max of 40 characters, so this is working as expected. If you think it should be longer, please open up a feature request to extend the API token to a longer length as you can then put in the use case why it should be extended. Closing this as not a bug.

@arthanson commented on GitHub (Feb 18, 2025): @NotHBlocks The token length is set to a max of 40 characters, so this is working as expected. If you think it should be longer, please open up a feature request to extend the API token to a longer length as you can then put in the use case why it should be extended. Closing this as not a bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10771