Commit 7bb5170
root
fix: change certbot :Z volume mounts to :z to prevent SELinux MCS lockout
The certbot service in docker-compose.testpoint-le.yml and
docker-compose.testpoint-le-auto.yml used :Z (private relabeling) for
/etc/letsencrypt and /var/www/html. On every certbot container recreation
(e.g. after update-perfsonar-deployment.sh), :Z stamps the new container's
random MCS categories onto those host directories. The perfsonar-testpoint
container, which mounts the same paths with :z (shared), then cannot read
the certificates, causing Apache to fail with:
SSLCertificateFile: file '/etc/letsencrypt/live/.../fullchain.pem'
does not exist or is empty
This produces connection refused (HTTP 000) on port 443, breaking
node_exporter and perfsonar_host_exporter scraping.
Fix: use :z (shared) for both certbot volume mounts so the shared
container_file_t:s0 label (no MCS restriction) is maintained.
Recovery on affected hosts:
chcon -R -t container_file_t -l s0 /etc/letsencrypt
podman exec perfsonar-testpoint systemctl start apache21 parent 3b3212c commit 7bb5170
File tree
3 files changed
+10
-4
lines changed- docs/perfsonar/tools_scripts
3 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments