Securing Your Data Hub Application
Secure your Data Hub application using simple configuration. Complete these steps to ensure basic end-to-end security of REST endpoints and data attributes.
Configure the Default Security Profile
Context
Data Hub provides a default Spring security profile. Provide authentication credentials for the roles defined in this profile.
Procedure
Provide Credentials for Data Hub Adapter
Context
If you are using Data Hub with SAP Commerce Cloud, provide connection credentials for the Data Hub Adapter so it can connect to Data Hub.
Procedure
# The username and password for basic authentication of Data Hub adapter with the Data Hub server instance datahubadapter.datahuboutbound.user=<adminuser> datahubadapter.datahuboutbound.password=<adminpass>
Create an OAuth Client for Data Hub Adapter
Context
If you are using Data Hub with SAP Commerce Cloud and the Data Hub Adapter, configure a dedicated OAuth client for Data Hub. The configuration is done in the Backoffice Administration Cockpit.
Procedure
Set Up Encryption
Context
Data Hub comes with some built-in encryption capabilities for attributes that you wish to keep secure in the data store. Use this service for such items as passwords and other sensitive data. This is a mandatory step, as target system passwords are encrypted by default.
Procedure
Define Encrypted Attributes
Context
After you configure encryption and store your key, you can specify which attributes to secure.
Procedure
<attribute>
<name>attributeName</name>
<model>
<type>String</type>
<secured>true</secured>
</model>
</attribute>
Upon restart, the attribute is encrypted in the Data Hub database, and masked in log files.
Testing Your Secured Configuration
Context
You can test your configuration of the production environment by starting Tomcat and runningData Hub.

