From 0e0e93d880b2cc234df995dce8ff816c25154ce8 Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Mon, 2 Jan 2023 17:53:25 +0100 Subject: [PATCH] :ambulance: pottwal: Change group of prosody certs dir prosody runs as unpriviledged user inside of its docker container with this uid/gid: root@676f7272aaa6:/etc/prosody# id prosody uid=101(prosody) gid=102(prosody) groups=102(prosody),101(ssl-cert) The certs dir has 0750 permissions and thus the process can not access it and finds no certs, leading to stream errors for s2s and c2s connections. We can not use group name, because the same group has a different gid on the host. Numerical is fine (even if ansible needs this as a string, `chown` seems to know how to handle this). References: !119 Signed-off-by: Alexander Dahl --- host-pottwal.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host-pottwal.yml b/host-pottwal.yml index 921bf2f..c648344 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -135,6 +135,8 @@ ansible.builtin.file: path: "{{ prosody_config_dir }}/certs" state: directory + # group 'ssl-cert' inside of the container + group: "101" mode: 0750 - name: Ensure prosody conf.avail dir exists