-
-
Notifications
You must be signed in to change notification settings - Fork 397
Support ZMQ Curve for transport encryption #1515
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
Open
krassowski
wants to merge
22
commits into
ipython:main
Choose a base branch
from
krassowski:curve-encryption
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0de32e5
Add test for curve encryption
krassowski 66b706c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a53cd8f
Fix lint in tests
krassowski 38a596f
Draft implementation
krassowski 6007e9b
Use a fork with curve support for testing/PoC
krassowski 2f29d52
Handoff serialization to jupyter-client
krassowski af73137
Add a warning when curve is disabled and using tcp transport
krassowski 955e1d4
Allow references
krassowski c246875
Fix lint
krassowski 0defb2b
Merge branch 'main' into curve-encryption
krassowski 8a2a911
Require curve keys to be passed as kwargs
krassowski 0eec39d
Make curve keys private and typed
krassowski 0c71c21
Simplify test fixtures
krassowski 8d56ecc
Make the client own key generation
krassowski a058d1f
Use traitlets for keys
krassowski bb59da2
Change log level to info
krassowski 04ec2fe
Advertise encryption support in kernelspec
krassowski 5481d4b
Fix tests
krassowski b8c7473
Fix debugger when curve encryption is enabled
krassowski 7eb90e0
Fix somewhat flaky test by waiting for the connection file to show up
krassowski 7ecb521
Fix tests
krassowski 2157ae7
Update tests to reflact rename to "auto"
krassowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ dependencies = [ | |
| "ipython>=7.23.1", | ||
| "comm>=0.1.1", | ||
| "traitlets>=5.4.0", | ||
| "jupyter_client>=8.8.0", | ||
| "jupyter_client @ git+https://github.com/krassowski/jupyter_client.git@add-curve-encryption", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (needs reverting once jupyter-client PR is merged and released) |
||
| "jupyter_core>=5.1,!=6.0.*", | ||
| # For tk event loop support only. | ||
| "nest_asyncio2>=1.7.0", | ||
|
|
@@ -71,6 +71,9 @@ cov = [ | |
| pyqt5 = ["pyqt5"] | ||
| pyside6 = ["pyside6"] | ||
|
|
||
| [tool.hatch.metadata] | ||
| allow-direct-references = true | ||
|
Comment on lines
+74
to
+75
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (this too) |
||
|
|
||
| [tool.hatch.version] | ||
| path = "ipykernel/_version.py" | ||
|
|
||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nbclientdownstream tests are failing due to addition of this warning, see:I believe we should keep it and update
nbclienttests, any objections?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to fix nbclient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, nbclient tests shouldn't fail if warnings are logged from another package, that's a problem in the test suite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened jupyter/nbclient#341