Repository navigation
v0.1.48-beta.1
Pre-release
Pre-release
·
122 commits
to main
since this release
This is a prerelease for testing. It is not for production use.
Breaking changes
None.
Features
- Password policy in Settings > Security > Passwords and Sessions. Set the minimum length (8 to 64, default 12) and whether an uppercase letter, a lowercase letter and a number (on by default) and a special character (off by default) are required. One policy covers operators and drivers. It applies the next time someone sets a password; sign-in never checks it, so current passwords keep working.
- Session lifetimes in the same tab. Set the operator and driver sign-in check interval (5 to 1440 minutes, default 60) and inactivity timeout (1 to 90 days for operators, 1 to 365 for drivers, default 30). New values apply at sign-in and at the next background renewal.
- Live password checklists. The CSMS and driver portal password forms show the configured rules, and a rejected password names the rules it misses.
- API.
PUT /v1/security/password-policyandPUT /v1/security/sessions(settings.security:write, access to every site).GET /v1/security/publicreturnspasswordPolicy.GET /v1/security/settingsreturnspasswordPolicyandsessionLifetimes. A 400WEAK_PASSWORDreply carriesmissing(minLength,uppercase,lowercase,number,symbol,maxLength). - Helm and CDK.
appSettings.security.password.*andappSettings.security.session.*set the same values. They default to empty, so the value saved in the dashboard stays.
Fixes
- A driver password change, password reset, sign-out, activation, deactivation or erasure now ends access tokens issued before it at once, not only the refresh tokens. A password change keeps the device that made it signed in.
- The web portal refresh cookie lived 7 days while its stored session lived 30. Both now follow the driver inactivity timeout.
- New passwords are at most 128 characters. Sign-in and current password fields stay uncapped.
- A new password shorter than the policy minimum but at least 8 characters now answers 400
WEAK_PASSWORDwithmissing: ["minLength"]instead ofVALIDATION_ERROR. Under 8 or over 128 characters still answersVALIDATION_ERROR. - Saving the reCAPTCHA, MFA, password or session settings writes all of its keys in one transaction, so a failed save changes nothing.
- The old portal
/profilepage now opens Account > Security.
Upgrade notes
- Migration
0479_release_0_1_48.sqladds the nine settings with today's values and a session version column for drivers. Access tokens issued before the upgrade stay valid until they expire, so no one is signed out. - Older driver app versions keep their built-in rules (12 characters, uppercase, lowercase, number). When the policy asks for more, they show a generic weak password message.