Deployment Plugins
Check the published Client Server release in Versions. See application upgrades and rollback for updating and recovery.
Deployment plugins extend SSLNexus for applications outside the built-in catalogue. They are versioned Ansible adapters executed inside the normal SSLNexus certificate lifecycle, so connection checks, deployment, verification, rollback and audit stay under one control plane.
Recommended Workflow
- Register the Linux or Windows deployment target first.
- Create the plugin definition and declare only the secret names the adapter needs.
- Write the Test playbook first and execute it against a registered target.
- Add the Deploy playbook only after connectivity and prerequisites are proven.
- Optionally add Verify and Rollback playbooks.
- Assign the plugin to a managed custom-application certificate and deploy through the normal SSLNexus certificate pipeline.
Secret Names
The Secret names field declares identifiers, not passwords or tokens themselves. Enter comma-separated names such as API_TOKEN, CLIENT_SECRET, KEYSTORE_PASSWORD. SSLNexus then presents a protected value field for each name.
Values are stored separately from YAML under /etc/ssl-nexus/secrets/plugins/<plugin>/ with restricted permissions and are injected into playbook execution as the plugin_secrets dictionary. Existing values are retained when an edit leaves the value blank.
- name: Call application API
ansible.builtin.uri:
url: https://127.0.0.1:9443/api/certificate
headers:
Authorization: "Bearer {{ plugin_secrets.API_TOKEN }}"Test Playbook
The Test playbook is intended for connectivity, privilege and prerequisite validation. It receives target, plugin_secrets and ssl_nexus_test_mode: true. It should not install or replace certificate material.
Linux Test
---
- name: Test custom Linux application
hosts: all
gather_facts: false
become: true
tasks:
- name: Check service
ansible.builtin.command: systemctl is-active myapp
changed_when: falseWindows Test
---
- name: Test custom Windows application
hosts: all
gather_facts: false
tasks:
- name: Check service
ansible.windows.win_service_info:
name: MyApplication
register: app_service
- ansible.builtin.assert:
that: app_service.existsThe target registration determines the Ansible transport: SSH for Linux and WinRM for Windows. Do not use Linux sudo/become semantics in Windows playbooks.
Deployment Variables
Deploy, Verify and Rollback run with the SSLNexus certificate job and receive the protected runtime variables. The most useful are:
| Variable | Purpose |
|---|---|
certificate_id | Managed SSLNexus certificate ID. |
operation | Issue, renew or another lifecycle operation. |
domain / sans | Certificate names. |
cert_src | Controller-side PEM certificate path. |
key_src | Controller-side private-key path when available. |
expected_platform | Linux or Windows platform selected by the plugin/target. |
plugin_version | Installed plugin version. |
plugin_secrets | Protected secret-name/value dictionary. |
deployment_binding | Persisted binding data when one already exists. |
cert_src and key_src are controller-side paths. Use the appropriate Ansible copy module to move them to the remote target.Linux Deployment
Linux targets normally connect as the dedicated SSLNexus management user. Use become: true when the adapter must write protected paths or reload privileged services.
---
- name: Deploy certificate to a Linux application
hosts: all
gather_facts: false
become: true
tasks:
- name: Create TLS directory
ansible.builtin.file:
path: /etc/myapp/tls
state: directory
owner: root
group: root
mode: "0700"
- name: Install certificate
ansible.builtin.copy:
src: "{{ cert_src }}"
dest: /etc/myapp/tls/certificate.pem
owner: root
group: root
mode: "0644"
- name: Install private key
ansible.builtin.copy:
src: "{{ key_src }}"
dest: /etc/myapp/tls/private-key.pem
owner: root
group: root
mode: "0600"
- name: Reload application
ansible.builtin.service:
name: myapp
state: reloadedWindows Deployment
Windows targets use the WinRM connection already stored on the deployment target. Use ansible.windows.* modules and Windows paths.
---
- name: Deploy certificate to a Windows application
hosts: all
gather_facts: false
tasks:
- name: Create TLS directory
ansible.windows.win_file:
path: C:\ProgramData\MyApplication\tls
state: directory
- name: Copy certificate
ansible.windows.win_copy:
src: "{{ cert_src }}"
dest: C:\ProgramData\MyApplication\tls\certificate.pem
- name: Copy private key
ansible.windows.win_copy:
src: "{{ key_src }}"
dest: C:\ProgramData\MyApplication\tls\private-key.pem
- name: Restart application
ansible.windows.win_service:
name: MyApplication
state: restartedIf the application requires PFX/PKCS#12, build or import it explicitly in the custom plugin according to that application's requirements. Custom plugins should not assume first-party adapter PFX behaviour.
Verify And Rollback
verify.yaml runs after a successful deployment. Use it to inspect the installed certificate, query the application or prove service health. A failed verify marks the deployment as failed.
rollback.yaml runs when deployment fails and is also invoked after verification failure. Keep rollback idempotent and safe after a partially completed deployment.
How SSLNexus Stores And Runs The Yaml
SSLNexus writes the supplied files as test.yaml, deploy.yaml, verify.yaml and rollback.yaml beneath the plugin directory. Each supplied playbook is passed through ansible-playbook --syntax-check before the plugin manifest is published. The manifest records the exact playbook names, and runtime execution resolves those files through the same deployment pipeline used by the managed certificate job.
Production deployment never executes arbitrary browser text directly. Deploy runs first, Verify runs only after Deploy succeeds, and Rollback is the failure hook.
Approve The Saved Plugin Version
Save the definition, review its playbooks and SHA-256 digest, and run Test against a non-production target. An organisation administrator must select Approve saved version before production Deploy, Verify or Rollback can run. Any change to the saved plugin files invalidates approval. Keep that version unchanged until the active deployment and any rollback finish.
The review digest and administrator identity are recorded in the audit log; an unavailable audit store prevents approval. Approval records are authenticated locally using the installation's protected key. This is not a public publisher signature or enforced two-person review. Protect administrator accounts and repository branches as well as reviewing the code.
Credentials Scoped To The Selected Target
Custom Linux jobs require that target's dedicated SSH private key or password; they cannot fall back to the installation-wide managed SSH key. Configure the dedicated key in Deployment targets and install its public key only on the intended target. Windows jobs receive the selected target's WinRM credential. Each job receives only its declared plugin secrets and certificate artifacts, with temporary connection material staged in volatile runtime storage.
Dedicated target SSH keys and declared plugin secrets are encrypted at rest using AES-256-GCM. Existing plaintext plugin secret files are migrated when read. Old backups or interrupted-job files may still contain previous plaintext values: apply your retention policy. A credential deliberately reused on multiple machines can still grant access to those machines from the selected target. Least-privilege accounts and target-side network controls remain necessary.
Custom Playbook Sandbox
From Client Server 1.0.10, custom deployment playbooks use isolated jobs with administrator approval of the saved code digest. Check the installed release and deployment-plugin guide for host prerequisites and remaining limits. Syntax validation, Test, Deploy, Verify and Rollback use this isolation boundary. The host must provide the documented systemd isolation and network filtering; jobs are refused when those controls are unavailable.
| Boundary | Enforced Scope |
|---|---|
| Controller files | Each job sees its own workspace and system runtime. The SSLNexus configuration, database, full certificate estate, secret store, home directories and management sockets are not mounted into it. Only the selected plugin files, target connection material, job certificate artifacts and declared plugin secrets are staged. |
| Direct network access | The job can communicate only with the selected remote target IP addresses. Names are resolved and pinned before execution. Other destinations, controller addresses and host IPC sockets are blocked. Syntax checks have no target credentials and no network allowance. External API calls, DNS lookups and delegation to another host require a different design; they do not silently bypass isolation. |
| Privileges and lifetime | The controller-side job has no root privileges or capabilities. Filesystem writes stay in its workspace. Time, process, memory and output-file limits apply; cancellation stops its process group through systemd. Missing broker or kernel network enforcement causes execution to be refused, with no unsandboxed fallback. |
| Selected target | Remote commands still have the target account's privileges, including configured sudo or Windows administration. Test is not automatically read-only. A playbook can damage that target, disclose supplied job secrets to it, or use its network access to pivot. Use a dedicated target credential, least-privilege accounts and restricted target egress; never reuse that identity across the estate. |
The sandbox limits controller access and direct network reach; it is not a command allowlist or a guarantee that remote application changes are harmless. Review code, protect repository branches, restrict deployment credentials and test against a non-production target. Optional rollback is a recovery attempt, not a transaction.
Custom SSH jobs use existing host-key pins; verify the registered target connection before its first custom Test. Custom plugins currently support remote Linux SSH and Windows WinRM targets. Controller-local targets and multi-host custom jobs are refused. Built-in deployment adapters retain their existing execution flow. The sandbox requires a Linux systemd host with cgroup BPF network filtering, bpftool and the installed sandbox broker. Restricted containers may not provide those capabilities.
Custom plugins and source control require separate effective licence permissions and are included in the Enterprise base profile and standard Enterprise Trial. Built-in adapters have their own application and platform entitlements. Protect repository access and compare tiers.
Team Source Control
Custom Deployment Plugins can be stored in GitHub, Bitbucket Cloud or GitLab. The organisation configures one approved account/workspace/group per provider, then each SSLNexus administrator connects their own identity for repository access and attribution.
Use Pull into editor to load repository files into this same editor and validation pipeline. Use Publish current plugin to save and validate locally before committing plugin.json and the available YAML playbooks.
Production Execution Audit
Production submission requires a durable authorization record containing the approved and executed SHA-256, execution ID, certificate/job/target and playbook. Terminal outcome records use the same execution ID. Audit failure before submission refuses execution; an absent outcome requires reconciliation rather than an assumption that nothing changed remotely. Deploy, Verify and Rollback pin one lifecycle digest, so an edited or reapproved version cannot replace it during that lifecycle.
Kerberos custom jobs also permit explicitly configured KDC IPs. Network enforcement is by IP: every port on an allowed target or KDC address is reachable. Preserve least-privilege identities and target-side network controls.
Key Protection At REST
Protect each target credential and its dedicated SSH/WinRM authentication material. Consult the installed release documentation for the specific encrypted-at-rest protections that are available. Filesystem permissions, minimal target privileges and off-host key custody remain important safeguards.
Optional key encryption protects managed certificate private-key PEM files, stored PFX artifacts and pending Relay issuance records. Enable it using the installed administrator key command. When disabled, those artifacts use permission-restricted files. Destination application keys and other integration files follow their own protection settings.
Original encryption keys remain protected local files with automatic unlock; native HSM/KMS wrapping is not provided. Keep them with matching records in independently protected backups. See Key Encryption and Recovery and the Private Key Policy.