Technical Setup
The technical setup used by CPS
Security
Security settings for CPS in security.properties file
# API gateway
core.common.security.server.predefined-user-details.api-gateway.password=
core.common.security.server.predefined-user-details.api-gateway-anonymous.password=
# self scanning service
core.common.security.server.predefined-user-details.sss.password=
# scanless frontend service
core.common.security.server.predefined-user-details.scanless-frontend-service.password=
# pos
core.common.security.server.predefined-user-details.pos.password=
# shopping list service
core.common.security.server.predefined-user-details.shopping-list-service.password=
# wdm
core.common.security.server.predefined-user-details.wdm.password=
# Customer Profile Service application client credentials
core.common.security.client.http.auth.username=cps
core.common.security.client.http.auth.password=
# Common OAuth2 keystore/truststore configuration for every application
core.common.security.server.oauth2.keystore.alias=
core.common.security.server.oauth2.keystore.aliasPrefix=
core.common.security.server.oauth2.keystore.location=file:/usr/local/gkretail/security/oauth2.keystore
core.common.security.server.oauth2.keystore.password=
Data source
Data source in ds-embedded.properties file:
# Driver
datasource.driver.mssql=com.microsoft.sqlserver.jdbc.SQLServerDriver
datasource.driver.oracle=oracle.jdbc.driver.OracleDriver
datasource.driver.hdb=com.sap.db.jdbc.Driver
datasource.driver.derby=org.apache.derby.jdbc.EmbeddedDriver
datasource.driver.postgresql=org.postgresql.Driver
datasource.driver=${datasource.driver.oracle}
# Validation query
datasource.validation.query.mssql=select 'x'
datasource.validation.query.oracle=
datasource.validation.query.hdb=
datasource.validation.query.postgresql=
datasource.validation.query=${datasource.validation.query.oracle}
datasource.url.mssql=jdbc:sqlserver://${datasource.server}:${datasource.port};DatabaseName=${datasource.dbName};sendStringParametersAsUnicode=false;encrypt=true;trustServerCertificate=true
datasource.url.oracle=jdbc:oracle:thin:@${datasource.server}:${datasource.port}:${datasource.dbName}
datasource.url.hdb=jdbc:sap://${datasource.server}:${datasource.port}/?databaseName=${datasource.dbContainer}&sessionVariable:APPLICATION=VBR/SBR_GK_OMNI_POS_HRA
datasource.url.derby=jdbc:derby:${datasource.dbName}
datasource.url.postgresql=jdbc:postgresql://${datasource.server}:${datasource.port}/${datasource.dbName}
datasource.url=${datasource.url.oracle}
datasource.server=localhost
# Default ports:
# MSSQL = 1433
# ORACLE = 1521
# HDB = 30013
# POSTGRESQL = 5432
datasource.port=1521
# DB name / SID
# ORACLE = gkretail
# MS SQL = ses
# PG = gkr
datasource.dbName=gkretail
# HANA specific connection string parameters
datasource.dbContainer=GK
datasource.username=gkr_master
datasource.password_encrypted=${ds-embedded.datasource.password_encrypted}
#
# JMX
#
core.datasource.mbean-name=com.gk-software.gkr.customer-profile-service:type=DataSourceMaster
#
# Pool bounds
#
datasource.maxActive=50
Data source configuration in ds-jndi.properties file:
# JNDI name can be different in each web aplication container
# Tomcat: java:/comp/env/GKRSAP_SES
# SAP NetViewer: jdbc/GKRSAP_SES
datasource.jndi.name=jdbc/GKRSAP_SES
Data source configuration in ds-master.properties file:
# Database schema used for master DataSource
tenant.globalDataSource.schemaName=gkr_master
tenant.globalDataSource.dataSourceName=${datasource.jndi.name}
System settings in system.properties file:
# JDBC Datasource configuration
# There are three types of JDBC datasource
# - embedded (one (common) datasource, which is created by application (based on DBCP data source))
# - jndi (one (common) datasource, which is acquired from JNDI)
# - multi-jndi (several datasources, which are acquired from JNDI)
core.data-access.datasource.type=jndi
# Logbook upload type
# sm - create xml files that will be picked up by InfoClient
# log - event is logged
core.monitoring.event.upload.type=log