Commit Graph
2 Commits
Author SHA1 Message Date
proitlab 6c23665072 fix(controller): issue classic COM to pre-PQ requesters
A hybrid controller always double-signed the COM, so it serialized with type
byte 2. A legacy (v1.14.1) client's COM parser rejects any type != 1, which
threw inside NetworkConfig::fromDictionary; handleConfigChunk swallowed it, so
the client sat at REQUESTING_CONFIGURATION forever and surfaced as
ACCESS_DENIED once the network was private and its member unapproved.

Advertise PQ capability in the network-config-request metadata ("f" bit 0,
previously hardcoded 0) and let the controller pick the wire form per
requester: type 2 only for a requester that flagged the bit, type 1 otherwise
(all legacy clients, and push configs with no request metadata).

Verified: selftest's new "PQ authority can issue classic COM on demand" case
passes, and a real v1.14.1 client reaches status OK / netconfRevision 5
against a pqcMode:hybrid controller while a hybrid client still comes up OK.
2026-12-04 18:00:43 +07:00
dsutanto dbdc5bcc4a First Commit 2025-11-19 16:23:45 +07:00