1.0 Introduction
This article describes the procedure for deploying the Fortanix-Data-Security-Manager (DSM) Accelerator Webservice on VMware vSphere Kubernetes Service (VKS) and integrating it with Fortanix DSM SaaS.
Fortanix DSM Accelerator Webservice provides a REST-based interface for cryptographic operations, allowing client applications to perform encryption and decryption operations using cryptographic keys managed by Fortanix DSM.
DSM Accelerator Webservice is deployed as a containerized application within a VKS cluster. It connects to Fortanix DSM SaaS to authenticate applications and access cryptographic keys. Client applications can then communicate with DSM Accelerator Webservice through their REST APIs to perform cryptographic operations without directly interacting with DSM.
This integration enables organizations running workloads on VMware Cloud Foundation (VCF) environments to use Fortanix DSM for centralized cryptographic key management and data protection.
1.1 Components
The integration consists of the following components:
VMware vSphere Kubernetes Service (VKS): Provides the Kubernetes environment in which DSM Accelerator Webservice is deployed and managed.
Fortanix DSM Accelerator Web Service: Runs as a containerized application within the VKS cluster and provides REST APIs for cryptographic operations.
Fortanix DSM SaaS: Manages cryptographic keys and authenticates the DSM Accelerator Webservice application.
Client Application: Communicates with DSM Accelerator Webservice through its REST APIs to perform cryptographic operations such as encryption and decryption.
2.0 Workflow
The integration workflow is as follows:
Fortanix DSM Accelerator Webservice is deployed as a container within the VKS cluster.
DSM Accelerator Webservice is configured with the Fortanix DSM SaaS endpoint.
DSM Accelerator Webservice authenticates with Fortanix DSM using the configured application credentials.
A client application sends cryptographic requests to the DSM Accelerator Webservice REST API.
DSM Accelerator Webservice retrieves the required cryptographic key from Fortanix DSM.
DSM Accelerator Webservice performs the requested cryptographic operation and returns the result to the client application.
3.0 Product Tested Version
The following version was used during Broadcom VKS validation:
DSM Accelerator Webservice version: 1.36.2980
Container registry:
cr.download.fortanix.comImage:
cr.download.fortanix.com/dsma
4.0 Prerequisites
Before deploying DSM Accelerator Webservice on VKS, ensure that the following requirements are met:
VMware VKS Environment:
A VMware vSphere Kubernetes Service (VKS) cluster is provisioned and operational.
The user has the necessary permissions to create and manage Kubernetes Deployments, Services, and Secrets in the target namespace.
The VKS cluster can access the Fortanix container registry to download the DSM Accelerator Webservice image.
The VKS cluster has network connectivity to the Fortanix DSM SaaS endpoint.
Required Tools: Ensure that the following tools are available:
kubectl: Required on the machine used to administer the VKS cluster to create and manage Kubernetes resources and deploy DSM Accelerator Webservice.
Utilities: The following utilities are required for the encryption and decryption validation procedure described in Section 9.0: Validate Encryption and Decryption Operations:
curl: Used to send REST API requests to DSM Accelerator Webservice.jq(optional): Used to parse JSON responses returned by the DSM Accelerator Webservice APIs.
Normally, a client application in a different container calls DSM Accelerator. For this validation procedure, install
curlandjqinside the DSM Accelerator Webservice container, as described in Section 9.2: Install Validation Utilities.Fortanix DSM SaaS Account: Ensure the following:
Access to a Fortanix DSM SaaS account.
Permissions to create groups, applications, and security objects.
An API key for authenticating the DSM Accelerator Webservice application with DSM.
A security object configured for the required cryptographic operations.
For more information, refer to Section 5.0: Configure Fortanix DSM.
5.0 Configure Fortanix DSM
A Fortanix DSM service must be configured, and the URL must be accessible. Before deploying DSM Accelerator Webservice, configure the required application and cryptographic key in Fortanix DSM.
To create a Fortanix DSM account and group, refer to the following sections:
5.1 Signing Up
To get started with the Fortanix DSM cloud service, you must register an account at <Your_DSM_Service_URL>. For example, https://amer.smartkey.io. On-premises customers use the KMS URL, and the SaaS customers can use the URLs as listed here based on the application region.
For more information on how to set up the Fortanix DSM, refer to Sign Up for Fortanix Data Security Manager SaaS.
5.2 Creating an Account
Access <Your_DSM_Service_URL> in a web browser and enter your credentials to log in to Fortanix DSM.
.png?sv=2026-02-06&spr=https&st=2026-12-06T01%3A53%3A18Z&se=2026-12-06T02%3A16%3A18Z&sr=b&sp=r&sig=Li9UpiD1DhxB%2FMRQqR42BoGHwOQ6VHCGp7OAvDXXHQc%3D)
Figure 1: Logging in
For more information on how to set up an account in Fortanix DSM, refer to Getting Started with Fortanix Data Security Manager - UI.
5.3 Creating a Group
Perform the following steps to create a group in the Fortanix DSM:
In the DSM left navigation panel, click the Groups menu item, and then click ADD GROUP to create a new group.
.png?sv=2026-02-06&spr=https&st=2026-12-06T01%3A53%3A18Z&se=2026-12-06T02%3A16%3A18Z&sr=b&sp=r&sig=DB0NCoA4kQwMIh%2FoYhM0E55wWpliHzyOObbrIhJN1Sc%3D)
Figure 2: Add groups
On the Adding new group page:
Title: Enter a name for your group.
Description (optional): Enter a short description of the group.
Click SAVE to create the new group.
For more information about groups, refer to Definitions.
TIP
It is recommended to configure a Key undo policy for groups for the cryptographic keys used by the application before creating or using the keys. Without a configured Key undo policy, key deletion is permanent and the deleted key cannot be recovered. Deleting an encryption key may result in permanent loss of access to the protected data and service disruption for applications that depend on the deleted key. For detailed steps, refer to Key Undo Policy.
5.4 Creating an Application
Perform the following steps to create an application (app) in the Fortanix DSM:
In the DSM left navigation panel, click the Apps menu item, and then click ADD APP to create a new app.
.png?sv=2026-02-06&spr=https&st=2026-12-06T01%3A53%3A18Z&se=2026-12-06T02%3A16%3A18Z&sr=b&sp=r&sig=1KdIiR0aLAvM%2BFtQSiv0MWwgz2O0S%2BqPemaBrsf%2FpXM%3D)
Figure 3: Add application
On the Adding new app page:
App name: Enter the name for your application.
ADD DESCRIPTION (optional): Enter a short description of the application.
Authentication method: Select API Key (the default option) as the authentication method from the drop down menu. For more information on these authentication methods, refer to Authentication.
NOTE
API Key is the only authentication option currently supported by Fortanix DSM Accelerator Webservice.
Assigning the new app to groups: Select the group created in Section 5.3: Creating a Groupfrom the list.
Click SAVE to add the new application.
For more information about applications, refer to Definitions.
5.5 Copying the API Key
Perform the following steps to copy the API key from the Fortanix DSM:
In the DSM left navigation panel, click the Apps menu item, and then click the app created in Section 5.4: Creating an Application to go to the detailed view of the app.
On the INFO tab, click VIEW API KEY DETAILS.
From the API Key Details dialog box, copy the API Key of the app to use in Section 9.3: Execute the Encryption and Decryption Test.
5.6 Creating a Security Object
Perform the following steps to generate an AES key in the Fortanix DSM:
In the DSM left navigation panel, click the Security Objects menu item, and then click ADD SECURITY OBJECT to create a new security object.
.png?sv=2026-02-06&spr=https&st=2026-12-06T01%3A53%3A18Z&se=2026-12-06T02%3A16%3A18Z&sr=b&sp=r&sig=V15UFvOQWJpmzdIv7j6z8OG6WcaLmLN%2FVV%2FZ66CgCz4%3D)
Figure 5: Adding security object
On the Add new Security Object page:
Security Object Name: Enter the name for your security object. For example, vks test key.
Group: Select the group as created in Section 5.3: Creating a Group.
Select GENERATE.
In the Choose a type section, select the AES key type.
In the Key Size section, select the size of the key in bits. Keep it as 256.
In the Key operations permitted section, select the operations required for the cryptographic operations performed by the application, including Export, as required by the validated configuration.
Click GENERATE to create the new security object.
For more information about security objects, refer to Definitions.
6.0 Prepare the VKS Environment
6.1 Log In to the VKS Cluster
Connect to the VKS environment using the Kubernetes command-line tool.
Run the following command to verify cluster connectivity:
kubectl get nodesVerify that the cluster nodes are in the Ready state.
6.2 Verify the Kubernetes Context
Before creating Kubernetes resources, run the following command to verify that the active context points to the intended VKS cluster.
kubectl config current-context NOTE
Ensure that all subsequent Kubernetes commands are executed against the intended VKS cluster and namespace.
6.3 Select the Deployment Namespace
Ensure that you are working in the intended Kubernetes namespace before deploying DSM Accelerator Webservice.
Run the following command to verify the current namespace:
kubectl config view --minify --output 'jsonpath={..namespace}'If required, switch to the intended namespace:
kubectl config set-context --current --namespace=<NAMESPACE>7.0 Configure Container Registry Authentication
The DSM Accelerator Webservice container image is hosted in the Fortanix private container registry. Configure authentication so that VKS can pull the image.
7.1 Configure Container Registry Credentials
First, export the Fortanix container registry credentials:
export REGISTRY_USERNAME="<CONTAINER_REGISTRY_USERNAME>"
export REGISTRY_PASSWORD="<CONTAINER_REGISTRY_PASSWORD>"
export REGISTRY_URL="cr.download.fortanix.com"Where,
REGISTRY_URL: The Fortanix container registry endpoint that hosts the DSM Accelerator Webservice container image (https://cr.download.fortanix.com).REGISTRY_USERNAME: The username used to authenticate to the Fortanix container registry.REGISTRY_PASSWORD: The password or token used to authenticate to the Fortanix container registry.
NOTE
Contact Fortanix Support for instructions on creating a username and password for the Fortanix Container Registry.
7.2 Create a Docker Registry Secret
Run the following command to create a Kubernetes secret containing the container registry credentials:
kubectl create secret docker-registry dsma-registry-secret \
--docker-server="$REGISTRY_URL" \
--docker-username="$REGISTRY_USERNAME" \
--docker-password="$REGISTRY_PASSWORD"The secret enables Kubernetes to authenticate with the Fortanix container registry when pulling the DSM Accelerator Webservice image.
NOTE
Ensure that the registry credentials are provisioned and available before proceeding with the deployment.
8.0 Deploy DSM Accelerator Webservice on VKS
After preparing the VKS environment and configuring container registry authentication, deploy DSM Accelerator Webservice using a Kubernetes Deployment and Service:
8.1 Configure the DSM Accelerator Webservice Environment Variables
Environment Variable | Description | Example |
|---|---|---|
| Specifies the Fortanix DSM SaaS endpoint to which DSM Accelerator Webservice connects. |
|
| Enables bearer authentication for DSM Accelerator Webservice. |
|
| Specifies the port on which DSM Accelerator Webservice listens for incoming requests. |
|
| Specifies the cache time-to-live in seconds. |
|
8.2 Create the Deployment and Service
Create a YAML file named dsma-deployment.yaml with the following configuration:
apiVersion: v1
kind: Service
metadata:
name: dsma-service
labels:
app: dsma
spec:
type: NodePort
selector:
app: dsma
ports:
- name: https
protocol: TCP
port: 8443
targetPort: 8443
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dsma
labels:
app: dsma
spec:
replicas: 1
selector:
matchLabels:
app: dsma
template:
metadata:
labels:
app: dsma
spec:
containers:
- name: dsma
image: cr.download.fortanix.com/dsma
ports:
- name: https
containerPort: 8443
protocol: TCP
env:
- name: FORTANIX_API_ENDPOINT
value: "<DSM_SERVICE_URL>"
- name: BEARER_AUTH_ENABLED
value: "true"
- name: PORT
value: "8443"
- name: CACHE_TTL
value: "1800"
imagePullSecrets:
- name: dsma-registry-secret
Where, <DSM_SERVICE_URL> is the URL of your Fortanix DSM SaaS cluster.
8.3 Apply the Deployment Configuration
Run the following command to deploy DSM Accelerator Webservice:
kubectl apply -f dsma-deployment.yamlExample output:
service/dsma-service created
deployment.apps/dsma created8.4 Verify the DSM Accelerator Webservice Deployment
Run the following command to check the deployment status:
kubectl get deploymentsVerify that the desired and available replica counts are as expected. Run the following command to check the pod status:
kubectl get pods -o wideEnsure that the DSM Accelerator Webservice pod is in the
Runningstate and that all containers are ready.
8.5 Verify the Kubernetes Service
Run the following command to verify that the DSM Accelerator Webservice Kubernetes Service has been created:
kubectl get servicesThe Kubernetes Service forwards requests received on the configured service port to the DSM Accelerator Webservice container on the same port
Verify that the dsma-service is listed and that the configured service port is mapped to the assigned NodePort. The NodePort Service type allows clients with network access to the VKS nodes to access DSM Accelerator Webservice through the assigned node port.
9.0 Validate Encryption and Decryption Operations
After deploying DSM Accelerator Webservice on VKS, verify the integration by performing encryption and decryption operations using a security object managed by Fortanix DSM.
The following validation procedure executes the test script from within the DSM Accelerator Webservice container. This approach was used during the test validation performed for this integration because external access to DSM Accelerator Webservice from the lab host was not configured. The localhost:8443 endpoint refers to the DSM Accelerator Webservice service running within the container.
9.1 Access the DSM Accelerator Webservice Container
Before performing the validation, access the DSM Accelerator Webservice container.
Run the following command to identify the DSM Accelerator Webservice pod:
kubectl get podsRun the following command to use the pod name from the output to access the DSM Accelerator Webservice container:
kubectl exec -it <DSMA_POD_NAME> -- /bin/bashReplace
<DSMA_POD_NAME>with the name of the DSM Accelerator Webservice pod.After accessing the container, proceed to install the validation utilities as described in the next section.
9.2 Install Validation Utilities
For the validation procedure, ensure that curl and jq are available in the DSM Accelerator Webservice container. If they are not installed, run the following commands inside the container:
apt-get update
apt-get install -y curl jq9.3 Execute the Encryption and Decryption Test
Run the following command to export the API key associated with the Fortanix DSM application created in Section 5.5: Copying the API Key.
export APIKEY="<DSM_APPLICATION_API_KEY>"Create a shell script named
test-dsma.shwith the following content:#!/bin/sh DSMA="https://localhost:8443" CURL="curl -sk" JQ="jq -r" if [ -z "$APIKEY" ]; then echo "Set the API key in the APIKEY environment variable" >&2 exit 1 fi authbasic="Authorization: Basic $APIKEY" keyname="<SECURITY_OBJECT_NAME>" originaltext="Every Good Boy Does Fine" message=$(printf '%s' "$originaltext" | base64) echo "Encrypting the original text \"$originaltext\" through DSMA" cipherdoc=$($CURL --url "$DSMA/crypto/v1/encrypt" \ -X POST \ -H "$authbasic" \ -H 'Content-Type: application/json' \ -d "{\"key\":{\"name\":\"$keyname\"},\"alg\":\"AES\",\"mode\":\"CBC\",\"plain\":\"$message\"}") ciphertext=$(echo "$cipherdoc" | $JQ '.cipher') kid=$(echo "$cipherdoc" | $JQ '.kid') iv=$(echo "$cipherdoc" | $JQ '.iv') echo "Base64 encoded ciphertext is \"$ciphertext\"" plaindoc=$($CURL --url "$DSMA/crypto/v1/decrypt" \ -X POST \ -H "$authbasic" \ -H 'Content-Type: application/json' \ -d "{\"key\":{\"kid\":\"$kid\"},\"alg\":\"AES\",\"mode\":\"CBC\",\"cipher\":\"$ciphertext\",\"iv\":\"$iv\"}") plaintext=$(echo "$plaindoc" | $JQ '.plain' | base64 -d) echo "Decrypted plaintext is \"$plaintext\""Where,
<SECURITY_OBJECT_NAME>must match the name of the security object created in Section 5.6: Creating a Security Object.
NOTE
The
-skoption in thecurlcommand enables silent mode and skips TLS certificate verification. This is used in the sample validation procedure to match the test setup. For production deployments, configure trusted TLS certificates and enable certificate verification.
9.4 Run the Test Script
Run the following command to make the script executable:
chmod +x test-dsma.shRun the following command to execute the script:
./test-dsma.shExample output:
Encrypting the original text "Every Good Boy Does Fine" through DSMA Base64 encoded ciphertext is "<CIPHERTEXT>" Decrypted plaintext is "Every Good Boy Does Fine"The ciphertext will differ between executions because a random initialization vector (IV) is generated for the encryption operation.
The successful decryption of the original plaintext confirms that:
DSM Accelerator Webservice can authenticate the client request.
DSM Accelerator Webservice can identify and access the selected security object in Fortanix DSM.
DSM Accelerator Webservice can perform encryption using the selected key.
DSM Accelerator Webservice can decrypt the resulting ciphertext and return the original plaintext.
9.5 Verify Key Access in Fortanix DSM
Log in to the Fortanix DSM user interface (UI) and navigate to the group containing the VKS security object.
Verify the application activity or audit logs.
A successful encryption operation should generate an entry indicating that the application retrieved the security object value.
For example:
App "Broadcom VKS Test" retrieved object value for "VKS Test Key"This confirms that DSM Accelerator Webservice successfully accessed the key managed by Fortanix DSM.
9.6 Additional Kubernetes Configuration for Client Applications
The instructions above focused narrowly on installing and configuring DSM Accelerator Webservice as a Container on VKS. For a functional deployment, configuring client applications to communicate with the deployed DSM Accelerator Webservice involves additional Kubernetes configuration. These steps are beyond the scope of this guide and include:
Including the DSM Accelerator container information in a Pod definition together with any client containers.
Configuring access to the DSM Accelerator Webservice service port so that client containers in the Pod can communicate with it.
Installing and configuring TLS certificates to establish a trusted connection to the DSM Accelerator Webservice endpoint.
Storing the Fortanix DSM application API key in a Kubernetes Secret and making it available to the client containers that need to authenticate with DSM Accelerator Webservice.
For more information on configuring the DSM Accelerator Webservice, refer to DSM Accelerator Webservice Documentation.