You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Lynis does not detect a configuration file of Redis as it's not default one because all instances of Redis are run as Docker containers.
Version
Ubuntu 24.04 LTS amd64
Lynis 3.1.2
Expected behavior
A clear and concise description of what you expected to happen.
Output
If applicable, add output that you get from the tool or the related section of lynis.log
Exception found!
Function/test: [DBS-1882]
Message: Found Redis, but no configuration file. Report this if you know where it is located on your system.
lynis.log
2024-06-12 10:21:48 Performing test ID DBS-1880 (Check for active Redis server)
2024-06-12 10:21:48 Performing pgrep scan without uid
2024-06-12 10:21:48 IsRunning: process 'redis-server' found (4204 4227 4228 5173 5194 5715 7445 8185 8432 8489 8560 12173 12302 12383 )
2024-06-12 10:21:48 Result: Redis is running
2024-06-12 10:21:48 ====
2024-06-12 10:21:48 Performing test ID DBS-1882 (Redis configuration file)
2024-06-12 10:21:48 Action: scanning directory (/etc/redis) for Redis configuration files
2024-06-12 10:21:49 Result: no configuration files found in this directory
2024-06-12 10:21:49 Action: scanning directory (/usr/local/etc) for Redis configuration files
2024-06-12 10:21:49 Result: no configuration files found in this directory
2024-06-12 10:21:49 Action: scanning directory (/usr/local/etc/redis) for Redis configuration files
2024-06-12 10:21:49 Result: no configuration files found in this directory
2024-06-12 10:21:49 Action: scanning directory (/usr/local/redis/etc) for Redis configuration files
2024-06-12 10:21:49 Result: no configuration files found in this directory
2024-06-12 10:21:49 Exception: test has an exceptional event (DBS-1882) with text Found Redis, but no configuration file. Report this if you know where it is located on your system.
Additional context
You can reproduce this with the following setup on Docker: docker-compose.yml:
The volume must have 1001:1001 permissions set in the volume, otherwise it won't start.
I do it in a way where I add command: sleep infinity to a service and then after upping services I do docker exec -i -u 0 containername chown -R 1001:1001 /bitnami/redis/data
The text was updated successfully, but these errors were encountered:
Describe the bug
Lynis does not detect a configuration file of Redis as it's not default one because all instances of Redis are run as Docker containers.
Version
Expected behavior
A clear and concise description of what you expected to happen.
Output
If applicable, add output that you get from the tool or the related section of lynis.log
lynis.log
Additional context
You can reproduce this with the following setup on Docker:
docker-compose.yml
:.env
The volume must have 1001:1001 permissions set in the volume, otherwise it won't start.
I do it in a way where I add
command: sleep infinity
to a service and then after upping services I dodocker exec -i -u 0 containername chown -R 1001:1001 /bitnami/redis/data
The text was updated successfully, but these errors were encountered: