# Securing Remote Engine

Available in...

* Cloud API Services Platform
* Cloud Big Data
* Cloud Big Data Platform
* Cloud Data Fabric
* Cloud Data Integration
* Cloud Data Management Platform

Enhance Remote Engine security by encrypting sensitive configuration values and implementing safeguards against potentially harmful artifact archive content.

Information noteTip: Talend Remote Engine provides additional security features beyond the basic measures. These include managing user access, protecting sensitive data within Jobs, securing network communication using SSL, and ensuring the authenticity of executed artifacts through signature verification. For further information, see [Configuring Remote Engine](https://help.qlik.com/talend/en-US/remote-engine-user-guide-windows/Cloud/configuring-talend-remote-engine).

## Encrypting sensitive values before the first start of Talend Remote Engine

Available in...

* Cloud API Services Platform
* Cloud Big Data
* Cloud Big Data Platform
* Cloud Data Fabric
* Cloud Data Integration
* Cloud Data Management Platform

Encrypt sensitive engine configuration values to protect against unauthorized access.

### Procedure

1. Set up encryption by creating an environment variable:
   * Variable name: TMC\_ENGINE\_CONFIG\_ENCRYPT\_PASSWORD.
   * Value: Your chosen encryption password.
2. Start the engine.

### Results

After starting up the engine, the following configuration values are protected:

Protected Configuration ValuesProtected Configuration Values

| Services | Files | Properties |
| --- | --- | --- |
| ActiveMQ | org.talend.ipaas.rt.eventsource.amq.cfg | activemq.broker.password |
| Artifacts cloud storage | org.ops4j.pax.url.mvn.cfg | org.ops4j.pax.url.mvn.servers.&lt;account-id&gt;.release.secretKey |
| Logs cloud storage | org.talend.ipaas.rt.logs.cfg | account.secret.key |
| Artifact execution metrics vault | org.talend.ipaas.engine.metrics.vault.cfg | vault.secretId |
| Observability metrics | org.talend.observability.omc.appender.vault.cfg | vault.secretId |

The password for the JKS file used for artifact signature verification can also be encrypted. For more information, see [Verifying artifact signature with a custom signing key](https://help.qlik.com/talend/en-US/installation-guide-linux/engines/verifying-signature-on-re_c.html#verifying-artifact-signature_t). The encryption procedure described in that topic is separate from the Talend Remote Engine configuration encryption described here.

## Improving security against malicious archive content

Available in...

* Cloud API Services Platform
* Cloud Big Data
* Cloud Big Data Platform
* Cloud Data Fabric
* Cloud Data Integration
* Cloud Data Management Platform

Talend JobServer, one of the core parts of Talend Remote Engine, has built-in protection against ZIP Slip and ZIP Symlink attacks. To enhance security further, you can set limits for archive properties. This protects Talend JobServer from potentially harmful Job archive content.

### About this task

Malicious Job archive content can lead to Denial of Service attacks that aim to compromise the file system or consume all available disk space.

To mitigate this risk, you can set stricter limits for folders and files names, ensuring sufficient space needed for your Job deployments. The default values for these limits are stored in the org.talend.remote.jobserver.server.cfg file in the etc directory.

When setting these values, ensure they do not exceed the limitations supported by the file system used for the TalendJobServersFiles folder. If any of the specified limits are surpassed during deployment, an error message is displayed and the deployment is rejected. This approach helps maintain system integrity and prevents potential security breaches.

Information noteNote: On Linux systems, you can check current name length limits using this command: getconf -a | grep -i name\_max.

This command displays all system configuration variables related to maximum file name lengths.

### Procedure

Evaluate the default values of the following properties and make changes if necessary:

These properties all start with

```
org.talend.remote.jobserver.commons.config.JobServerConfiguration.
```

Security parameters for malicious archive protectionSecurity parameters for malicious archive protection

| Parameters | Description |
| --- | --- |
| ```<br>MAX_UNZIPPED_SIZE<br>``` | Maximum size for the archive ZIP file that is being extracted<br>during the deployment.<br><br>The default value is 1 GB. |
| ```<br>MAX_ZIPPED_ENTRIES<br>``` | Number of entries in the archive file.<br><br><br>The default<br>maximum value is 2048. |
| ```<br>MAX_ZIP_NAME_LENGTH<br>``` | Length of the archive ZIP file name.<br><br>The default maximum value is 240<br>characters. |
| ```<br>MAX_UNZIPPED_FOLDER_NAME_LENGTH<br>``` | Length of folder names inside the archive ZIP file.<br><br><br>The<br>default maximum length of the unzipped folder name is<br>240 characters. |
| ```<br>MAX_UNZIPPED_FILE_NAME_LENGTH<br>``` | Length of file names inside the archive ZIP file.<br><br>The default maximum value is 240<br>characters. |
| ```<br>MAX_ZIP_DEPTH<br>``` | Depth limit for folders inside the archive ZIP file.<br><br><br>The<br>default value is 64 levels. |
| ```<br>MAX_ARCHIVES_DIR_SIZE<br>``` | Size limit for the sum of all archives stored in<br>TalendJobServersFiles/archiveJobs<br>folder.<br><br>The default size limit is 100GB. |