Overview
| Comment: | sync: per-round credentials over the cookie channel (#74)
An authenticated exchange now carries a fresh credential on every round: body login until the peer's gate is known, then an x-f-l-c cookie whose nonce covers that round's own body. The transport attaches it; serve now verifies it (and refuses tampered, replayed, and duplicate logins) instead of ignoring the header its own announced version solicits. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
1fd84b4327539fcd73c920e19a3068ec |
| User & Date: | dmestas on 2026-08-16 02:37:51.117 |
| Other Links: | manifest | tags |
Context
|
2026-08-16
| ||
| 04:05 | e2e: the import-fossil residue scans iterate a dedicated .iterate handle scoped to the scan — Linux dirRead re-seeks the fd per batch, so iterating a handle owned elsewhere is BADF there (macOS tolerates it) check-in: 68506d0e3e user: dmestas tags: trunk | |
| 02:37 |
sync: per-round credentials over the cookie channel (#74)
An authenticated exchange now carries a fresh credential on every round: body login until the peer's gate is known, then an x-f-l-c cookie whose nonce covers that round's own body. The transport attaches it; serve now verifies it (and refuses tampered, replayed, and duplicate logins) instead of ignoring the header its own announced version solicits. check-in: 1fd84b4327 user: dmestas tags: trunk | |
| 02:21 | zig fmt check-in: f7b57a5869 user: dmestas tags: trunk | |
Changes
Modified src/cmd/sync.zig
from [974ebaac94]
to [b08e626857].
[diff]
Modified src/serve.zig
from [803f0ed18c]
to [5be1635bf2].
[diff]
Modified src/serve_fuzz.zig
from [3c39ea768f]
to [3cf64bcfe2].
[diff]
Modified src/sync.zig
from [827a1f69b1]
to [18c9b8283b].
[diff]
Modified src/sync_benchmark.zig
from [b0aac98d9c]
to [f4b18c2105].
[diff]
Modified src/sync_driver.zig
from [e2cc383662]
to [12aef56f07].
[diff]
Modified src/sync_driver_test.zig
from [830b114ece]
to [e01441c323].
[diff]
Modified src/sync_test.zig
from [371b97752c]
to [5ba24c8117].
[diff]
Modified src/transport.zig
from [e90b182d5c]
to [0b613054a3].
[diff]