Configuring Job size limits for Dynamic Engine environments
To protect your Dynamic Engine environments from Denial of Service (DoS) attacks, you can set limits on Job artifact sizes during deployment and execution. Any Job artifact that exceeds these limits is automatically deleted.
Customize Job size limits by creating a custom values file and applying it to your Dynamic Engine environment.
Before you begin
- The dynamic-engine-crd custom resource definitions must have been installed using the oci://ghcr.io/talend/helm/dynamic-engine-crd helm chart. If not, run the following commands for the installation:
- Find the chart version to be used:
- Run the following Helm command:
helm show chart oci://ghcr.io/talend/helm/dynamic-engine-crd --version <engine_version> - See the version directly from Talend Management Console or check the Dynamic Engine changelog for the chart version included in your Dynamic Engine version.
- Use an API call to the Dynamic Engine version endpoint.
- Run the following Helm command:
- Run the following command to install the Helm
chart of a given version:Replace <helm_chart_version> with the chart version supported by your Dynamic Engine version.
helm install dynamic-engine-crd oci://ghcr.io/talend/helm/dynamic-engine-crd --version <helm_chart_version>Without specifying the version, you install the latest available dynamic-engine-crd chart version.
- Find the chart version to be used:
-
Your Dynamic Engine must have been deployed. If not, run this command to deploy it:This is the default deployment, because the current customization is only needed on the Dynamic Engine environment side. For this reason no customization is configured for the Dynamic Engine instance.
helm install dynamic-engine -f <engine-id>-helm-values/<engine-id>-values.yaml oci://ghcr.io/talend/helm/dynamic-engine
Procedure
Results
Verify that the jobLimits property appears in the ConfigMap called global-configuration for your Dynamic Engine environment:
"jobLimits": {
"maxZipNameLength": 240,
"maxZippedEntries": 2048,
"maxUnzippedSize": 1000000000,
"maxUnzippedFolderNameLength": 240,
"maxUnzippedFileNameLength": 240,
"maxZipDepth": 64
}These fields specify the following size limits:
- maxZipNameLength: Maximum length of the zip file name.
- maxZippedEntries: Maximum number of files and directories in the zip file.
- maxUnzippedSize: Maximum size of the uncompressed zip file in bytes.
- maxUnzippedFolderNameLength: Maximum length of any folder name after unzipping.
- maxUnzippedFileNameLength: Maximum length of any file name after unzipping.
- maxZipDepth: Maximum nesting level of directories in each Job artifact zip file.