Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate input of expiration time for setup-keys #1053

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

mlsmaycon
Copy link
Collaborator

Describe your changes

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

Issue ticket number and link

netbirdio/dashboard#251

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

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
@mlsmaycon mlsmaycon requested a review from bcmmbaga August 4, 2023 21:40
@mlsmaycon mlsmaycon merged commit 973316d into main Aug 4, 2023
@mlsmaycon mlsmaycon deleted the validate_setupkey_expiration_date branch August 4, 2023 21:54
surik pushed a commit to surik/netbird that referenced this pull request Aug 11, 2023
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
surik pushed a commit to surik/netbird that referenced this pull request Aug 14, 2023
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
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
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
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants