-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Cache: RedisAdapter doesn't support AWS ElastiCache with secure connection #30573
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
Labels
Comments
@alex-vasilchenko-md would you be able to submit a PR to add support for this? |
Hi, can I help out and add the DNS support in those files? |
hi! @nicolas-grekas! sure I will submit PR. Thanks, @a-deeb , I can do it. If for some reason I don't put my hands on it I will comment here. |
fabpot
added a commit
that referenced
this issue
Mar 20, 2019
…r and RedisTrait (alex-vasilchenko-md) This PR was squashed before being merged into the 4.3-dev branch (closes #30605). Discussion ---------- [Cache] added DSN support for rediss in AbstractAdapter and RedisTrait | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30573 | License | MIT A fix for this issue: #30573 Support for "rediss:" in DSN added. Commits ------- 7e2852d [Cache] added DSN support for rediss in AbstractAdapter and RedisTrait
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.2
Description
It's impossible to connect to AWS Elasticache using https://github.com/nrk/predis that supports rediss schema: http://www.iana.org/assignments/uri-schemes/prov/rediss
As a result you get an exception "Unsupported DSN: rediss://{aws-elasticache-uri}"
How to reproduce
You need to set up cache in framework.yml like this:
As client you need to set up Predis\Client
On init app will throw InvalidArgumentException.
Possible Solution
Add rediss dsn support here: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php#L135
And here: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Cache/Traits/RedisTrait.php#L83
The text was updated successfully, but these errors were encountered: