-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement SSL #6
Implement SSL #6
Conversation
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.
Thanks for the contribution!
Changes look good, I have a few minor comments.
fda1fc6
to
54bcca8
Compare
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.
Thanks for the fixes! A couple of final (and minor) comments
FWIW the lint issue should go away if you rebase on main |
|
Introduce backwards compatible SSL. - [script.py] Add optional argument for ssl-private_key, ssl-public_key and ssl-ca - [web.py] Add optional ssl_context - [conftest.py] Pytest utilities to test ssl - [script_test.py/web_test.py] Add ssl testing
- [conftest.py]: Replace all `return` with `yield` statements - [pyproject.toml]: Add `trustme` as test dependency - [script.py]: `_configure_ssl` is now `_get_ssl_context` (not a staticmethod anymore). SSL arguments are of type `FileType` (not `str`). - [script_test.py]: Remove the `xfail` decorator - [web.py and script.py]: Replace `Optional` with `| None`
- args.FileType returns a FileType object. `load_cert_chain` expects public/private key paths as `str`. `name` attribute (of `FileType`) returns exactly what is needed.
- Sort imports
3031e99
to
43a41ff
Compare
- [script.py]: Remove `from ssl import SSLContext` statement. Close ssl related FileType objects. - [README.rst]: Add references to the SSL arguments
43a41ff
to
8fc42fc
Compare
Thank you very much! |
Hello Alberto,
Thank you so much for you kind words and your PR feedback.
A question: Do you plan to create a new release of the latest changes? I’d love to use the ssl with your query-exporter.
Cheers,
Argyris
…--
Argyrios Samourkasidis
Αργύριος Σαμουρκασίδης
On 23 Oct 2023, at 22:37, Alberto Donato ***@***.***> wrote:
Thank you very much!
—
Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABAHMKPAIQQVXQTANMFQQZ3YA3IQNAVCNFSM6AAAAAA6JPZSWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZVHE4DAOJWGY>.
You are receiving this because you authored the thread.
|
I plan to make a 2.0 release soon which will also include the changes I made for |
thanks so much. Please let me know if there's anything I could help with! |
Introduce backwards compatible SSL.