Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Here is a patch against latest 7.x-2.x-dev for environments where Redis requires a password for authentication.
The patch implements a new password field on the Radioactivity admin interface /admin/structure/radioactivity/settings
and logic around it to provide Redis authentication.
The configuration assistant will dump accordingly another line like:
define('VAR_RADIOACTIVITY_REDIS_PASS', 'your_password');
in the admin interface which has to be added to the radioactivity-bootstrap.cfg.inc file.
Comments
Comment #2
mihaic CreditAttribution: mihaic as a volunteer commentedComment #3
samt2497 CreditAttribution: samt2497 at Four Kitchens commentedPatch #2 works for me
Comment #4
krisahil CreditAttribution: krisahil at GenomeWeb commentedI re-rolled this patch against 7.x-2.x. This new patch has been working for large site well.
Comment #5
krisahil CreditAttribution: krisahil at GenomeWeb commentedUpdated patch fixes a bug where the Redis password does not get defined during full Drupal bootstrap. The use case I saw this in was during radioactivity's cron job, which resulted in data from Redis never getting pulled into Drupal's database.
Comment #6
Sutharsan CreditAttribution: Sutharsan commented@krisahilm, thanks for the updated patch. I have no experience with Radioactivity on Redis myself.
Can you provide a list of scenario's for which you have tested this patch with.
And, for which scenario's have you not tested the patch?
Comment #7
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedDoes this work if redis does not require authentication, or should
$redis->auth()
be called conditionally? I don't want to break any existing installations.No further comments. I will commit once the above remark has been resolved.