Skip to content

Commit a47af9a

Browse files
author
Sebastian Wagner
committed
docs: faq redis socket: less permissions
socket permission 777 are not necessary, use only 770 plus group membership
1 parent 7a750f4 commit a47af9a

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ CHANGELOG
2929
- Add missing newlines at end of `docs/_static/intelmq-manager/*.png.license` files (PR#1785 by Sebastian Wagner, fixes #1777).
3030
- Ecosystem: Revise sections on intelmq-cb-mailgen and fody (PR#1792 by Bernhard Reiter).
3131
- intelmq-api: Add documentation about necessary write permission for the session database file (PR#1798 by Birger Schacht, fixes intelmq-api#23).
32+
- FAQ: Section on redis socket permissions: set only minimal necessary permissions (PR#1809 by Sebastian Wagner).
3233

3334
### Packaging
3435

docs/user/FAQ.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,23 @@ Permission denied when using Redis Unix socket
1616

1717
If you get an error like this:
1818

19-
``intelmq.lib.exceptions.PipelineError: pipeline failed - ConnectionError('Error 13 connecting to unix socket: /var/run/redis/redis.sock. Permission denied.',)``
19+
.. code-block::
2020
21-
make sure the permissions for the socket are set accordingly in ``/etc/redis/redis.conf`` (or wherever your configuration is), e.g.:
21+
intelmq.lib.exceptions.PipelineError: pipeline failed - ConnectionError('Error 13 connecting to unix socket: /var/run/redis/redis.sock. Permission denied.',)
2222
23-
``unixsocketperm 777``
23+
Make sure the intelmq user as sufficient permissions for the socket.
24+
25+
In ``/etc/redis/redis.conf`` (or wherever your configuration is), check the permissions and set it for example to group-writeable:
26+
27+
.. code-block::
28+
29+
unixsocketperm 770
30+
31+
And add the user intelmq to the redis-group:
32+
33+
.. code-block:: bash
34+
35+
usermod -aG redis intelmq
2436
2537
Why is the time invalid?
2638
-------------------------------------------------------------------

0 commit comments

Comments
 (0)