Securing Your Installation

To secure your installation, make sure that the files containing sensitive information are readable only by the user allowed to start your application server.

In your Cloud Connector for 3DSpace On-premises Data installation directory, you have two important files:

  • $ARCH/er-crawler/config/er-crawler_config.json: contains your ER crawler configuration with your encrypted passwords.
  • $ARCH/er-crawler/security/er-crawler_config.key: contains a secret key used to encrypt sensitive information in your er-crawler_config.json file.

This task shows you how to:

Secure the Communication with the Cloud Server

You can configure a trust store to communicate with the cloud server.

Add the cloudSSLContextConfig attribute to your existing er-crawler_config.json file.

Result: Configuration example:

 "cloudSSLContextConfig" : {
    "protocol" : null,
    "trustStorePath" : "/home/data/RTV/truststore.jks",
    "trustStorePassword" : "TSySkYxxeewS/I9dlzVQmAvzSnr2kbjeOk+CUOfPSkE",
    "trustManagerFactoryAlgorithm" : null,
    "keyStorePath" : null,
    "keyStorePassword" : null,
    "keyAlias" : null,
    "keyPassword" : null,
    "keyStoreType" : null,
    "keyManagerFactoryAlgorithm" : null
  }

Use SSL Attributes

You can use the following SSL attributes:

SSL attribute Description
protocol Name of the algorithm for the requested protocol (see https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SSLContext)
trustStorePath Trust store file path
trustStorePassword Trust store password
keyStorePath Key store file path
keyStorePassword Key store password
keyAlias Alias used during SSL authentication
keyPassword Key password
keyStoreType Key store type (see https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore)
keyManagerFactoryAlgorithm Name of the algorithm for the Key manager factory (https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyManagerFactory)

Install and Configure a Forward Proxy

Configure a forward proxy when the Cloud Connector for 3DSpace On-premises Data must reach cloud services through a corporate HTTP proxy.

Only cloud traffic uses forward proxy configuration, except when JVM proxy properties are set on the Java process.

Configure the proxy:

Note: JVM system properties in TomEE are legacy only. Keep them temporarily to avoid disruption during migration, then remove them once forwardProxyConfig is validated. For more details, see Migrate from JVM Properties.

Available Configurations

Method Use
forwardProxyConfig in supplemental_config.json Configure during installation or edit the configuration file directly
JVM system properties in TomEE catalina.properties Obsolete (migration only). Remove after migrating to forwardProxyConfig.

Legacy JVM settings:

http.proxyHost=proxy.example
http.proxyPort=8080
https.proxyHost=proxy.example
https.proxyPort=8080
http.nonProxyHosts=localhost|127.*|[::1]

For authenticated JVM proxies during migration, also set http.proxyUser and http.proxyPassword. The Cloud Connector for 3DSpace On-premises Data configuration credentials are not used when JVM properties take precedence.

Important: JVM properties (if any) are always used first, even when forwardProxyConfig has been configured during the installation process. To make forwardProxyConfig take precedence, remove the JVM proxy settings.

Installation

This section details the steps for configuring the proxy during the installation process, if you answered yes to Do you want to configure a forward proxy for cloud connections?.

Before you begin:

Proxy requirement: configure an idle or read timeout of at least 60 seconds on the corporate proxy. Some calls to cloud services can run longer than typical proxy defaults.

Step Input Installer variable Notes
1 Do you want to configure a forward proxy for cloud connections? ENABLE_FORWARD_PROXY In scripted installations, true or false
2 Enter HTTPS forward proxy host FORWARD_PROXY_HTTPS_HOST Required
3 Enter HTTPS forward proxy port FORWARD_PROXY_HTTPS_PORT Required; default port is 443
4 Enter HTTP forward proxy host FORWARD_PROXY_HTTP_HOST / Required
5 Enter HTTP forward proxy port FORWARD_PROXY_HTTP_PORT Required; default port is 8080
6 Enter Non-proxy hosts (pipe-separated) FORWARD_PROXY_NON_PROXY_HOSTS Default: localhost
7 Do you want to configure authentication for the forward proxy? ENABLE_FORWARD_PROXY_AUTH Optional
8 Enter forward proxy username FORWARD_PROXY_USER Required when authentication is enabled
9 Enter forward proxy password FORWARD_PROXY_PASSWORD Required when authentication is enabled

Note: Passwords are stored encrypted in supplemental_config.json.

Add a Forward Proxy Configuration to an Existing Installation

This section describes the steps to add a forward proxy configuration to an existing installation.

Before you begin:

