Upgrade of Enterprise Advanced Features
This section describes how to apply the 1.1.0 patch to the SAS PCE Enterprise Virtual Appliance 1.0.0.
Applies to: SAS PCE Enterprise Virtual Appliance 1.0.0 (AWS AMI and VMware OVA)
Patch bundle: sas-pce-patch-1.1.0.tar.gz
What the patch does
| Item | Action |
|---|---|
Docker images: SAS PCE Enterprise Admin Console (unified-ui), SAS Management API (sas-mgmt-api), and OpenSearch |
Loaded into Docker. Previous tags are retained as <name>:pre-1.1.0. |
Helper utilities in /usr/local/bin/ (configure-sae, sae-test-connection, sas-mgmt-info, unified-ui-info) |
Replaced. The original files are backed up. |
Library scripts in /usr/local/lib/sae/*.sh |
Replaced. The original files are backed up. |
| OpenSearch index templates | Added under /home/ubuntu/appliance/patch/opensearch/templates/. |
| Shipped SAS Management API configuration | Staged in /var/lib/appliance/patch-staging-1.1.0/ for manual review only. |
| Login banner (MOTD) version line | Updated (cosmetic only). |
What the patch does not do
-
It does not change the existing configuration. The
compose.ymlfile,*.envfiles, secrets, certificates,.configured,.hostname,/etc/sae/*, andsas-mgmt-api/config/*are checksummed before and after the patch is applied. If any of these files differ, the patch rolls back its file changes and aborts. -
It does not restart containers. Running containers keep their current image until they are recreated.
-
It does not start the SAS PCE Enterprise Admin Console or OpenSearch. To run these services, perform the optional procedure described in Run the SAS PCE Enterprise Admin Console and OpenSearch. The services run as a separate stack under
/home/ubuntu/appliance/patch/and the existing configuration remains unchanged. -
It does not change your database. Step [5/6] of the patch script writes two files, under
/etc/sysctl.d/and/etc/default/ufw, so that the SAE container can reach your external database. On the 1.0.0 baseline, this traffic is blocked by default.
A fresh 1.1.0 AMI or OVA includes the SAS PCE Enterprise Admin Console and OpenSearch by default.
Prerequisites
-
SSH access to the appliance as a user with
sudoprivileges. -
The appliance is running version 1.0.0. To verify, run:
cat /etc/update-motd.d/00-sas-pce-banner | grep Version -
At least 3 GB of free space in
/var/lib/dockerand/home/ubuntu. -
A snapshot of the appliance taken before you begin: an EBS snapshot (AWS AMI) or a VM snapshot (VMware OVA).
-
The SAE admin password change is completed in a browser against the SAE admin console before you run the
--enable-new-servicesoption. On a factory 1.0.0 appliance, SAE creates a temporaryadmin/adminuser with an Update Password required action. Until you open https://\<appliance>/admin/, log in, and set a new password (any non-empty value, includingadmin), thekcadmlogin fails with the error Account is not fully set up, and--enable-new-servicescannot continue.Note the password that you set. You must pass it as
SAE_ADMIN_PASSWORDwhen you run the SAS PCE Enterprise Admin Console and OpenSearch.
Common pitfalls
Read the following before you start:
-
Do not extract the bundle under
/tmp. The CIS Level 1 hardening mounts/tmpwithnoexec, so./apply-patch.shfails withPermission denied (os error 13). Extract the bundle under/home/ubuntu, as shown in the steps below. -
Do not pipe interactive commands through
tee. Theapply-patch.sh --enable-new-servicescommand prompts for the OpenSearch admin password. Piping throughteebuffers the prompt, and the script appears to hang. If you need a log, usescript -c "..." logfileortee <(cat)instead. -
Recreate SAE after step [5/6]. If step [5/6] (Fixing baseline container egress) is applied, SAE must be recreated so that its JDBC connection pool picks up the new egress settings. The patch prints a reminder. For the command, see Verify the patch.
Apply the patch
Perform the following steps to apply the patch:
-
Obtain the patch bundle. Download the following files:
-
sas-pce-patch-1.1.0.tar.gz -
sas-pce-patch-1.1.0.tar.gz.sha256
-
-
Copy the bundle to the appliance. Run the following command:
scp sas-pce-patch-1.1.0.tar.gz* ubuntu@<appliance-ip>:/home/ubuntu/ -
Verify and extract the bundle. On the appliance, run the following commands:
cd /home/ubuntu sha256sum -c sas-pce-patch-1.1.0.tar.gz.sha256 # must print: OK tar xzf sas-pce-patch-1.1.0.tar.gz cd sas-pce-patch-1.1.0 -
Apply the patch. Run the following command:
sudo ./apply-patch.shThe script prints six numbered steps. The last two steps are new in 1.1.0:
-
[5/6] Fixing baseline container egress (one-time 1.0.0 fix) — Writes
/etc/sysctl.d/99-docker-ip-forward.conf, setsDEFAULT_FORWARD_POLICY=ACCEPTin/etc/default/ufw, and then reloadssysctland UFW. This step is required because the 1.0.0 baseline blocks container-to-external egress, which breaks the SAE connection to an external database in Production mode. On a re-run, or on an appliance that is already fixed, the step prints already correct — nothing to do.This change is forward-only. The
--rollbackoption does not undo it. -
[6/6] Verifying existing configuration is unchanged — Byte-checks
compose.yml, the env files, secrets, and certificates. If anything has changed, the script rolls back and aborts.
On success, the output ends with:
✓ Patch 1.1.0 applied. Existing configuration is unchanged (verified).If the script prints configuration files changed during patch — rolling files back, no changes are kept. Contact Thales Customer Support and provide the output.
-
Verify the patch
-
Run the following commands to verify the patch:
docker images | grep -E 'unified-ui|sas-mgmt-api|opensearch' tail -n 3 /var/lib/appliance/patches.log # shows "APPLIED 1.1.0" sae-status # existing services still healthy -
If step [5/6] printed applied — SAE must be recreated ..., recreate SAE so that its JDBC connection pool picks up the new egress settings. The patch does not do this itself, so that the containers are not restarted guarantee is honored.
cd /home/ubuntu/appliance && sudo docker compose up -d sae for i in {1..60}; do s=$(docker inspect -f '{{.State.Health.Status}}' sae) echo "$i: $s"; [ "$s" = "healthy" ] && break; sleep 2 doneSkip this step if step [5/6] printed already correct — nothing to do.
Review the shipped SAS Management API configuration (optional)
To compare the shipped SAS Management API configuration with the live configuration, run:
diff -r /var/lib/appliance/patch-staging-1.1.0/ /home/ubuntu/appliance/sas-mgmt-api/config/
Merge any required changes manually. The patch never edits the live configuration files.
Run the SAS PCE Enterprise Admin Console and OpenSearch
Applying the patch installs the images and tooling, but does not start any new services. To run the new services, perform this optional step. The services run as a separate Docker Compose project in /home/ubuntu/appliance/patch/, attached to the existing appliance_network. The existing compose.yml, env files, secrets, certificates, and containers are not modified, and .appliance-config is only read.
-
Run the following commands:
cd /home/ubuntu/sas-pce-patch-1.1.0 sudo SAE_ADMIN_PASSWORD='<password-set-in-prerequisites>' \ ./apply-patch.sh --enable-new-servicesThe script performs the following actions:
-
Checks that the patch is applied, the appliance is configured, and the
saecontainer is running. -
Reads the hostname, mode (Development or Production), TLS paths, and other values from the existing
.appliance-config. -
Prompts only for the values that 1.0.0 did not store:
-
SAE admin password — Used once to create the Keycloak clients. It is never saved.
-
Production mode only — A new OpenSearch admin password, and an optional SAS Core API URL. Leave the URL blank to skip it. The URL sets the OpenSearch firewall source IP address.
-
-
Writes all generated files under
/home/ubuntu/appliance/patch/(its owncompose.yml,unified-ui.env,opensearch.env, and CA bundle). -
Starts the stack, creates the Keycloak clients, applies the OpenSearch templates, and configures the OpenSearch trust bundle.
Evaluation (Development) appliances get the SAS PCE Enterprise Admin Console only. OpenSearch is available in Production mode only, as in the first-boot wizard.
The following changes are made outside
patch/. These changes are additive and required for sign-in to work:Location Change Keycloak (SAE masterrealm)New clients unified-ui,unified-ui-server, andunified-ui-backend, atenantidclient scope, and atenantiduser-profile attribute./etc/hosts127.0.0.1 <hostname>is added, if missing.Production mode only UFW rule for 9200/tcpfrom the SAS Core IP address (if provided), and/etc/sysctl.d/70-opensearch.conf. -
-
Verify the new services:
cd /home/ubuntu/appliance/patch && docker compose ps unified-ui-info -
Open the SAS PCE Enterprise Admin Console at http://\<hostname>:3000. Use the hostname, not the IP address.
Remove the new services
To remove the patch stack without affecting the existing appliance, run one of the following commands:
sudo ./apply-patch.sh --disable-new-services # keeps OpenSearch data
sudo ./apply-patch.sh --disable-new-services --purge # also deletes OpenSearch data
Roll back the patch
To roll back the patch, run:
cd /home/ubuntu/sas-pce-patch-1.1.0
sudo ./apply-patch.sh --rollback
The rollback restores the replaced scripts and libraries from /var/lib/appliance/patch-backup-1.1.0/.
The rollback does not undo the step [5/6] egress fix, because reverting the sysctl and UFW changes could break services that rely on it, including the appliance itself. The sysctl drop-in file and the UFW policy change are forward-only.
Docker images are not rolled back automatically. To revert an image, retag the previous version and then recreate the container. For example:
docker tag unified-ui:pre-1.1.0 unified-ui:local # likewise for sas-mgmt-api
Alternatively, restore the snapshot that you took as part of the prerequisites.
Troubleshooting
| Symptom | Cause and resolution |
|---|---|
| Bundle checksum failure | The copy is corrupt or incomplete. Download the bundle again and re-verify it against the .sha256 file. No changes were made. |
no space left on device during docker load |
Free up space in /var/lib/docker (check with docker system df) and rerun the patch. |
run as root |
Run the script with sudo ./apply-patch.sh. |
| The login banner (MOTD) still shows 1.0.0 | This is cosmetic only. Log in again, or ignore it. |
Permission denied (os error 13) when running ./apply-patch.sh |
The bundle was extracted under /tmp, which is mounted noexec on the appliance. Move the bundle to /home/ubuntu and rerun the patch: mv sas-pce-patch-1.1.0.tar.gz* /home/ubuntu && cd /home/ubuntu && tar xzf sas-pce-patch-1.1.0.tar.gz && cd sas-pce-patch-1.1.0 |
kcadm login failed ... Account is not fully set up |
The required SAE admin password change was not completed. Open https://\<appliance>/admin/ in a browser, log in as admin/admin, complete the Update Password prompt, and then rerun --enable-new-services with SAE_ADMIN_PASSWORD='<new-password>'. |
kcadm login failed ... Internal Server Error or unknown_error |
Keycloak encountered a database or connection pool failure. This is usually resolved after step [5/6] applies the egress fix and SAE is recreated. If the issue persists, run docker logs sae \| grep -iE 'ERROR\|agroal'. |
docker network 'appliance_network' not found |
This must not happen in 1.1.0, because enable-patch-services.sh creates the network automatically and attaches the appliance containers to it. If it does happen, rerun the command and attach the full docker ps output to a support ticket. |
--enable-new-services appears to hang with no output after the banner |
The command was piped through tee, and the OpenSearch password prompt was buffered. Press Ctrl+C, and rerun the command without the pipe (or use script -c "..." logfile to capture the output). |