project-iris / iris

Decentralized cloud messaging
iris.karalabe.com
Other
571 stars 32 forks source link

Message security check fails during forward #15

Closed karalabe closed 10 years ago

karalabe commented 10 years ago

There was a small bug introduced with the verification that ensured that no plaintext is allowed to cross a wire.

The message was flagged as secure after being encrypted, but the security flag is not transmitted, hence on the other side the flag got unset. This is was no problem for delivery (hence why all tests passed), but during forwarding the messages don't get re-crypted, thus the packet is dropped.

This has been corrected by setting all arriving messages knowingly to secure. The patch will be committed soon, but it is part of a large refactor still in progress. I've added this bug to mark the branch unstable for the moment.