microk8s
microk8s copied to clipboard
Increase token size to 32 bytes
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.