SSL/TLS
HTTP must not be used in production environments. An SSL certificate is required for your Seqera instance to handle HTTPS traffic. Private certificates are supported, but require additional configuration during Seqera Enterprise installation and Nextflow execution.
AWS deployments: Manage SSL certificates with Amazon Certificate Manager (ACM)
Use Amazon Certificate Manager (ACM) to apply SSL certificates to your AWS deployment:
-
If you have an existing SSL certificate, see Importing certificates into AWS Certificate Manager.
-
If you don't have an existing SSL certificate, see Issuing and managing certificates.
Configure Seqera to trust your private certificate
If you secure related infrastructure (such as private Git repositories) with certificates issued by a private Certificate Authority, these certificates must be loaded into the Seqera Enterprise containers. You can achieve this in several ways.
Configure private certificate trust
- This guide assumes you're using the original containers supplied by Seqera.
- Replace
TARGET_HOSTNAME,TARGET_ALIAS, andPRIVATE_CERT.pemwith your unique values. - Previous instructions advised using
openssl. The nativekeytoolutility is preferred as it simplifies steps and better accommodates private CA certificates.
Use Docker volume
-
Retrieve the private certificate on your Seqera container host:
keytool -printcert -rfc -sslserver TARGET_HOSTNAME:443 > /PRIVATE_CERT.pem -
Modify the
backendandcroncontainer configuration blocks indocker-compose.yml:CONTAINER_NAME:
# -- Other keys here like `image` and `networks`--
# Add a new mount for the downloaded certificate
volumes:
- type: bind
source: /PRIVATE_CERT.pem
target: /etc/pki/ca-trust/source/anchors/PRIVATE_CERT.pem
# Add a new keytool import line PRIOR to 'update-ca-trust' for the certificate
command: >
sh -c "keytool -import -trustcacerts -storepass changeit -noprompt -alias TARGET_ALIAS -file /etc/pki/ca-trust/source/anchor/TARGET_HOSTNAME.pem &&
update-ca-trust &&
/wait-for-it.sh db:3306 -t 60 &&
/tower.sh"
The two Kubernetes procedures that follow import the certificate directly into the JVM trust store inside the container image. This requires a writable container root filesystem. If you deploy with the Seqera Helm charts, follow Use Helm charts instead.
Use K8s ConfigMap
-
Retrieve the private certificate on a machine with CLI access to your Kubernetes cluster:
keytool -printcert -rfc -sslserver TARGET_HOSTNAME:443 > /PRIVATE_CERT.pem -
Load the certificate as a
ConfigMapin the same namespace where your Seqera instance will run:kubectl create configmap private-cert-pemstore --from-file=/PRIVATE_CERT.pem -
Modify both the
backendandcronDeployment objects:-
Define a new volume based on the certificate
ConfigMap:spec:
template:
spec:
volumes:
- name: private-cert-pemstore
configMap:
name: private-cert-pemstore -
Add a volumeMount entry into the container definition:
spec:
template:
spec:
containers:
- name: CONTAINER_NAME
volumeMounts:
- name: private-cert-pemstore
mountPath: /etc/pki/ca-trust/source/anchors/PRIVATE_CERT.pem
subPath: PRIVATE_CERT.pem -
Modify the container start command to load the certificate prior to running your Seqera instance:
spec:
template:
spec:
containers:
- name: CONTAINER_NAME
command: ["/bin/sh"]
args:
- -c
- |
keytool -import -trustcacerts -cacerts -storepass changeit -noprompt -alias TARGET_ALIAS -file /PRIVATE_CERT.pem;
./tower.sh
-
Download on Pod start
-
Modify both the
backendandcronDeployment objects to retrieve and load the certificate prior to running your Seqera instance:spec:
template:
spec:
containers:
- name: CONTAINER_NAME
command: ["/bin/sh"]
args:
- -c
- |
keytool -printcert -rfc -sslserver TARGET_HOST:443 > /PRIVATE_CERT.pem;
keytool -import -trustcacerts -cacerts -storepass changeit -noprompt -alias TARGET_ALIAS -file /PRIVATE_CERT.pem;
./tower.sh
Use Helm charts
The Seqera Helm charts set containerSecurityContext.readOnlyRootFilesystem: true by default for every component except Studios. Because the root filesystem is read-only, an in-place import into the image's trust store fails when the pod starts:
keytool error: java.io.FileNotFoundException: /usr/lib/jvm/JDK_VERSION/lib/security/cacerts (Read-only file system)
keytool prints Certificate was added to keystore before it writes the keystore back to disk. The error appears immediately after this apparent success message. Treat the error, not the success line, as the outcome.
Mounted volumes remain writable when readOnlyRootFilesystem is enabled. Copy the trust store to a volume, import your certificate into the copy, then point the JVM at the copy.
-
Load the certificate as a
ConfigMapin the same namespace as your release:kubectl create configmap private-cert-pemstore --from-file=/PRIVATE_CERT.pem -
Add the following to your values file. This example configures Wave. The same
command,args,extraVolumes,extraVolumeMounts, andextraEnvVarskeys are available forbackend,cron, and the other components. Studios takes them understudios.proxyandstudios.server:wave:
command: ["/bin/sh"]
args:
- -c
- |
cp $JAVA_HOME/lib/security/cacerts /opt/cacerts/cacerts
chmod +w /opt/cacerts/cacerts
keytool -import -trustcacerts -storepass changeit -noprompt -alias TARGET_ALIAS -file /ca/PRIVATE_CERT.pem -keystore /opt/cacerts/cacerts
/launch.sh
extraVolumes:
- name: cacerts
emptyDir: {}
- name: private-cert-pemstore
configMap:
name: private-cert-pemstore
extraVolumeMounts:
- name: cacerts
mountPath: /opt/cacerts
- name: private-cert-pemstore
mountPath: /ca/PRIVATE_CERT.pem
subPath: PRIVATE_CERT.pem
extraEnvVars:
- name: JAVA_TOOL_OPTIONS
value: "-Djavax.net.ssl.trustStore=/opt/cacerts/cacerts"Replace
/launch.shwith./tower.shfor thebackendandcroncomponents. To avoid overriding the container command, copy and import the certificate in aninitContainersentry that mounts the samecacertsvolume. -
Confirm that the JVM received the flag. The pod log prints the following line at startup:
Picked up JAVA_TOOL_OPTIONS: -Djavax.net.ssl.trustStore=/opt/cacerts/cacertsIf the line is absent, the JVM never received the flag and your trust store has no effect. Check the rendered environment with
kubectl get deploy DEPLOYMENT_NAME -o jsonpath='{.spec.template.spec.containers[0].env}'. A frequent cause is anextraEnvVarsentry that is not a list ofnameandvaluemaps. Because- MY_VAR: "some-value"has nonamekey, the charts render it asname: <nil>with no value and the variable you intended is never set.
Use JAVA_TOOL_OPTIONS rather than a component-specific variable. Because the JVM reads JAVA_TOOL_OPTIONS directly, it works for every Seqera Java service. JAVA_TOOL_OPTIONS also adds your flag without replacing the JVM options that each container sets by default. The backend and cron containers read JAVA_OPTS, but Wave ignores it and reads WAVE_JVM_OPTS instead. Setting WAVE_JVM_OPTS replaces the default Wave heap, garbage collector, and Netty options rather than adding to them.
Copying the full trust store before importing keeps the public Certificate Authorities trusted and leaves other outbound connections unaffected. If PRIVATE_CERT.pem holds a chain of more than one certificate, keytool -import adds only the first. Import each certificate under its own alias, or import only the root Certificate Authority that anchors the chain.
Configure the Nextflow launcher image to trust your private certificate
If you secure infrastructure such as private Git repositories or your Seqera Enterprise instance with certificates issued by a private Certificate Authority, these certificates must also be loaded into the Nextflow launcher container.
Import private certificates via pre-run script
- This configuration assumes you're using the default
nf-launcherimage supplied by Seqera. - Replace
TARGET_HOSTNAME,TARGET_ALIAS, andPRIVATE_CERT.pemwith your unique values. - Previous instructions advised using
openssl. The nativekeytoolutility is preferred as it simplifies steps and better accommodates private CA certificates.
Add the following to your compute environment pre-run script:
keytool -printcert -rfc -sslserver TARGET_HOSTNAME:443 > /PRIVATE_CERT.pem
keytool -import -trustcacerts -cacerts -storepass changeit -noprompt -alias TARGET_ALIAS -file /PRIVATE_CERT.pem
cp /PRIVATE_CERT.pem /etc/pki/ca-trust/source/anchors/PRIVATE_CERT.pem
update-ca-trust