normogen/backend/src
goose 6d6af67f2f
All checks were successful
Lint and Build / format (pull_request) Successful in 1m1s
Lint and Build / clippy (pull_request) Successful in 1m44s
Lint and Build / build (pull_request) Successful in 3m49s
Lint and Build / test (pull_request) Successful in 4m21s
fix(rekey): echo stored DEK values in response, not the pre-image
rekey_rotates_owner_share_and_keeps_listed_recipients failed in CI:
the response's wrapped_profile_dek was 'owner-dek-v1' (old) instead of
'owner-dek-v2' (new). update_wrapped_dek uses find_one_and_update,
which returns the document as it was BEFORE the update by default —
so reading the new value from the returned doc gives the pre-image.

Fix: echo the request values (exactly what was stored) in the response
instead of reading them back. Unambiguous and avoids the
ReturnDocument::After plumbing. The write itself was always correct
(the stored value was v2) — only the response was stale, which is why
the other rekey tests (which check state via fresh reads, not the
response body) passed.

Now CI-green (clippy/fmt clean; integration tests will re-run).
2026-07-19 22:13:51 -03:00
..
auth fix(auth): wrong password returns Ok(false), not Err 2026-07-19 02:29:09 -03:00
config feat: rate limiting + E2E crypto lifecycle test 2026-07-03 21:57:39 -03:00
db feat: profile sharing via X25519 envelope (Phase B, #3) 2026-07-19 07:21:11 -03:00
handlers fix(rekey): echo stored DEK values in response, not the pre-image 2026-07-19 22:13:51 -03:00
middleware feat: profile sharing via X25519 envelope (Phase B, #3) 2026-07-19 07:21:11 -03:00
models feat: hard revoke / re-key (Phase C, #3) 2026-07-19 15:15:39 -03:00
security feat: rate limiting + E2E crypto lifecycle test 2026-07-03 21:57:39 -03:00
services fix(backend): refresh-token jti + code cleanup (#15,#28,#29,#30) 2026-06-27 20:57:24 -03:00
app.rs feat: hard revoke / re-key (Phase C, #3) 2026-07-19 15:15:39 -03:00
lib.rs fix(backend): P1 — handler unwrap cleanup + rewrite integration tests 2026-06-27 14:26:39 -03:00
main.rs feat: rate limiting + E2E crypto lifecycle test 2026-07-03 21:57:39 -03:00