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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user