You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a kernel runs with CurveZMQ, all five channels are encrypted. But the pipe that forked child processes use to send output to the parent (IOPubThread._setup_pipe_in in iostream.py) is still a plain TCP socket on 127.0.0.1. The child sends the pipe uuid plus the message in plain text, and the parent forwards it to IOPub after it checks only the uuid.
So on a CURVE kernel:
output from forked children isn't encrypted
anything that can capture loopback traffic (e.g. a sidecar container in the same pod) can see the uuid
Right now the client's HMAC check still blocks injected messages. But if clients stop checking HMAC on CURVE connections (jupyter/jupyter_client#1154), the uuid becomes the only lock.
Idea for a fix: pass the CURVE keys to IOPubThread, make pipe_in a CURVE server and the child's pipe_out a CURVE client (the same way debug_shell_socket does it), and keep the uuid check.
Activity