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

BUGFIX: Fix RedisBackend to allow scheme in hostname #3146

Merged

Conversation

kdambekalns
Copy link
Member

The hostname can hold a scheme, that is needed to enable TLS for the connection:

tls://127.0.0.1

or

tlsv1.2://127.0.0.1

This change fixes the overly naive check for a unix socket to allow using a scheme in the hostname together with a custom port.

Review instructions

Have an TLS enabled Redis (e.g. free tier on upstash.com) and try to connect to it…

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked wit !!! and have upgrade-instructions

The hostname can hold a scheme, that is needed to enable TLS for the
connection:

    tls://127.0.0.1

or

    tlsv1.2://127.0.0.1

This change fixes the overly naive check for a unix socket to allow
using a scheme in the hostname together with a custom port.
Copy link
Member

@skurfuerst skurfuerst left a comment

Choose a reason for hiding this comment

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

Looks good by reading ❤️

@kdambekalns kdambekalns merged commit 8b718f4 into neos:7.3 Sep 28, 2023
9 of 10 checks passed
@kdambekalns kdambekalns deleted the bugfix/allow-scheme-for-redis-hostname branch September 28, 2023 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants