For you

Intershop Documentation
Results will update as you type.
  • Cookbook - Gradle Build Tools
  • Cookbook - Gradle Deployment Tools (7.4 CI - ICM 7.7)
  • Cookbook - Gradle Developer Workflow
  • Cookbook - Gradle Developer Workflow (valid to Gradle Tools 2.7)
  • Cookbook - Hotfix Creation
  • Cookbook - Hotfix Recipes
  • Cookbook - Setup of CI Infrastructure
  • Cookbook - Setup of CI Infrastructure (valid to GradleTools 1.1)
  • Cookbook - Setup of CI Infrastructure (valid to GradleTools 2.1)
  • Cookbook - Setup of CI Infrastructure (valid to Gradle Tools 2.3)
  • Cookbook - Setup of CI Infrastructure (valid to Gradle Tools 2.7)
  • Guide - Deployment Solr Cloud Server
  • Cookbook - Solr Cloud Server
  • Cookbook - Deployment of Solr Search Adapters
  • Guide - General Database Setup (valid to 7.10)
  • Guide - Quick Database Setup With DBCA Templates
  • Guide - Quick Project Setup (valid to Gradle Tools 2.11)
  • Guide - Quick Project Setup (valid to Gradle Tools 2.7)
  • Guide - Setup Oracle XE as Intershop Development Database (valid to 7.10)
  • internal - Build, Assembly and Deployment
  • Overview Diagram
  • Overview - Public Release Notes - Gradle Tools
  • Reference - Gradle Assembly Tools
  • Reference - Gradle Build Tools
  • Reference - Gradle Deployment Tools
  • Cookbook - Deployment Tools ICM 7.10
  • Guide - Quick Project Setup
  • Access to Public Repository (repository.intershop.de)
  • Support Article - Authenticate a User Against an LDAP System
  • Support Article - Build Configuration Updated to Gradle Tools Version 2.11
  • Support Article - Build Fails With an Exception Concerning Gradlew
  • Support Article - Configure an Alternative Phantom JS Driver Download URL
  • Support Article - Creating Another Application Within an Already Existing Channel
  • Support Article - Deployment Stops While Looking for Oracle 19 Drivers
  • Support Article - Gradlew Commands Fail with Stack Map Frame Exception
  • Support Article - Install Intershop 7.4 CI on Windows
  • Support Article - Installation and Basic Configuration of Apache Solr Search on a Dedicated Apache Tomcat Server Instance for ICM
  • Support Article - Keep Existing Development Environments Working After Importing Intershop 7.5.2 / 7.5.3 to the Nexus
  • Support Article - OpenSSL Error Unable to Load Config Info From /usr/local/ssl/openssl.cnf
  • Support Article - Preparing a Rolling Deployment Without Downtime
  • Support Article - Re-Deployment of Intershop 7.4 CI Overwrites the Valid "encryption.properties"
  • Support Article - Simple Deployment of an ICM Demo Server
  • Support Article - Tomcat Listener JreMemoryLeakPreventionListener Causes a Full Garbage Collection Every Hour
  • Support Article - CSV Mapping Template Handling
  • Support Article - Change Server Properties for Platform Customers
  • Video Tutorial - Intershop CI Structure Overview
  • Video Tutorial - Simple Setup of a Development-System (valid to 7.10)
  • Video Tutorial - Prepare Your Artifact Repository Server (valid to 7.10)
  • Video Tutorial - Simple Deployment of a Production System (valid to 7.10)
  • Video Tutorial - Continuous Integration (valid to Intershop 7.4 CI)
  • Support Article - Configure a Custom Deployment Logic after a Defined System Task
  • Support Article - Switch to New Intershop Public Repository
  • Announcement - Action Required - Project Changes Due to Missing JCenter Libraries Required

    /
    Support Article - Re-Deployment of Intershop 7.4 CI Overwrites the Valid "encryption.properties"
    Edit

    Support Article - Re-Deployment of Intershop 7.4 CI Overwrites the Valid "encryption.properties"

    Dec 08, 2022

    Analytics

    Loading data...

    Table of Contents

    Product Version

    7.4.6

    Product To Version

    7.4.6
    Status

    New Labels

    Introduction

    This document replaces the outdated article with the ID 2572B0 and the title Re-deployment of Intershop 7.4 CI overwrites the valid "encryption.properties".

    This article offers two solutions for the missing encryption configuration in Intershop 7.4 CI in case you re-deploy and thus overwrite your valid settings.

    Problem

    The encryption configuration (keystore, randomfile, configuration files) coming with the new Intershop 7.4 CI deployment will (by default) be overriden with the original contents upon next redeployment (e.g., not containing property intershop.encryption.keystore.password). The intershop.keystore and random files however will still exist.
    Upon next access of the keystore a new value for intershop.encryption.keystore.password is generated. This is now inconsistent with the keystore.

    Here is an example encryption.properties:

    intershop.encryption.keystore.password=Phvvkl3XWhnPmRBLwiWbSCS5bMwwxp3JtWx3Hwpr5j1UIwpJiT45Xsf9pmaIUFu55oZVg6qFddegZo9Ky169Zr3CMy
    intershop.encryption.keystore.file=${IS_SHARE}/system/config/cluster/intershop.keystore
    intershop.encryption.random.file=${IS_SHARE}/system/config/cluster/random

    Solution

    There are two solutions how to deal with this issue:

    • Solution 1: Keeping the encryption.properties after initial deployment is advised for customers which do not use a continuous delivery, and administer their servers in a traditional, manual way.
    • Solution 2: The deployment of the random-file, keystore and encryption.properties is advised for customers using continuous delivery. They want to be enabled to re-deploy their system automatically and repeatingly with the deployment.

    The intershop.keystore and random files can be generated for example by dbinit.

    Discussion

    Keep the encryption.properties

    For detailed information see Cookbook - Gradle Deployment Tools (look at 14 Recipe: Keep Local Modifications).

    settings.gradle:

    [...]
    deploymentBootstrap {
        [...]
        config {
            [...]
            assemblyDeployment {
                [...]
                modificationPriorities = ['default', 'intershop', 'myProject']
            }
            
            deployment {
                modification {
                    keep('encryptionProperties') {
                        priority 'myProject'
                        dir target.shareDirectory
                        include 'system/config/cluster/encryption.properties'
                    }
                }
            }    
        }
    }

    Encryption Configuration (keystore, random-file, encryption.properties) as a Part of the Deployment

    For detailed information see Cookbook - Gradle Deployment Tools (look at 8 Recipe: Deploy Custom Files).

    1. Create the keystore, random-file and encryption.properties (generated by dbinit or server access).
    2. Add these files to your deployment environment, e.g., to the folder of the settings.gradle.
    3. Make the following entries in the settings.gradle: (add <keystore>,<random-file> and encryption.properties to deployment, exclude encryption.properties from core deployment).

      [...]
          deploymentBootstrap {
              [...]
              config {
                  [...]
                  deployment {
                      files {
                          additionalProperties {
                              // Copy the files from the same folder as this settings.gradle file
                               from new File(settingsDir, '<random-file>'), new File(settingsDir, '<keystore>'), new File(settingsDir, 'encryption.properties')
                   
                              // Define target of the copy operation
                              into new File(target.shareDirectory, 'system/config/cluster/')
                          }
                      }
                  }                     
                  
                  project(':core') {  
                      afterEvaluate {                      
                          deployment.files.share {                                                                                                 
                              exclude 'system/config/cluster/encryption.properties'            
                          } 
                      }                                                                       
                  }
              }
          }
    , multiple selections available, Use left or right arrow keys to navigate selected items
    my:kb_7x4_ci
    doc_status_final
    doc_access_contract
    my:kb_sync
    doc_type_article
    Add label
    Related content
    encryption.properties
    encryption.properties
    Gerd Kunze (Deactivated)
    Guide - 12.0.0 - Encryption Configuration
    Guide - 12.0.0 - Encryption Configuration
    Thomas Bergmann
    Recipe - Configure Encryption
    Recipe - Configure Encryption
    Tim Enderling (Deactivated)
    Concept - DB Password Encryption (7.4 - 7.4 CI)
    Concept - DB Password Encryption (7.4 - 7.4 CI)
    Lachezar Balev (Deactivated)
    Cookbook - Encryption
    Cookbook - Encryption
    Sven Kiesewetter
    Guide - Secret Store Process
    Guide - Secret Store Process
    Moritz Karsch
    {"serverDuration": 24, "requestCorrelationId": "1b8536fc1efc4f20abe73fee772c9d4a"}