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 rediss
(Redis over SSL) protocol to RedisDsn
#1911
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1911 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 4093 4133 +40
Branches 823 832 +9
=========================================
+ Hits 4093 4133 +40
Continue to review full report at Codecov.
|
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.
Small typo in changelog. Otherwise LGTM !
Co-authored-by: PrettyWood <em.jolibois@gmail.com>
Thanks a lot @PrettyWood ! I updated the PR comment (hope it works that way, that's one of my first PRs, lol)
Okay, I'll update that too, and make corresponding tests as well |
* Bump black from 19.10b0 to 20.8b1 Bumps [black](https://github.com/psf/black) from 19.10b0 to 20.8b1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/master/CHANGES.md) - [Commits](https://github.com/psf/black/commits) Signed-off-by: dependabot[bot] <support@github.com> * fix: run `make format` Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: PrettyWood <em.jolibois@gmail.com>
Refer to #1877
@@ -54,7 +54,7 @@ def url_regex() -> Pattern[str]: | |||
if _url_regex_cache is None: | |||
_url_regex_cache = re.compile( | |||
r'(?:(?P<scheme>[a-z][a-z0-9+\-.]+)://)?' # scheme https://tools.ietf.org/html/rfc3986#appendix-A | |||
r'(?:(?P<user>[^\s:/]+)(?::(?P<password>[^\s/]*))?@)?' # user info | |||
r'(?:(?P<user>[^\s:/]*)(?::(?P<password>[^\s/]*))?@)?' # user info |
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.
this is quite a significant change - allow password without user.
I think it's a good idea but it needs:
- to be noted in documentation
- to have it's own item in change log
- to have tests covering this case.
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.
these items still need resolving.
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.
@TrDex this can't move forward until you act upon this comment.
� Conflicts: � tests/requirements.txt
Additionally:
|
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.
Also please fix linting.
@@ -54,7 +54,7 @@ def url_regex() -> Pattern[str]: | |||
if _url_regex_cache is None: | |||
_url_regex_cache = re.compile( | |||
r'(?:(?P<scheme>[a-z][a-z0-9+\-.]+)://)?' # scheme https://tools.ietf.org/html/rfc3986#appendix-A | |||
r'(?:(?P<user>[^\s:/]+)(?::(?P<password>[^\s/]*))?@)?' # user info | |||
r'(?:(?P<user>[^\s:/]*)(?::(?P<password>[^\s/]*))?@)?' # user info |
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.
@TrDex this can't move forward until you act upon this comment.
@samuelcolvin I worked on your comments about allowing password without user.
|
Change Summary
Added
rediss
toRedisDsn.allowed_schemes
.Related issue number
This PR closes #1877
Checklist
changes/1911-TrDex.md
file added describing change(see changes/README.md for details)