Query notaries in parallel #1730

Open
opened 2026-05-03 13:49:51 +00:00 by Crazy_Nicc · 1 comment

Right now, each Notary Server is queried in sequence, if the one before it did not have the key. This is good for performance, but bad for security, since the first notary Server can serve you arbitrary keys.

I think it would be better to query all configured trusted servers in parallel and use the response the majority responded with, since that is much more likely to be the right key.

I am aware that these Servers are supposed to be trusted, but in reality you often do not really have "trusted servers", and it would still be good to put less trust on them.

Relevant code (I think): https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/src/service/server_keys/acquire.rs#L195-L223

Right now, each Notary Server is queried in sequence, if the one before it did not have the key. This is good for performance, but bad for security, since the first notary Server can serve you arbitrary keys. I think it would be better to query all configured trusted servers in parallel and use the response the majority responded with, since that is much more likely to be the right key. I am aware that these Servers are supposed to be trusted, but in reality you often do not really have "trusted servers", and it would still be good to put less trust on them. Relevant code (I think): https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/src/service/server_keys/acquire.rs#L195-L223
Owner

Querying notaries in parallel is a planned enhancement but we can't do that majority thing suggested for security reasons

Querying notaries in parallel is a planned enhancement but we can't do that majority thing suggested for security reasons
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity#1730
No description provided.