"Strict-Transport-Security Header"(HSTS) is not returned by AdminUI
search cancel

"Strict-Transport-Security Header"(HSTS) is not returned by AdminUI

book

Article ID: 217415

calendar_today

Updated On:

Products

SITEMINDER

Issue/Introduction

By default, AdminUI is not returning HSTS.

 

Please follow the steps below to return Strict-Transport-Security in the HTTP Response.

Environment

Release : 12.8x 

Component : SITEMINDER - AdminUI

Resolution

<SiteMinder>/adminui/standalone/configuration/standalone-full.xml

Search for "undertow" and you will find the following section.

The excerpt below is from about the "578 - 600" line numbers. 
The highlighted lines are the added lines.


        <subsystem xmlns="urn:jboss:domain:undertow:8.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other">
            <buffer-cache name="default"/>
            <server name="default-server">
                <http-listener name="default" socket-binding="http" no-request-timeout="120000" redirect-socket="https" enable-http2="true"/>
                <https-listener name="https" socket-binding="https" no-request-timeout="120000" security-realm="SSLRealm" enabled-cipher-suites="SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA" enabled-protocols="TLSv1.1,TLSv1.2" enable-http2="true"/>
                <host name="default-host" alias="localhost">
                    <location name="/" handler="welcome-content"/>
                    <http-invoker security-realm="ApplicationRealm"/>
    <filter-ref name="Strict-Transport-Security" />
                </host>
            </server>
            <servlet-container name="default">
                <jsp-config/>
                <websockets/>
            </servlet-container>
            <handlers>
                <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
            </handlers>
  <filters>
  <response-header name="Strict-Transport-Security" header-name="Strict-Transport-Security" header-value="max-age=31536000; includeSubDomains;"/>
  </filters> 
        </subsystem>

Save the file and restart the AdminUI service.

When you access "https://<AdminUI>:8443/iam/siteminder/adminui" you will find the "Strict-Transport-Security: max-age=31536000; includeSubDomains;" in the response header.