Skip to content

Commit 73edc79

Browse files
MK8S-25: Disable HTTP directory listing for RPM repository
Security fix to prevent exposing repository structure on port 8080. Changed autoindex from on to off in nginx configuration. Related: RD-680
1 parent f96a333 commit 73edc79

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

salt/metalk8s/repo/files/nginx.conf.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ server {
44

55
location / {
66
root /var/www/repositories;
7-
autoindex on;
7+
# Security fix: Disable directory listing to prevent exposing repository structure
8+
# Fixes: MK8S-25, RD-680 - HTTP directory listing of redhat packages
9+
autoindex off;
810
}
911

1012
include conf.d/*.inc;

0 commit comments

Comments
 (0)