Prevent Creation Of API Token With Expiration In Past #11843

Closed
opened 2025-12-29 21:50:32 +01:00 by adam · 2 comments
Owner

Originally created by @mr1716 on GitHub (Nov 18, 2025).

Originally assigned to: @pheus on GitHub.

NetBox version

v4.4.6

Feature type

Change to existing functionality

Proposed functionality

When users try to create an API Token with an expiration date in the past, the system should throw an error and not create the token.

Use case

Creating API Tokens with expiration dates in the past serves few to any benefits. Setting tokens with future values makes sense and has benefits.

Database changes

No response

External dependencies

No response

Originally created by @mr1716 on GitHub (Nov 18, 2025). Originally assigned to: @pheus on GitHub. ### NetBox version v4.4.6 ### Feature type Change to existing functionality ### Proposed functionality When users try to create an API Token with an expiration date in the past, the system should throw an error and not create the token. ### Use case Creating API Tokens with expiration dates in the past serves few to any benefits. Setting tokens with future values makes sense and has benefits. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurenetboxcomplexity: low labels 2025-12-29 21:50:32 +01:00
adam closed this issue 2025-12-29 21:50:32 +01:00
Author
Owner

@mr1716 commented on GitHub (Nov 19, 2025):

Not sure if this is better classified as a bug. If so, my mistake

@mr1716 commented on GitHub (Nov 19, 2025): Not sure if this is better classified as a bug. If so, my mistake
Author
Owner

@pheus commented on GitHub (Nov 21, 2025):

I'd like to contribute this enhancement. Could you please assign the issue to me? Thanks!

@pheus commented on GitHub (Nov 21, 2025): I'd like to contribute this enhancement. Could you please assign the issue to me? Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11843