Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-25907

Allow HTTP Strict Transport Security (HSTS) to be configured in Bamboo 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 10.0.2
    • 10.0.0, 10.0.1
    • Security

      Issue Summary

      This is reproducible on Data Center:

      Up until Bamboo 9.6, HTTP Strict Transport Security was configurable in Bamboo by following the steps outlined in this KB article:

      Since Bamboo 10 was released, the various filter configurations in web.xml were moved to internal Java classes, to prevent the application from being exposed to fragile settings and misconfiguration. As a result of that update, HSTS was not ported to internal classes and is not available in the application any longer, creating this regression.

      Steps to Reproduce

      1. Use Bamboo DC 10
      2. Try to configure HSTS as per this KB instructions

      Expected Results

      • HSTS should work

      Actual Results

      • HSTS is not enabled
      • The application will not start reporting:
        26-Sep-2024 23:44:02.264 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Error during ServletContainerInitializer processing
        	javax.servlet.ServletException: ServletContext already contains a complete registration for filter security
        		at com.atlassian.bamboo.filter.ServletFilterRegistrar.register(ServletFilterRegistrar.java:62)
        		at com.atlassian.bamboo.filter.ServletFilters.registerAll(ServletFilters.java:113)
        		at com.atlassian.bamboo.servlet.ServletsInitializer.onStartup(ServletsInitializer.java:20)
        ...
        

      Workaround

      Configure HSTS on your Load Balancer / Reverse Proxy sitting before the Bamboo application.

      Some examples below:

              73868399605e Eduardo Alvarenga (Inactive)
              73868399605e Eduardo Alvarenga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: