hammy275 / comp-status

A set of programs to view the status and resource usage of computers.
GNU General Public License v3.0
0 stars 0 forks source link

Permanent Token Pollution #19

Closed hammy275 closed 4 years ago

hammy275 commented 4 years ago

Since permanent tokens literally last forever, we need to take some measures to prevent a giant amount of them from being generated. Ideas include:

hammy275 commented 4 years ago

There should probably also be a rate limit (configurable, of course) for handing out permanent tokens, to prevent a bad actor from rapidly filling a hard drive or similar. This would not be implemented if we went with the 1 permanent token per account system.

hammy275 commented 4 years ago

Added in commit https://github.com/hammy3502/comp-status/commit/d34ac7696d73b3e98d87473df7dbb382274f8f5d . Manual deletion of old perma-tokens from the db is required.