Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1729423

Summary: Remove /etc/httpd/conf.d/autoindex.conf to prevent override alias.conf in /etc/httpd/conf.modules.d/
Product: Red Hat OpenStack Reporter: Keigo Noha <knoha>
Component: puppet-horizonAssignee: Cédric Jeanneret <cjeanner>
Status: CLOSED ERRATA QA Contact: Radomir Dopieralski <rdopiera>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: apetrich, aschultz, cjeanner, emacchi, jbadiapa, jbuchta, jjoyce, jschluet, luhliari, mburns, mfuruta, mvalsecc, rdopiera, slinaber, tvignaud
Target Milestone: z12Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-horizon-12.4.0-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-24 11:33:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Keigo Noha 2019-07-12 08:49:47 UTC
Description of problem:
Remove /etc/httpd/conf.d/autoindex.conf to prevent override alias.conf in /etc/httpd/conf.modules.d/

In RHBZ#1648192, we tried to disable directory listing in icons/ directory.
However, autoindex.conf provided by httpd package overwrite the configuration of alias.conf in /etc/httpd/conf.modules.d.

Version-Release number of selected component (if applicable):
Current

How reproducible:
Always

Steps to Reproduce:
1. Deploy overcloud.
2. Login dashboard.
3. Access to http(s)://<dashboard URL>/icons/

Actual results:
The contents of icons directory are listed.

Expected results:
The contents of icons directory are not listed.

Additional info:
In puppet-apache, the module directory is automatically set based on httpd version.

https://github.com/puppetlabs/puppetlabs-apache/blob/74fa040be21689e32f156f73ed1a71f08a94eb49/spec/acceptance/version.rb#L20-L25

Comment 1 Keigo Noha 2019-07-12 08:51:39 UTC
If we can change the spec file of httpd, we just remove following lines from httpd.spec.

~~~
    573 # Split-out extra config shipped as default in conf.d:
    574 for f in autoindex; do
    575   mv docs/conf/extra/httpd-${f}.conf \
    576         $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/${f}.conf
    577 done
~~~

Comment 5 Keigo Noha 2019-09-02 00:23:14 UTC
Hi Team,

Do you have any updates on this?

Best Regards,
Keigo Noha

Comment 18 Cédric Jeanneret 2020-03-09 10:54:01 UTC
Queens patch needed some conflict resolution.  But it's ready: https://review.opendev.org/711900

Comment 30 errata-xmlrpc 2020-06-24 11:33:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2718