push monitor: increase token security #912

Open
andreasbrett wants to merge 1 commits from andreasbrett/securepush into master
andreasbrett commented 3 years ago (Migrated from github.com)
Owner

Description

As push monitor tokens are not short-lived I propose to raise their length from 10 to 32.

There are no best practices or RFCs recommending specific webtoken lengths but 10 chars seems unnecessarily short. Calculation times for a 32-char token are super fast and tokens are mostly set-and-forget strings and also won't be typed in by hand but rather copy&paste.

Additionally it should be easier to rotate them (think enterprise policies requiring to regularly change/rotate credentials). Therefore I added a "Reset Token" button in the "Edit Monitor" dialog. This also allows users with existing push monitors to upgrade their tokens easily.

This is a non-breaking change but if released, the release notes should advise resetting the token (not a MUST though).

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I ran ESLint and other linters for modified files
  • I have performed a self-review of my own code and test it
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)

image

# Description As push monitor tokens are not short-lived I propose to raise their length from 10 to 32. There are no best practices or RFCs recommending specific webtoken lengths but 10 chars seems unnecessarily short. Calculation times for a 32-char token are super fast and tokens are mostly set-and-forget strings and also won't be typed in by hand but rather copy&paste. Additionally it should be easier to rotate them (think enterprise policies requiring to regularly change/rotate credentials). Therefore I added a "Reset Token" button in the "Edit Monitor" dialog. This also allows users with existing push monitors to upgrade their tokens easily. This is a non-breaking change but if released, the release notes should advise resetting the token (not a MUST though). ## Type of change Please delete options that are not relevant. - New feature (non-breaking change which adds functionality) ## Checklist - [x] My code follows the style guidelines of this project - [x] I ran ESLint and other linters for modified files - [x] I have performed a self-review of my own code and test it - [x] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings - [ ] My code needed automated testing. I have added them (this is optional task) ## Screenshots (if any) ![image](https://user-images.githubusercontent.com/6610451/141353445-a214d7c3-8523-402e-a16d-d984bd4da41b.png)
This pull request can be merged automatically.
You are not authorized to merge this pull request.
Sign in to join this conversation.
Loading…
There is no content yet.