Lift certificate pinning into the connector contract

fluksio.flow.connector_tls: trust the certificate a device presented on
first contact, kept in ConnectorNode.store, and name the new fingerprint
when another one is refused. Additive, so no contract version bump; hue
and wfrac use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013GAeg4Jo6xjZzjwy9QDWMQ
This commit is contained in:
2026-10-07 09:48:24 +02:00
co-authored by Claude Opus 5.5
parent 25706fedff
commit c954a0ab6d
3 changed files with 139 additions and 1 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ What a connector gets from the base class:
port rather than as the message itself;
* :attr:`ConnectorNode.store`, for the few short strings that have to outlive
a restart — a certificate pinned on first contact, a pairing token — shared
by every node of the connector's package.
by every node of the connector's package; :mod:`fluksio.flow.connector_tls`
does the pinning.
The message schemas and the parameter model are the rest of the contract, and
they are the same ones the built-in nodes use. See ``docs/connectors/`` for the