Commit Graph

6 Commits

Author SHA1 Message Date
f754e47221 centralize Argon2 setup 2026-02-28 00:23:15 +01:00
b6a211bbcf login & logout 2026-02-27 23:46:37 +01:00
969401658f login endpoint 2026-02-26 00:39:33 +01:00
5a92740785 mitigate sidechannel timing attack for basic auth
Information on whether a user with a given handle exists or not could be
collected by checking the difference between response times of
auth-required endpoints with and without a real handle being passed into
Basic auth. This is because the time-expensive password hash would only
be computed for users that exist, lengthening the response time. In
local testing, this was a difference of 8ms vs. 35-60ms.

A hash is now computed even if a user with the requested handle doesn't
exist, mitigating the issue and leaving only negligible differences
inbetween all response times, from which no information can be obtained.
2026-02-24 14:49:30 +01:00
ee7ed48144 CompositeError, UserAuthRequired, /users/self & users/:id, misc 2026-02-24 00:55:19 +01:00
52b70d4ee9 a whole lot of preem User/Session/Auth work 2026-02-23 02:17:49 +01:00