Technical Setup

The technical setup on system level is used by the Self Scanning Service, Fraud Detection Service and Payment Service.

Basic Setup

Table 1. system.properties
Property Data Type, Range Description Default
datasource.type String JDBC datasource configuration. There are three types of JDBC datasource:
  • embedded (one (common) datasource, which is created by the application (based on DBCP datasource))
  • jndi (one (common) datasource, which is acquired from JNDI)
  • multi-jndi (several datasources, which are acquired from JNDI)
jndi
com.gk-software.core.common.mod-event-upload.type String Logbook upload type
  • SM - create XML files that will be picked up by InfoClient
  • JMS - send events to ActiveMQ
JMS
Table 2. store-container.properties
Property Data Type, Range Description Default
core.store-container Definition of the store root directory relative to the tenant location; {storeId} is replaced by the store number.
store-root-location-pattern String stores/{storeId}
local-store-root-location-pattern String stores/{storeId}
store-config-file String parameter/store-config.properties

Security

Properties defining the app's keystore and truststore on system level.

Properties defining the app's keystore and truststore on system level.

JSON Web Token

Table 3. security.properties
Property Data Type, Range Description Default
core.common.security.server.oauth2
rs.jws.key.aliasPrefix String Approved key alias prefix for OAuth2 public keys in truststore. oauth2

Keystore Configuration

Table 4. security.properties
Property Data Type, Range Description Default
core.common.security.server.oauth2.keystore Common OAuth2 keystore/truststore configuration for every application.
location String Location of the keystore file. file:/usr/local/gkretail/security/oauth2.keystore
password String Password to access the keystore.

Truststore Configuration

Table 5. security.properties
Property Data Type, Range Description Default
core.common.security.server.oauth2.rs.jws.truststore
source resource | system | jndi Source definition is the source from which truststore is acquired.

Source 'resource'

  • implementation is able to retrieve the truststore from the file system directly
  • the store location is defined in the app configuration
  • the store password is defined in the app configuration in encrypted form

Source 'system'

  • implementation is able to retrieve the truststore from the file system
  • the store location is defined by JAVA system properties (javax.net.ssl.trustStore, javax.net.ssl.trustStorePassword)
  • it simulates the default JAVA behavior of retrieving truststores (but exposes it through IKeyStoreLoader API)

Source 'jndi'

  • implementation is able to retrieve the truststore from JNDI
  • uses Spring Expression Language to be able to look up the correct JNDI object
  • additional configuration is required
  • *.truststore.jndi.base_name, *.truststore.jndi.expression
resource
password_encrypted String Truststore password ${core.common.security.server.oauth2.keystore.password}
resource.location String Resource location; used if source=resource ${core.common.security.server.oauth2.keystore.location}
jndi.base_name String JNDI resource name; used if source=jndi keystore
jndi.expression String Expression to get the truststore; used if source=jndi getKeystore('gkr-auth-service')
system.property_location String Name of the Java system property that holds the truststore location; used if source=system javax.net.ssl.trustStore
system.property_password String Name of the Java system property that holds the truststore password; used if source=system javax.net.ssl.trustStorePassword

SSL

Properties defining the app's keystore used for SSL connections. The property file is maintained on system level.

Table 6. ssl-util.properties
Property Data Type, Range Description Default
ssl.truststore.source String Source definition is the source from which truststore is acquired. Possible values: system, jndi.
  • 'system' - implementation is able to retrieve the truststore from the file system. The store location is defined by JAVA system properties (javax.net.ssl.trustStore, javax.net.ssl.trustStorePassword). It simulates the default JAVA behavior of retrieving truststores (but exposes it through IKeyStoreLoader API).
  • 'jndi' - implementation is able to retrieve the trust-store from JNDI. Uses the Spring Expression Language to be able to look up the correct JNDI object. Additional configuration is required: *.truststore.jndi.base_name, *.truststore.jndi.expression
system
ssl.truststore.cache Boolean Defines whether the result is cached or is reloaded for each use (it can be changed at runtime) false
ssl.truststore.jndi.base_name String Name under which the keystores wrapper is exposed in JNDI. keystore
ssl.truststore.jndi.expression String SpEL expression for retrieval of the correct truststore from wrapper. getKeystore('TrustedCAs')

Secure Client Onboarding

Properties defining the connection and credentials to access Client Identity Management Service (CIMS).

Table 7. security.properties
Property Data Type, Range Description Default
core.common.security.server.cims.url String Base URL for CIMS http://cims:8080/cims
core.common.security.server.oauth2.rs.jws.*
jwkSetEndpoint.1 String Endpoint path to reach the CIMS to acquire JWK set ${core.common.security.server.cims.url}/services/rest/cims/v1/auth/jwks
jwkBackupDir String Retrieved JWK sets are stored to this location for caching and offline situations ${self-scanning-service.root.dir.local}/jwk-keys
jwkUpdatePeriod String JWK sets are refreshed periodically 24h

Database Connections

System level configurations to define the DB access.

DB Connection Master

Table 8. ds-master.properties
Property Data Type; Range Description Default
tenant.globalDataSource.schemaName String Database schema used for master datasource. gkr_master

DB Driver Settings

Used if the app is configured to connect to DB using embedded drivers.

Table 9. ds-embedded.properties
Property Data Type; Range Description Default
datasource.dbName String DB name / SID.
  • ORACLE = gkretail
  • MS SQL = ses
  • PostgreSQL = gkr
gkretail
datasource.dbContainer String HANA-specific connection string parameters. GK
datasource.driver String Database driver name
  • MSSQL - datasource.driver.mssql
  • ORACLE - datasource.driver.oracle
  • HDB - datasource.driver.hdb
  • PostgreSQL - datasource.driver.postgresql
${datasource.driver.oracle}
datasource.port Integer Port where the DB server is listening. Default ports:
  • MSSQL = 1433
  • ORACLE = 1521
  • HDB = 30013
  • PostgreSQL = 5432
1521
datasource.server DB server address. localhost
datasource.username User name for DB access. gkr_master
datasource.password_encrypted Password for DB access. The password should be entered in plain text and is immediately encrypted by Storemanager. ${datasource.password_encrypted.oracle}

JNDI Settings

Used if the app is configured to connect to DB over a JNDI datasource.

Table 10. ds-jndi.properties
Property Data Type; Range Description Default
JNDI name datasource.jndi.name Unique name to identify the JNDI data source. jdbc/GKRSAP_SES

Store Configuration

System level configuration that defines how the structure level configurations can be found.

Table 11. store-container.properties
Name Data Type, Range Description Default
core.store-container Patterns and locations for the store configuration files.
store-root-location-pattern String stores/{storeId}
local-store-root-location-pattern String stores/{storeId}
store-config-file String parameter/store-config.properties
store-registry-mbean-name String ${self-scanning-service.jmx.domain}:type=StoreRegistry
store-controller-mbean-name String ${self-scanning-service.jmx.domain}:type=StoreController

The basic store configuration is in a properties file on store level.

Table 12. store-config.properties
Property Data Type, Range Description Default
core.store-container.store.enabled String true
gkr.tenant.id String @TENANT_ID@