Skip to content

Commit be29be8

Browse files
authored
Merge pull request #77 from osg-htc/fix/certbot-selinux-z-flag
fix: change certbot :Z volume mounts to :z to prevent SELinux MCS lockout
2 parents 3b3212c + 7bb5170 commit be29be8

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
All notable changes to this repository will be documented in this file.
77

8+
## [1.5.1] - 2026-02-26
9+
10+
### Fixed
11+
12+
- **`docker-compose.testpoint-le.yml` and `docker-compose.testpoint-le-auto.yml`**: Changed the `certbot` service volume mounts for `/etc/letsencrypt` and `/var/www/html` from `:Z` (private SELinux MCS relabeling) to `:z` (shared). The `:Z` flag stamped the certbot container's MCS categories onto those host directories on every container recreation. `/etc/letsencrypt:Z` caused Apache to fail (`SSLCertificateFile does not exist`, connection refused on port 443). `/var/www/html:Z` caused Apache to return 403 on all endpoints (`Permission denied: search permissions are missing on a component of the path`). Immediate recovery on affected hosts: `chcon -R -t container_file_t -l s0 /etc/letsencrypt /var/www/html`, then `podman exec perfsonar-testpoint systemctl start apache2`.
13+
814
## [1.5.0] - 2026-02-26
915

1016
### Added

docs/perfsonar/tools_scripts/docker-compose.testpoint-le-auto.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ services:
6464
# API to restart the testpoint container after renewal.
6565
volumes:
6666
- /run/podman/podman.sock:/run/podman/podman.sock:ro
67-
- /var/www/html:/var/www/html:Z
68-
- /etc/letsencrypt:/etc/letsencrypt:Z
67+
- /var/www/html:/var/www/html:z
68+
- /etc/letsencrypt:/etc/letsencrypt:z
6969
# Mount the deploy hook script into the container
7070
- ./tools_scripts/certbot-deploy-hook.sh:/etc/letsencrypt/renewal-hooks/deploy/certbot-deploy-hook.sh:ro
7171
healthcheck:

docs/perfsonar/tools_scripts/docker-compose.testpoint-le.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ services:
5656
# API to restart the testpoint container after renewal.
5757
volumes:
5858
- /run/podman/podman.sock:/run/podman/podman.sock:ro
59-
- /var/www/html:/var/www/html:Z
60-
- /etc/letsencrypt:/etc/letsencrypt:Z
59+
- /var/www/html:/var/www/html:z
60+
- /etc/letsencrypt:/etc/letsencrypt:z
6161
# Mount the deploy hook script into the container
6262
- ./tools_scripts/certbot-deploy-hook.sh:/etc/letsencrypt/renewal-hooks/deploy/certbot-deploy-hook.sh:ro
6363
healthcheck:

0 commit comments

Comments
 (0)