microk8s icon indicating copy to clipboard operation
microk8s copied to clipboard

Increase token size to 32 bytes

Open ericwb opened this issue 1 year ago • 0 comments

This fix bumps the token size from 16 to 32 bytes in order to match the default minimum entropy as recommended by Python docs.

Note, that there is also a comparison to a constant TOKEN_ΜΙΝ_LEN where one module assumed that length to be characters and another module (utils.py) assumes that length to be bytes. So this fix uses bytes as the meaning from now on.

Fixes #4481

Summary

Changes

Testing

Possible Regressions

Checklist

  • [x] Read the contributions page.
  • [x] Submitted the CLA form, if you are a first time contributor.
  • [ ] The introduced changes are covered by unit and/or integration tests.

Notes

ericwb avatar Apr 08 '24 22:04 ericwb