Add a toggle to enable curve encryption for all kernels that support it#1638
Add a toggle to enable curve encryption for all kernels that support it#1638krassowski wants to merge 3 commits into
Conversation
|
In principle ready for review; I will follow with an end-to-end test, either here or in another PR (i..e once other PRs are merged and released), but beyond more tests I do not plan changes, unless requested in review. |
minrk
left a comment
There was a problem hiding this comment.
This looks simple and straightforward, nice! I think the only missing piece that we will need to enable this feature on a per-kernel basis. I think it makes sense to have a single flag to enable curve "when available" and may potentially want a case to require it (prohibit unencrypted kernel communication). So:
- curve disabled
- curve enabled on supporting kernels (still needs detection of support)
- curve required (unsupporting kernels cannot be launched)
So we still need a mechanism to detect if kernels support curve (could be a bool kernelspec field).
Perhaps in the |
|
Are we thinking that three state string |
|
Wouldn't |
Yes, you are correct. |
|
Added the ability to |
Exposes the proposed functionality from:
To test:
python -m ipykernel install --name zmq-encrypted --display-name 'ZMQ Encryption' --userjupyter lab --KernelManager.transport_encryption 'required'