Skip to content
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

Add a warning about PBS & OpenSSL. #56

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions science/providers/python_build_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,24 @@ class PythonBuildStandalone(Provider[Config]):
its `pip` script.
```

Note that Python Standalone Builds distributions come with some [quirks] that you should probably
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

familiarize yourself with to make sure your application runs correctly under them.

```{warning}
One known quirk revolves around the statically linked OpenSSL Python Standalone Builds
distributions ship with. These are compiled from official OpenSSL releases which can be a
problem when run on machines that have their own patched version of OpenSSL that reads custom
OpenSSL configuration data (e.g.: from `/etc/ssl/openssl.cnf`). Normally, OpenSSL errors for
configuration options it does not understand, but, due to a quirk in the CPython `ssl` module,
most Python applications will have OpenSSL configuration errors masked and continue to run with
partially applied OpenSSL config. This may have security implications for your application.

For more on this see:
https://github.com/indygreg/python-build-standalone/issues/207#issuecomment-1936500903
```

[PBS]: https://gregoryszorc.com/docs/python-build-standalone/main
[quirks]: https://gregoryszorc.com/docs/python-build-standalone/main/quirks.html
"""

@staticmethod
Expand Down
Loading