Upgrading or updating the AppScan 360° platform
- Backing up before upgrading or updating
- Pre-upgrade step for all installations of AppScan 360°
- Update the current version
- Upgrade to a new version of AppScan 360° without migrating data
- Upgrade to a new version of AppScan 360° and migrate data
- Upgrading AppScan Remediation Advisories only
- Upgrading or rolling back AppScan 360° using Helm
- Applying LDAP properties to an upgrade
- To upgrade from an Express single VM install of AppScan 360°, perform a fresh custom single VM or distributed install of AppScan 360°.
- The upgrade procedure is the same for a custom single VM installation of AppScan 360° or a distributed installation.
- AppScan 360° supports custom single VM upgrade from version
1.6.x to version 2.0.0.
Do not skip configuration questions during upgrade.
-
To retain custom certificates from a previous installation, place the certificates in the
certsdirectory structure according to the naming guidelines in installation instructions.
Backing up before upgrading or updating
- Database
Follow the instructions in the MSSQL documentation to backup the database.
- Storage system, whether mounted storage or Kubernetes PV storage.
- Properties files:
- Distributed installation:
singular-singular.clusterKit.properties - Helm installation:
singular-singular.clusterKit.yaml - Single VM installation:
singular-singular.clusterKit.propertiesandas360-aio-answers.env, located underaioWorkspace/audit.In addition, if upgrading single VM installation from the same directory as the previous installation, rename
aioWorkspaceto allow for a new directory to be created during upgrade. For example,aioWorkspace_oldand do not skip configuration questions for single VM setup upon upgrade.
- Distributed installation:
- To retain custom certificates from a previous
installation, place the certificates in the
certsdirectory structure according to the naming guidelines in the installation instructions.
Pre-upgrade step for all installations of AppScan 360°
- Identify the
userapipod name:
For example, a pod name might bekubectl -n hcl-appscan-ascp get podsascp-mr-user-api-7f7bd44c78-c9d7n. - Update storage
owner:
Depending on the number of scans stored on the volume, this may take some time.kubectl -n hcl-appscan-ascp exec <userapi-pod> -- chown -R 1111:2222 /storagemount - Verify the
change:
kubectl -n hcl-appscan-ascp exec <userapi-pod> -- ls -la /storagemount
Update the current version
- Backup all data and ensure no scans are running.
- Update the
singular-singular.clusterKit.propertiesfile. See Preparing the configuration file for file parameters. - From the folder location that contains the extracted
kit,
type:
./setup.sh $PWD/..
Upgrade to a new version of AppScan 360° without migrating data
Perform an upgrade only when there are no active scans running.
- Backup all data and ensure no scans are running.
- HCL AppScan 360° Prerequisite Instructions
- Preparing the configuration file
- Installing AppScan 360°
Upgrade to a new version of AppScan 360° and migrate data
To upgrade AppScan 360° version 1.2 or later to a newer version:
Data is migrated automatically.
- Backup all data and ensure no scans are running.
- Make a backup of
singular-singular.clusterKit.propertiesif you want to maintain the same configuration. - Download the new AppScan 360° installation package from MyHCLSoftware.
- Install AppScan 360° as described in Installing AppScan 360°.Note: When upgrading the installation, use
--target <newfolder>. Upon upgrading successfully, delete previous installation folders to free up space.When it's complete you receive confirmation that the AppScan 360° update is installed and ready to use.
Upgrading AppScan Remediation Advisories only
- Backup all data and ensure no scans are running.
- Download the new AppScan 360° installation package from MyHCLSoftware.
- Provide executable permission to the installer by
running
chmod +x <PATH-OF-INSTALLER/APPSEC-INSTALLER-FILENAME> - Run the installation file, specifying registry
information in the command line.For example:
AppScan360_v1.6.0_ASRA.run -- [registry information] -f ~/.docker/config.jsonYou can specify registry information in one of three ways:- Directly. For
example:
./AppScan360_v1.6.0_ASRA.run -- -server <registry[:port]> -f ~/.docker/config.jsonThis method pushes the AppScan Remediation Advisories image to the registry and installs Helm. It does not attempt to create a secret, but verifies that a secret is available in the cluster.
- From the configuration file specified during
ASCP
installation. For
example:
./AppScan360_v1.6.0_ASRA.run -- -config <singular-singular.clusterKit.properties> -f ~/.docker/config.jsonThe method pushes the AppScan Remediation Advisories image to the registry and installs Helm, and creates or replaces the secret.
- From a separate configuration file. For
example:
./AppScan360_v1.6.0_ASRA.run -- -file <docker_config_file> -f ~/.docker/config.jsonThis method The method pushes the AppScan Remediation Advisories image to the registry and installs Helm, uses the config file as input to create a
secret.yamlfile for Helm, and removes any existing secret in the cluster.If you choose to use a separate configuration file, the file must contain the following information:-
CK_DOCKER_REGISTRY_ADDRESS=<registry[:port]> -
CK_DOCKER_REGISTRY_USERNAME=<username> -
CK_DOCKER_REGISTRY_PASSWORD=<password>
-
- Directly. For
example:
- When installation is complete, you see an appropriate message:
Upgrading or rolling back AppScan 360° using Helm
- Backup all data and ensure no scans are running.
- From inside the cloned repository,
run:
git pull
- Backup all data and ensure no scans are running.
- Review available
versions:
helm history <release-name> -n <namespace>Where<release-name>and<namespace>refer to AppScan 360° components and their relative locations in the repository:- AppScan Central Platform
<release-name>:appscan360-ascp<namespace>:hcl-appscan-ascp
- AppScan Remediation Advisories
<release-name>:asra<namespace>:hcl-asra
- AppScan Central Platform
- Specify the version to which to
rollback:
helm rollback <release-name> <revision-number> -n <namespace>
Applying LDAP properties to an upgrade
In AppScan 360° version 2.0.x single VM install, LDAP related questions are removed from survey questionnaires in favor of using UI-based configuration. However, for installations upgraded from version 1.6.1 or earlier with LDAP/AD integration, these properties require manual configuration as they are not automatically migrated.
Applying LDAP Properties Before Upgrade
- Set Environment Variables: Before running the
installation script, set the following environment
variables in the shell. Replace placeholder values
with actual
values:
export AS360_AIO_AD_DOMAIN='your_domain.com' export AS360_AIO_AD_USERNAME='your_username' export AS360_AIO_AD_PASSWORD='your_password' export AS360_AIO_AD_AUTHORIZED_GROUPS='group1,group2' # Use '' if no groups export AS360_AIO_AD_SSL='false' # Set to 'true' if using SSL export AS360_AIO_AD_TARGET_OU='OU=Users,DC=your_domain,DC=com' - Run the Installation Script: Ensure that the variables are set in the same shell session where the installation script is executed. This allows the installation script to access the variables and apply them to the singular properties file.
- Verify Properties: After installation, check the
singular properties file located at
aioWorkspace/audit/singular-singular.clusterKit.propertiesto confirm that the properties have been applied correctly.
Applying LDAP Properties After Upgrade
- Prepare the Answers File:
- Place the answers file in the installation
folder. If installed through the survey, the
generated answers file can be found at
aioWorkspace/audit/as360-aio-answers.env. Copy this file to the installation folder. - Add the LDAP properties to the answers file,
replacing placeholder values with actual
values:
AS360_AIO_AD_DOMAIN='your_domain.com' AS360_AIO_AD_USERNAME='your_username' AS360_AIO_AD_PASSWORD='your_password' AS360_AIO_AD_AUTHORIZED_GROUPS='' AS360_AIO_AD_SSL='false' AS360_AIO_AD_TARGET_OU='OU=Users,DC=your_domain,DC=com'
- Place the answers file in the installation
folder. If installed through the survey, the
generated answers file can be found at
- Rerun the Installation: Execute the same installation command used previously. The survey questionnaire will be bypassed, and the LDAP properties will be applied to the singular properties file.
- Verify Properties: After installation, check the
singular properties file at
aioWorkspace/audit/singular-singular.clusterKit.propertiesto ensure the properties have been correctly applied.