Skip to content

Add security: authentication and encryption#75

Open
BenediktBurger wants to merge 1 commit into
mainfrom
add-security
Open

Add security: authentication and encryption#75
BenediktBurger wants to merge 1 commit into
mainfrom
add-security

Conversation

@BenediktBurger
Copy link
Copy Markdown
Member

Addresses #72

Comment thread glossary.md
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`.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has to be changed, as #80 has been merged. Does {doc} still work?

Comment thread security.md
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
:::
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant