-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Make encryption default if Security is given arguments #3887
Conversation
07e612b
to
2f458f5
Compare
2f458f5
to
4486684
Compare
Merging tomorrow if there are no comments. cc @jcrist |
if require_encryption is None: | ||
require_encryption = dask.config.get("distributed.comm.require-encryption") | ||
if require_encryption is None: | ||
require_encryption = not not kwargs |
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.
Can you explain what this line does?
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 suspect this is a mistake ? not not
?
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.
not not
turns anything into True/False if it is truthy/falsey.
In [1]: not not {"x": 1}
Out[1]: True
In [2]: not not {}
Out[2]: False
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.
Probably calling bool
is better
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.
Oh! Cool! And we do that in other places throughout the dask ecosystem.
So @samaust this line is saying any time the user is setting security settings (in kwargs) dask will now enable require_encryption
without the user explicitly setting it. Essentially the title of the PR.
merging in |
Fixes #3886