Load files and manage containers
In this step, you will load the container images and application config files from an USB stick onto the HSM. Then, you can manage the containers.
Make sure that you deploy container images that are compatible. Please the this table of compatible image versions.
Save the files onto an USB stick
Download the VaultCode release files.
These contain the Securosys-provided container images as .container files.
Copy the following files onto an USB stick:
- All container images (
.container). At least the database and VaultCode. Optionally, also the TSB. - The application configuration files (
application-vault-code-hsm.yml).
Insert the USB stick into the Primus HSM or the Decanus terminal.
Alternatively, if you have configured WebDAV on your HSM, put them onto the WebDAV share. See Section 4.4.7 "Data Transfer with WebDAV Server" in the Primus HSM User Guide for how to set up WebDAV.
Load the Container Images
Load all the VaultCode container images from the USB stick onto the HSM.
Repeat this for the database and TSB images.
Also load the container definitions (via the .sconfig file) and the container application config file.
The instructions on how to install and manage containers are described in Section 14 "VaultContainers Platform" of the Primus HSM User Guide.
The container definitions in the .sconfig file that you load
reference images names (<image>) and config file names (<config>).
When loading the containers you must use the same names as in the .sconfig!
Command Overview
To list details about the containers, images, and application configs, run hsm_diagnostics containers:
>>> hsm_diagnostics containers
VaultContainers platform: running
Containers
securosys-psql, status=running, image=database_v1.0.1, auto_start=enabled, yaml=-
tsb-rest-api, status=running, image=tsb_v2.7.0, port=8080, auto_start=enabled, yaml=application-tsb-hsm_v2.7.0
vault-code-1, status=running, image=vault-code_v2.1.0, port=8081, auto_start=enabled, yaml=application-vault-code-hsm_v2.1.0
Images
vault-code_v2.1.0, ID=sha256:4e666abf1b8f05fbfee001576076435dc60c13bcca9d577956d043f99777eee8
database_v1.0.1, ID=sha256:221f8131a95f92ac3f617cac5eefd95094ee3cb89e48921974714dcccee448e9
tsb_v2.7.0, ID=sha256:856dd630645d23197f5c10f64f0eae06c2234e43831880473d857ca64219272e
YAMLs
application-tsb-hsm_v2.7.0
application-vault-code-hsm_v2.1.0
To list all VaultContainers-related options, run help8:
>>> help8
Container platform commands (Active SO role needed):
Container commands:
hsm_sec_container_start - Start a container
hsm_sec_container_stop - Stop a container
Container image commands:
hsm_sec_container_image_load - Load a container image
hsm_sec_container_image_update - Update a loaded container image
hsm_sec_container_image_delete - Delete a loaded container image
Container YAML file commands:
hsm_sec_container_yml_load - Load a .yml file
hsm_sec_container_yml_update - Update a loaded .yml file
hsm_sec_container_yml_delete - Delete a loaded .yml file