Proxy requirement: configure an idle or read timeout of at least 60 seconds on the corporate proxy. Some calls to cloud services can run longer than typical proxy defaults.

Edit config/supplemental_config.json in $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/er-crawler/config/.
Field Description
enabled true to activate
httpHost / httpPort Required when enabled
httpsHost / httpsPort Optional; defaults to HTTP values
nonProxyHosts Pipe-separated hosts that bypass the proxy
username / password Optional; both must be set if either one is set

The configuration is validated at startup and by test-local-configuration. If a username is set, the password must be readable with security/supplemental_config.key.

Example:

"forwardProxyConfig": {
  "enabled": true,
  "httpsHost": "proxy.example.com", 
  "httpsPort": 8080,
  "httpHost": "proxy.example.com", 
  "httpPort": 8080,
  "nonProxyHosts": "localhost|127.*|[::1]",
  "username": "proxyuser", 
  "password": "<encrypted>"
}
 

Migrate from JVM Properties

  1. Configure forwardProxyConfig at installation time, or manually in supplemental_config.json (mirror your current JVM host, port, and credentials).
  2. Run test-local-configuration, then test-cloud-connection.
  3. Remove JVM proxy properties from TomEE catalina.properties and restart TomEE.
  4. Run test-cloud-connection again.
  5. Confirm the startup log shows source=SUPPLEMENTAL (and not JVM_SYSTEM_PROPERTIES).
    Situation Result
    No proxy configured Direct cloud connections (default)
    JVM proxy only (obsolete) Still works; migrate to forwardProxyConfig
    forwardProxyConfig configured Supported setup; validate with Crawler Manager (see Validation below)
    Re-install without proxy prompts Existing supplemental_config.json unchanged
    JVM + forwardProxyConfig both set JVM takes precedence until you complete migration - remove JVM settings

Validation

This section describes the steps to validate your proxy configuration.

From $CLOUD_CONNECTOR_INSTALL_DIR/$ARCH/code/command/, run er-crawler-manager-cli.sh/.bat.

Commands are checked as described below:

Order Command Purpose TomEE
1 test-local-configuration Validate forwardProxyConfig and decryptable credentials on disk Not required
2 test-cloud-connection Test outbound cloud connectivity through the effective proxy:

  • Prints [OK] and exits 0 only when all checks pass
  • Completes in under 30 seconds. Allow up to 2 minutes if checks time out (10s connect/read per attempt)

Not required
3 test-cloud-configuration Verify CLM agent workspace permissions Required

Change Proxy Password

Follow the procedure below if you need to change the proxy password.

  1. Edit forwardProxyConfig.password.
  2. Start TomEE or run test-local-configuration.
  3. Confirm logs dipls Encrypted clear passwords in '.../supplemental_config.json' in logs.

Troubleshooting

Symptom What to check Crawler Manager Hint:
Proxy down or wrong host/port Proxy service, forwardProxyConfig, or JVM http(s).proxyHost start the forward proxy or fix forwardProxyConfig host and port
Proxy timeout / firewall Proxy idle or read timeout ≥ 60s; host, port, firewall rules host unreachable through proxy; check proxy host, port, and firewall rules
Long POST fails, short checks pass Proxy timeout below 60s Increase proxy timeout to at least 60 seconds
HTTP 407 / authentication failure Username and password in forwardProxyConfig or JVM http.proxyUser / http.proxyPassword verify proxy username and password in forwardProxyConfig (HTTP 407); run test-local-configuration
HTTPS tunnel blocked Proxy allows CONNECT to cloud hosts check proxy allows HTTPS CONNECT to cloud hosts; verify proxy username and password (HTTP 407)
SSL / trust errors cloudSSLContextConfig trust store check cloudSSLContextConfig trust store — usually not a proxy routing issue
Registry unreachable cloudRegistryUrl, proxy reachability (proxy-specific hint)
Semantic Graph Index lookup failed cloudTenantName, semanticgraphindex service for tenant verify cloudTenantName; service 'semanticgraphindex' registered for tenant
Writes fail, health checks pass Proxy auth logs; credential readability Run test-local-configuration
JVM proxy without JVM credentials Supplemental credentials ignored on JVM path Set http.proxyUser / http.proxyPassword
Dual JVM + forwardProxyConfig warning Migration to forwardProxyConfig must be complete Remove JVM proxy settings from TomEE

Logs and Security

Topic Behavior
Password storage Encrypted in supplemental_config.json with security/supplemental_config.key
Passwords in logs Never logged (username may appear)
Invalid password Authentication skipped at runtime, or test-local-configuration fails
Install output Passwords replaced with placeholders (for example YOUR_PASSWORD_HERE)