mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 17:56:39 +00:00
Validate input of expiration time for setup-keys (#1053)
So far we accepted any value for setup keys, including negative values Now we are checking if it is less than 1 day or greater than 365 days
This commit is contained in:
@@ -369,7 +369,9 @@ components:
|
||||
expires_in:
|
||||
description: Expiration time in seconds
|
||||
type: integer
|
||||
example: 43200
|
||||
minimum: 86400
|
||||
maximum: 31536000
|
||||
example: 86400
|
||||
revoked:
|
||||
description: Setup key revocation status
|
||||
type: boolean
|
||||
|
||||
Reference in New Issue
Block a user