- Issue created by @pcambra
- 🇩🇪Germany jurgenhaas Gottmadingen
I don't know anyone who has done that. Maybe you want to ask upstream if the CrowdSec PHP library is able to handle that?
This issue comes probably from upstream but I'm finding the following error when using this module with AWS/ElasticCache:
CrowdSec\RemediationEngine\CacheStorage\CacheStorageException: Error when creating Redis cache adapter:Invalid Redis DSN: parameter "dbindex" must be a number. in CrowdSec\RemediationEngine\CacheStorage\Redis->__construct() (line 35 of /opt/drupal/vendor/crowdsec/remediation-engine/src/CacheStorage/Redis.php).
CrowdSec\RemediationEngine\CacheStorage\Redis->__construct() (Line: 198)
Digging a bit more, I see that the preg_match from RedisTrait.php doesn't really expect a tls://? Maybe related https://github.com/predis/predis/issues/480 and https://github.com/predis/predis/issues/480
My endpoint is of the form tls://{ENV}.siteinstance-dev-aws-customer-{CUSTOMER}-001.{ID}.use1.cache.amazonaws.com
And the params calculated by RedisTrait:
{"scheme":"file","host":"tls","path":"\/\/{ENV}.siteinstance-dev-aws-customer-{CUSTOMER}-001.{ID}.use1.cache.amazonaws.com:6379"}
Has anybody successfully configured this? the rest of the Redis stuff works as expected.
Active
1.1
Code
I don't know anyone who has done that. Maybe you want to ask upstream if the CrowdSec PHP library is able to handle that?