Customize security parameters
You can configure your own rule for security parameters in IBM® Db2® Data Management Console to adjust the security strength.
Configure User ID rule
Although IBM Db2 Data Management Console delegates authentication to external security systems, define a restriction pattern for user ID is still a good security practice.
In IBM Db2 Data Management Console, the default rules for user ID is:
- Total length from 1 to 128 characters;
- Allowed characters are lower-case letters(a-z), numbers(0-9), underscore(_), hyphen(-), dot(.), at(@) and comma(,);
- Begin with a lower-case letter or number.
- Navigate to the \Config folder of your IBM
Db2 Data Management Console installation
and open the
dswebserver_override.propertiesfile. - Add the following property value:
userid.rule=<a regular expression for user ID> - Save the file and restart IBM Db2 Data Management Console.
Append customized HTTP response headers to web resources
If you want to set a rule to restrict the loading of web resource to preventing attacks like Clickjacking or XSS, you can append your own headers to HTTP responses.
- Open the
bootstrap.propertiesfile.<dmc_install_location>/wlp/usr/servers/dsweb/bootstrap.properties - Add the following property value:
http.response.append.header=<header_name1:header_value1;header_name2:header_value2;...>For example:
http.response.append.header=X-Frame-Options:DENYNote: To set the Referrer-Policy, append the following customized HTTP response header to web resources:http.response.append.header=Referrer-Policy:no-referrer-when-downgrade - Save the file and restart IBM Db2 Data Management Console.
Verify server host name or IP address
If you want to prevent 'Host Header Injection' attack that someone intercept your HTTP requests and replace the value of host header, you can configure a white list of host names and IP address of your server where IBM Db2 Data Management Console is installed to enable verification of the host header.
- Navigate to the \Config folder of your IBM
Db2 Data Management Console installation
and open the
dswebserver_override.propertiesfile. - Add the following property value:
allowed_hostname_list=<host_name_or_ip_1,host_name_or_ip_2,...> - Save the file and restart IBM Db2 Data Management Console.
You can only access the service of IBM Db2 Data Management Console through the host name or IP address you configured in the property value.
Customize several JSSE security properties
To meet the latest security requirement, IBM Db2 Data Management Console has overwritten some of the default JSSE security properties of IBM SDK, Java Technology Edition, Version 8.
If you want to customize these properties and to have an even more strength security rule, you can modify the values of following properties.
- Open the
dmc.securityfile.<dmc_install_location>/wlp/usr/servers/dsweb/dmc_security - Modify the following property value:
jdk.tls.disabledAlgorithms - Save the file and restart IBM Db2 Data Management Console.
- Open the
bootstrap.propertiesfile.<dmc_install_location>/wlp/usr/servers/dsweb/bootstrap.properties - Edit the following property value:
jdk.tls.ephemeralDHKeySizeFor example:
jdk.tls.ephemeralDHKeySize=2048 - Save the file and restart IBM Db2 Data Management Console.
Customize idle timeout value
You can add a customized idle timeout value that will automatically log off the console after 'x' minutes of user inactivity.
- Open the
dswebserver_override.propertiesfile.<dmc_install_location>/Config/dswebserver_override.properties - Add the following property value:
idle_timeout=x_Mins - Save the file and refresh the browser.
For example, to specify the timeout value as 10 minutes, add the following property value.
idle_timeout=10
This causes the console to automatically logoff after 10 minutes of inactivity (no keyboard or mouse movement).
To reset the timeout value in the file to the default value of 30 minutes, go to
path/to/dmc/Config/dswebserver_override.properties file and delete the timeout
value that was previously set. The value of idle_timeout property must be empty.
Refresh the browser for the timeout value to be set to the default value of 30 minutes.