Add support for fallback keys #1710

Open
eve wants to merge 3 commits from eve/ackduck:I1228 into main

3 commits

Author SHA1 Message Date
432c73040b docs: Add changelog
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 34s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m45s
Checks / Prek / Check changed files (pull_request) Successful in 8s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m56s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 10m52s
2026-04-27 12:59:04 +00:00
c0bdd9a69a
feat: Add support for fallback keys
Fallback keys can be provided by client devices to be used in case the
supply of one-time keys run out. The server will store one fallback key
per user, per device, per algorithm. The server will keep track of
whether this fallback key has been used or not.

The  /keys/claim endpoint now provides a fallback key
if no one-time key is found

The /keys/upload endpoint now accepts fallback keys

The /sync endpoint now informs the client of the algorithms for which it
has an unused fallback key in stock.
2026-04-27 12:58:54 +00:00
290d7740f8
feat: Implement serialization/deserialization for booleans 2026-04-27 11:10:58 +00:00