Configuring security headers
For security reasons, security headers are added to BMC Cloud Lifecycle Management End User Portal through filters. You can configure these headings by modifying the web.xml in clmui.war file. The filter code applies the headers depending on the value of the init-param option in the web.xml:
- If there is no value specified in the init-param option, the filter is not applied.
- If there is a custom value specified in the init-param option, the filter is applied with the custom value.
- If there is no init-param option, the filter is applied with the default value in the code.
The following table provides the list of headers and their default values in web.xml and code.
To configure security headers for Tomcat web server
Go to WEB-INF directory and open the web.xml file in a text editor.
- Windows: C:\Program Files\BMC Software\CloudPortalWebApplication\tomcat\webapps\clmui\WEB-INF\
- Linux: /opt/bmc/CloudPortalWebApplication/tomcat/webapps/clmui/WEB-INF/
- Modify the values of the headers in HeaderSecurityFilter filter in respective init-param key pairs.
- Save the file.
- Restart the Tomcat server.
To configure security headers for Jetty web server
- Copy the clmui.war file from the <PLATFORM_MANAGER>\lib directory to a temporary directory.
- Unzip the clmui.war file by using WinRAR utility.
- Go to WEB-INF directory and open the web.xml file in a text editor.
- Modify the values of the headers in HeaderSecurityFilter filter in respective init-param key pairs.
- Save the file.
- Replace the edited web.xml file in the clmui.war zip file.
- Replace the edited clmui.war file to the <PLATFORM_MANAGER>\lib directory.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*