Skip to content

Changelog update to reflect encryption to be enabled by default #191

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

Closed
john-bodley opened this issue Oct 18, 2017 · 4 comments
Closed

Changelog update to reflect encryption to be enabled by default #191

john-bodley opened this issue Oct 18, 2017 · 4 comments

Comments

@john-bodley
Copy link

It seems in the 1.5.0 release the default config has encryption enabled (https://github.com/neo4j/neo4j-python-driver/blob/1.5/neo4j/v1/security.py#L52) which causes an exception to thrown if the Python version is less than 2.7.9.

I was wondering whether this Changelog should be updated to reflect this?

@technige
Copy link
Contributor

While the code here has changed, the default has been to open encrypted connections for a long time.

@john-bodley
Copy link
Author

Thanks @technige for the quick response. In previous versions of the driver we would get the warning though in 1.5.0 the exception is raised.

Referring to the code from 1.4.0 (https://github.com/neo4j/neo4j-python-driver/blob/1.4/neo4j/v1/security.py) if SSL_AVAILABLE is False this implies that ENCRYPTION_DEFAULT = 0, which means that the encrypted = 0 (assuming that the encrypted key in the config is undefined or None). The warning is displayed and the if statement on line 63 evaluates to False.

In 1.5.0 assuming the same configuration, it seems the new default_config is used if the encrypted config key is undefined which defaults to True (https://github.com/neo4j/neo4j-python-driver/blob/1.5/neo4j/config.py#L52) and thus the warning is no longer displayed and the if statement evaluates to True causing the exception to be thrown.

@zhenlineo
Copy link
Contributor

Hi @john-bodley

I copy paste the default value wrongly. There was no intention to change the default value in 1.5. We will fix this unexpected change in next patch.

Sorry for causing this error to you. Please override the wrong default encryption config in your code for now.

Thanks again for raising this issue to us.

Zhen

@zhenlineo
Copy link
Contributor

Hi @john-bodley

We've already release 1.5.1 which contains the fix for this issue.

Thanks,
Zhen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants