-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Pyre support CurveZMQ? #94
Comments
Never tried it but if pyzmq does it would be possible On June 16, 2016 7:04:58 PM GMT+02:00, Charlie Gettys [email protected] wrote:
Sent from my Hipster Android device with way too many features. |
I've been digging into how it works; the answer is no, but it should be possible to add it (and I may well do so, we'll see) |
i was kinda thinking about it the same way. started by passing --interface down through (still doing some internal testing) to enable re-wiring the interface that it listens on (seems to work OK), was thinking same kinda thing for curve, but prob needs more though since you can do diff auth stuff with curve.... there was some "set_interface" functions that weren't all the way implemented, so wasn't sure if passing args down through actor was the "correct" way, just haven't had a chance to think through it other than passing args down through actor... |
Another way to attack it might be to create the socket, but not bind until after the start command is called, and expose the socket via a method. That'd require some reworking because of the threading I think. I also tried setting the default sockopts on the context to what they would need to be, but for some reason that had no effect. I do not know if that is a bug or me misusing sockopts. |
May be more complicated than just passing arguments down and interpreting them; I'm running into issues figuring out how to deal with the security protocols which seem? to be asymmetric. |
just so we're "speaking the same language" have you seen: https://github.com/zeromq/pyzmq/tree/master/examples/security and thought about this using something like an authenticator thread and passing that around teh context? (or am i interpreting how you wanna implement security?) i've only been just starting to think how to do this; first getting something TLS style between the peers and dealing with auth on top of that. outside of digesting the pyre code and reading through the examples/security starting to put the pieces together. you might be a-head of me here.. (thinking out-loud). |
I saw that; it could be I'm thinking about it wrong. |
iirc; look for inbox/outbox https://github.com/zeromq/pyre/blob/master/pyre/pyre_node.py (i'll try to throw up my interface diff sometime this week too... sounds like we're both barking up the same tree). |
I've been looking at ZRE a bit more: the key will be in both the dealer sockets and the router sockets I think |
To correct my previous comment, Zyre is using two ports; all dealers should be "servers" and all routers should be "clients" or vs versa, removing the problem of asymmetry. The dealer sockets just have to be set up appropriately for their individual router. |
It's probably not that complex to add curve security. Indeed, set up each OK, not trivial, yet quite doable IMO. On Mon, Jun 20, 2016 at 9:18 PM, Charlie Gettys [email protected]
|
Only because of you ;) ty sir! |
Yes, thanks for all of your great work. I am so glad not to have to touch TCP and UDP sockets anymore! Also, your guide on ZeroMQ blew my mind and changed how I think about networking. I'm planning to buy your books soon! |
I have got things to the point where I can encrypt the data for the entire system using a set of keys. However, I haven't tried to extend this to keys for each group, which strikes me as the logical next step; this may require some rewriting of the zsocket class. |
re: passing args down through the stack, i'm not sure this is the "correct" way to do this, but it was a prototype, fwiw: https://github.com/zeromq/pyre/compare/master...wesyoung:fix/interface?expand=1 do you have a fork/diff somewhere of what you're modeling? |
Does Pyre support CurveZMQ?
The text was updated successfully, but these errors were encountered: