mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-06 11:38:24 +00:00
Carries the security batch onto this line. Most of it merged as text; the forged-ack rollback had to be re-implemented, because this line runs XX where the other two run XK and the function the helper wraps does not exist here. The defect is the same shape under XX: the reader mixes the sender ephemeral into the symmetric state before the first authenticating operation, so a forged message poisons a handshake that is then kept. The saved field set is larger here, five rather than four, and the extra one matters: XX msg2 carries the responder static and stores it before the epoch decrypt that can still fail, so a failed read would otherwise leave an attacker key where the identity check reads it. The helper returns a rollback token rather than unit, because the two extra failure sites on this line need to roll back after a read that succeeded. Both of those sites now keep the entry. The negotiation-payload failure is plainly forgery-reachable, since the identity comparison has not run yet. The responder-identity mismatch is the sharper case and also keeps: it proves the sender of the datagram is not who we dialled, but the claimed source is an envelope field, so the forgery reading is available to anyone who can reach us, and dropping would hand out a one-datagram cancel of any initiation. It was a silent return and now has its own counter, kept separate from the read failure so a stale key mapping and somebody answering under their own identity cannot be summed together. This line carries six sites of the epoch-discard class, not the five the other lines have; the sixth is the negotiation payload split out of XX msg3. One fix was dropped by a clean auto-merge and restored: the change at the msg3 read failure slid onto an adjacent site that is unique to this line, leaving the original with the destructive call, no conflict and no warning. Its doc comment, counters and tests all arrived without it. Caught by sweeping the cleanly-merged files, and confirmed by reverting the line and watching the epoch-survival assertion fail. The profiler row-count guard is updated for the step this merge brings up. It has now caught a merged-in step twice. Green: fmt, build, clippy and test --lib, 1956 passed, plus the profiling recorder suite.
Reference
Information-oriented technical descriptions for lookup on demand. Reference content describes what is: wire formats, configuration keys, command-line flags, control-socket commands, default values, file paths, exit codes. It is consulted, not read end-to-end.
Reference is austere by design: minimal narrative, no opinions, no guidance on when to use a feature. The "why" lives in design/; the "how do I accomplish X" lives in how-to/.
Available Reference
| Document | Scope |
|---|---|
| wire-formats.md | All FMP and FSP message byte layouts, encapsulation walkthrough |
| configuration.md | Full YAML configuration reference for the daemon and gateway |
| security.md | nftables baseline, peer ACL, cryptographic primitives, rekey defaults, threat-resistance matrix |
| nostr-events.md | Kind 37195 advert, Kind 21059 traversal signaling, Kind 10050 inbox relays |
| transports.md | Per-transport statistics counter inventory |
| control-socket.md | Line-delimited JSON control protocol for the daemon and gateway |
| cli-fips.md | fips daemon CLI: options, exit codes, environment, files |
| cli-fipsctl.md | fipsctl control-client: subcommands, options, exit codes |
| cli-fipstop.md | fipstop live-status TUI: tabs, keybindings |
| cli-fips-gateway.md | fips-gateway service CLI: options, exit codes, files |