Add security: authentication and encryption#75
Open
BenediktBurger wants to merge 1 commit into
Open
Conversation
fc6c4f0 to
285aa85
Compare
BenediktBurger
commented
May 6, 2026
| A security mode using CurveZMQ (RFC 50) for authentication and encryption based on Curve25519 key pairs, see {doc}`security`. | ||
|
|
||
| Security mode | ||
| The security configuration of a LECO Network, either `NONE` (no security) or `CURVE` (authenticated and encrypted), see {ref}`security.md#security-modes`. |
Member
Author
There was a problem hiding this comment.
Has to be changed, as #80 has been merged. Does {doc} still work?
BenediktBurger
commented
May 6, 2026
Comment on lines
+93
to
+111
| :::{mermaid} | ||
| sequenceDiagram | ||
| participant CA as Component A | ||
| participant Co as N1.COORDINATOR | ||
| Note over CA,Co: CURVE mode handshake | ||
| CA ->> Co: ZMQ CURVE handshake (client_secret + server_public) | ||
| Note right of Co: ZAP validates client public key | ||
| alt Handshake succeeds | ||
| Co -->> CA: Handshake OK | ||
| CA ->> Co: V|COORDINATOR|CA|H|sign_in | ||
| Co ->> CA: V|N1.CA|N1.COORDINATOR|H|result | ||
| else Unauthorized key | ||
| Co -->> CA: Connection rejected (ZAP) | ||
| Note right of Co: Log: "CURVE auth failed for [key hash]" | ||
| else Wrong server key | ||
| CA -->> Co: Handshake fails | ||
| Note left of CA: Log: "CURVE handshake failed" | ||
| end | ||
| ::: |
Member
Author
There was a problem hiding this comment.
Suggested change
| :::{mermaid} | |
| sequenceDiagram | |
| participant CA as Component A | |
| participant Co as N1.COORDINATOR | |
| Note over CA,Co: CURVE mode handshake | |
| CA ->> Co: ZMQ CURVE handshake (client_secret + server_public) | |
| Note right of Co: ZAP validates client public key | |
| alt Handshake succeeds | |
| Co -->> CA: Handshake OK | |
| CA ->> Co: V|COORDINATOR|CA|H|sign_in | |
| Co ->> CA: V|N1.CA|N1.COORDINATOR|H|result | |
| else Unauthorized key | |
| Co -->> CA: Connection rejected (ZAP) | |
| Note right of Co: Log: "CURVE auth failed for [key hash]" | |
| else Wrong server key | |
| CA -->> Co: Handshake fails | |
| Note left of CA: Log: "CURVE handshake failed" | |
| end | |
| ::: | |
| ```mermaid | |
| sequenceDiagram | |
| participant CA as Component A | |
| participant Co as N1.COORDINATOR | |
| Note over CA,Co: CURVE mode handshake | |
| CA ->> Co: ZMQ CURVE handshake (client_secret + server_public) | |
| Note right of Co: ZAP validates client public key | |
| alt Handshake succeeds | |
| Co -->> CA: Handshake OK | |
| CA ->> Co: V|COORDINATOR|CA|H|sign_in | |
| Co ->> CA: V|N1.CA|N1.COORDINATOR|H|result | |
| else Unauthorized key | |
| Co -->> CA: Connection rejected (ZAP) | |
| Note right of Co: Log: "CURVE auth failed for [key hash]" | |
| else Wrong server key | |
| CA -->> Co: Handshake fails | |
| Note left of CA: Log: "CURVE handshake failed" | |
| end | |
| ``` |
see #80
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #72