Client-side encryption for Orthanc object storage

Client-side encryption encrypts DICOM files before Orthanc uploads them to cloud object storage, so the storage provider never holds readable images. This page covers the protection gained, key management, rotation and performance cost.

On this page

When client-side encryption for Orthanc object storage is worth the added work

Client-side encryption means encrypting each DICOM file before it leaves Orthanc for the cloud bucket, so the storage provider only ever holds ciphertext. It sits on top of the provider encryption at rest that cloud object stores already apply, and it changes who can read the files: the provider's own staff and the provider's keys no longer make the images readable. Teams usually reach for it when the compliance team asks who can read the archive and the honest answer depends on the cloud operator. Three situations drive the decision: strict data residency rules that restrict where plaintext may exist, separation of duties that keeps the cloud operator away from patient images, and contractual limits on what the provider may access.

The supplied documentation does not describe a built-in Orthanc setting for client-side encryption of object storage. Treat it as a design you build, not a switch you enable. The design needs a separate key manager that holds the wrapping keys, a wrapping step that encrypts each file before the storage plugin uploads it, and a matching unwrap step on every read path, including retrieve, export and the viewers. Each of those pieces must be built, tested and operated by your team or a partner, and the cost is ongoing: key rotation, re-wrapping of existing objects, backup and recovery of the keys, and the CPU and latency added to every transfer.

Before committing, confirm three things in writing. First, which threats your compliance team actually needs to cover, since client-side encryption does not protect against a compromised Orthanc host that can read plaintext in memory. Second, whether your cloud contract and residency rules accept plaintext on your own servers while ciphertext sits in the bucket. Third, whether the search, deletion and viewer behavior you depend on still works when the stored bytes are opaque to the storage layer. If the answers do not justify the work, provider encryption with customer-managed keys may meet the requirement with far less effort.

Where the encryption boundary sits between Orthanc, the key manager and the bucket

The diagram starts when a DICOM instance arrives at Orthanc over DICOM or REST. Orthanc holds the file in plaintext while it parses and processes it, then hands it to a wrapping step that asks the key manager for a data key. The encrypted object goes to the bucket, while the database index stays in its own store with its own access controls. Check that the Orthanc host, the index store and any caches are treated as places where plaintext or metadata can exist.

Orthanc sees plaintext before the wrapping step; the bucket and key manager see only ciphertext and wrapped keys.

Key manager options and when each fits

This table compares the four key manager options a team is likely to shortlist for Orthanc object storage encryption: OpenBao, Vault Community Edition, Vault Enterprise and HCP Vault Dedicated. Read each row against who will hold the master keys, who operates the cluster and which features your security review requires. The main takeaway is that the licensing model and the operator matter as much as the feature list.

OptionLicense or commercial modelWho operates itFeatures relevant hereWhen it fits
OpenBaoOpen source under MPL-2.0; community-led fork managed under the Linux Foundation's OpenSSFYour team, in infrastructure you controlEncryption as a service, key/value storage encrypted before write, leasing and revocation, AppRole and JWT/OIDC auth, Raft or PostgreSQL storageOpen-source preference with in-house operations capacity; confirm HSM and FIPS needs are not required
Vault Community EditionSource or binaries under the Vault license model that applied before HashiCorp's move to Business Source License; confirm the terms for the version you pickYour team, in infrastructure you controlCore secrets engine and transit encryption; no Enterprise features such as HSM support or performance replicationSelf-managed Vault skills exist and HSM, FIPS and replication are not required; confirm version licensing with HashiCorp
Vault EnterpriseCommercial license; HashiCorp does not publish prices, so request a quote from HashiCorp salesYour team, in infrastructure you controlHSM support and PKCS#11 provider, FIPS compliance, performance and disaster recovery replication, namespaces, seal wrappingHardware-backed key protection or FIPS-level controls are required and you can fund a license
HCP Vault DedicatedManaged service under HashiCorp's commercial model; confirm pricing with salesHashiCorp operates the serviceRuns the same binary as self-managed Vault Enterprise, so Enterprise features are available as part of the managed offering; confirm scopeYour policy accepts a managed key service outside your own infrastructure and the data residency terms fit

Keeping key material away from the bucket and the Orthanc host

Client-side encryption only helps if the keys that decrypt DICOM files sit outside the storage they protect and outside the server that reads them. The cards below cover where keys live, who controls them, how unseal material is held, and how key use is recorded. Each one names what the team must confirm before the design is final.

Hold master keys in a key manager

The encryption keys should live in a dedicated key manager, never in the S3 or Azure bucket, the Orthanc configuration file or environment variables on the Orthanc host. If keys sit beside the ciphertext, a leaked bucket credential exposes readable DICOM data, which defeats the purpose of encrypting on the client side. Confirm which key manager your team will run, whether it can issue keys to a workload with narrow permissions, and how the Orthanc side fetches keys at startup without writing them to disk.

OpenBao HA docs

Split key administration from Orthanc administration

The people who administer the key manager should not be the same people who administer Orthanc, the cloud account or the bucket. When one administrator can change storage settings, read keys and delete audit trails, a single compromised account exposes everything. Write down which roles can read the bucket, which can read key material and which can change policies, and confirm that the key manager's own policies enforce those separations rather than relying on convention.

OpenBao auth methods

Store unseal material under split custody

A sealed key manager needs unseal or recovery material before it can serve keys after a restart, so that material is as sensitive as the keys themselves. Store it in separate custody with no single person holding enough shares to unseal alone, and keep a tested recovery procedure outside the cluster. Confirm the number of shares and the threshold your team will use, who holds each share, and how a restore is rehearsed before an incident forces it.

Decide when an HSM-backed seal is required

Where policy requires keys protected by hardware, an HSM-backed seal moves the root protection into a device that does not release key material in plain form. Vault Enterprise lists HSM support and a PKCS#11 provider among its licensed features, which must be applied to the cluster. Confirm with the vendor which HSM models and firmware versions are supported, whether the licence covers the seal configuration you need, and who pays for and operates the device.

Vault Enterprise docs

Keep plaintext keys out of images and logs

Container images, build logs, Orthanc startup logs and debug output are common places where a key ends up in plain text. Baking a key into a Docker image means every registry copy holds it, and a verbose log line can record a token or key path. Confirm that the image contains no key material, that logging levels exclude secret values, and that the Orthanc host retrieves keys into memory with a documented lifetime. Scan images and logs as part of acceptance testing.

Audit every key read and change

Key access should leave a record that answers who read which key, from which host, at what time, and whether the request succeeded. Without that trail, a rotation or a suspicious read cannot be investigated, and an auditor has nothing to examine. Confirm which audit devices your chosen key manager supports, where logs are forwarded and how long they are kept, and whether the audit store is protected from the same administrators whose actions it records.

How key rotation works when the archive already holds encrypted objects

Rotating a key encryption key (the wrapping key) is a different operation from re-encrypting the data. In a typical envelope design, each DICOM object is encrypted with its own data key, and that data key is stored only after being wrapped by a key encryption key held in a KMS or HSM. Rotating the wrapping key means issuing a new wrapping key and re-wrapping the small data-key records. The DICOM payloads stay where they are. This is why wrapping-key rotation is far cheaper than re-encrypting every file: the work scales with the number of key records, not with the terabytes in the bucket. Confirm with your key management provider how re-wrapping is performed and whether it can run without downtime for the Orthanc storage plugin.

Old objects must stay readable until they are re-wrapped. Orthanc does not know which key protects which object, so the storage layer must resolve the correct key from metadata stored with each object or in a lookup table. Retire an old key only after every object that depends on it has been re-wrapped or fully re-encrypted, and confirm that no backup set, replica or cached copy still needs it. Data-key rotation, where payloads themselves are re-encrypted, is a separate and much larger project. It moves every byte, consumes egress and request charges from the cloud provider, and runs for a duration that depends on archive size and bandwidth. Ask the team doing the work for a written estimate based on your actual object count and volume before committing to a schedule.

Build a key inventory before the first rotation. For each object prefix or bucket, record the wrapping key identifier, the data-key version, the plugin or script that wrote it and the backup sets that contain it. Without this map, a rotation plan cannot prove that every object is covered, and a failed run cannot be resumed safely. After each rotation, and after any re-encryption batch, run a restore test on a sample of studies from each key generation, including the oldest. Verify that the restored DICOM files parse, that pixel data matches the source checksum and that the Orthanc index points to readable objects. A rotation is only complete when a restore from the new state has been demonstrated.

Setup sequence for encrypting Orthanc objects before upload

This sequence takes a team from a written threat model to a tested client-side encryption layer between Orthanc and its object storage, with keys held in a separate key manager. Each step ends with a check that shows whether the layer works and can be recovered.

  1. Write the threat model and encryption scope

    The security owner and the Orthanc administrator write down which threats the encryption must address, such as a provider staff member or a leaked bucket credential reading DICOM files, and which they do not, such as an attacker who controls the Orthanc host and can read plaintext in memory. The document lists which buckets, study types and metadata are in scope, and who approves exceptions. Done when a reviewer can point to each threat and say whether client-side encryption addresses it, and the statement is signed off before any key is created.

  2. Choose the key manager and its storage backend

    The platform team selects the key manager, such as OpenBao or HashiCorp Vault, and confirms the license terms and support model against the team's obligations. For storage, HashiCorp recommends integrated storage (Raft) for most use cases, and OpenBao documents integrated storage and PostgreSQL as its officially supported HA backends. Confirm the chosen edition's features, including any that need an Enterprise license, in writing with the vendor. Done when the decision record names the product, version, edition and backend, and a reviewer has checked that the version is supported.

  3. Deploy the key manager in high availability

    The platform team deploys the key manager across several nodes in the infrastructure the organization controls, with the chosen backend and storage the team can back up and restore. OpenBao's HA model uses one active node that holds a lock in the data store, with standby nodes forwarding or redirecting requests, so the team should test failover before relying on it. Use AppRole for the Orthanc host, since OpenBao recommends AppRole for servers, and keep Userpass for human administrators on developer machines only. Done when a planned failover completes and a test login from the Orthanc host succeeds with its own AppRole identity.

  4. Define the key hierarchy and access policies

    The security team designs a key hierarchy, usually a master key held by the key manager and data keys or per-storage keys that wrap the DICOM files, and writes policies so the Orthanc identity can use the wrapping key but cannot read or export the master key. Separate administrators who manage the key manager from those who operate Orthanc. Record which key protects which bucket or study set so that a later rotation does not lose track of data. Done when a policy test shows the Orthanc identity can encrypt and decrypt through the key manager and is denied any attempt to read the master key or change policies.

  5. Build or select the wrapping step before the storage plugin

    The integration team decides where encryption happens: a script or wrapper that encrypts files before they reach the storage plugin, or a custom build that adds the step. Check the Orthanc plugin documentation for the chosen storage plugin (S3, Azure or Google Cloud) to confirm what it supports, including how object names, metadata and the Orthanc index relate to the stored bytes, and which Orthanc version the plugin is tested against. Expect that a wrapper changes how files are read back, so verify that the chain is compatible with the Orthanc release in use. Done when the team has a written compatibility note citing the plugin documentation and a working build in a test environment.

  6. Test write, read, restore and deletion

    The QA or security engineer runs a fixed test set on a non-production copy: upload a set of studies with varied modalities and sizes, retrieve them through Orthanc and compare checksums with the originals, restore a full study from a backup copy, and delete a study and confirm the encrypted objects and their keys are handled as the policy requires. Also check that the raw bucket contents are unreadable without the key manager. Measure the time added by encryption on the team's hardware and record it, since the cost is an effect of the chosen algorithm and hardware, not a fixed number. Done when every test passes, the checksums match, and the results are filed with the configuration.

  7. Document key rotation and run recovery drills

    The security owner writes the rotation procedure: how often keys are rotated, how new data keys are issued, how old objects are re-wrapped or kept readable, and who approves each step. The team also writes a recovery runbook covering loss of a key manager node, restoration of its backend, and loss of the Orthanc host, and runs at least one drill that restores a sample of studies from a cold backup using only the documented steps. Done when the drill completes within the documented steps, the gaps it reveals are fixed in the runbook, and the rotation procedure has been tested on a copy of the data.

Where the performance cost of encrypting DICOM files appears

Client-side encryption adds work at three points. On ingest, Orthanc or the encryption layer must encrypt each DICOM file before it is written to the bucket, which costs CPU time that grows with file size and with the number of instances a modality pushes. On retrieval, the same files must be decrypted before Orthanc can serve them. The third cost is the round trip to the key manager: if every object needs a fresh data key, each write or read waits on a call outside the Orthanc host. Viewer loads are the most visible effect, because a single study open can fetch hundreds of instances, and small per-object delays add up to a slower first image.

The main levers are caching data keys for a bounded period so that many objects share one unwrap call, batching key requests where the design allows it, and placing the key manager on the same network segment as Orthanc so each call is short. Key lifetime and cache size are trade-offs: longer caching reduces calls but widens the window in which a compromised host holds usable keys. Confirm with the chosen key manager and the encryption layer whether they support these options and what they expose as settings, since the sources supplied for this topic do not describe them. If the key manager is a self-hosted OpenBao deployment, check its high availability design before it sits on the write path.

The documentation supplied does not give benchmark numbers for this pattern, so the team should measure its own setup before committing. Build a test set from its real study sizes, modality send patterns and typical viewer studies, then time ingest, retrieval and first-image display with encryption off, with keys cached, and with keys fetched per object. Repeat the test during a realistic peak, such as a morning modality burst, and record key manager latency separately from storage latency. Ask any vendor or partner quoting this work to show results from a comparable test rather than a general estimate.

Security and operational considerations for encrypted Orthanc archives

Encrypting DICOM files in object storage closes one gap but leaves the index, the API surface, inter-site links, backups and logs exposed. The cards below cover the Orthanc settings and operational habits that sit alongside client-side encryption, and what to confirm in your own environment before go-live.

Database index stays readable

Client-side encryption covers the DICOM files only. The Orthanc index in SQLite, PostgreSQL, MySQL or another database holds patient names, study dates, accession numbers and other main DICOM tags in plain form unless you protect that database separately. Confirm which tags your index stores, who holds database credentials, and whether the database volume and its backups use encryption at rest and access controls.

Remote access requires authentication

By default Orthanc accepts HTTP connections only from localhost. If you enable RemoteAccessAllowed, the Orthanc security FAQ says AuthenticationEnabled should be true with users defined in RegisteredUsers. Confirm that no deployment exposes the REST API without credentials, and that test and staging instances follow the same rule.

Orthanc security FAQ

HTTPS through a reverse proxy

For any Internet or cross-network exposure, the Orthanc documentation recommends HTTPS and a reverse proxy in front of the server. The proxy should terminate TLS with current certificates, restrict which paths are reachable, and log requests without copying tokens or patient identifiers into the access log. Confirm the proxy configuration is reviewed whenever the Orthanc version changes.

Keep script and export routes disabled

The Orthanc security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled on an archive that holds encrypted objects, because a compromised API could otherwise reach the key material or the storage layer. Confirm the routes are off in every instance configuration file, including containers built from older templates.

Security FAQ

DICOM TLS for inter-site exchange

Orthanc supports DICOM TLS for inter-site exchanges starting with version 1.9.0. Client-side encryption protects files at rest, but DICOM traffic between modalities, peers and remote sites travels over the network and needs its own protection. Confirm which peers support TLS, how certificates are issued and renewed, and which exchanges still run unencrypted.

Backups of data and keys

Encrypted objects are unreadable without their keys, so a backup of the bucket alone may not restore the archive. Back up the key material separately from the data, store it in a location with its own access controls, and test a full restore that includes the Orthanc configuration and index. Confirm who can recover keys, how that recovery is approved, and how long old key versions remain available for older objects.

Logs without key or patient data

Orthanc logs, reverse proxy logs and application traces can capture study identifiers, file paths and occasionally configuration values. Define a logging policy that keeps key material, encryption passphrases and patient identifiers out of log lines, and that sets retention for the logs you do keep. Confirm log shipping destinations are covered by the same access rules as the archive itself.

Questions teams ask before hiring outside help for Orthanc encryption

What drives the cost of client-side encryption for Orthanc object storage?

The main cost drivers are the key manager you choose, the number of key hierarchies you need, the integration work on the storage path, and the testing and documentation that produce audit evidence. Key manager licensing is paid to the vendor, while implementation labor is paid to your team or a partner. Vault Enterprise and HCP Vault Dedicated are commercial options, and open-source options such as OpenBao carry no license fee but still require operating staff. One-time costs include design, integration and testing. Recurring costs include key manager licenses or support, hosting, and periodic key rotation runs. Ask any quote to separate these items and to state which environments and Orthanc storage plugins are in scope.

Can our own team implement Orthanc encryption without an outside partner?

Yes, if your team already has key management skills and Orthanc operations skills. Key management skills cover key hierarchy design, seal and unseal handling, access policies, rotation and recovery. Orthanc operations skills cover the storage plugin configuration, Docker or Linux deployment, backups and upgrades. Your team also needs someone who can test restores of encrypted studies and document the controls for your compliance reviewers. If one of these skills is missing, an outside partner can fill the gap for a defined scope, and your team keeps ownership of the keys and the running system.

How long does Orthanc client-side encryption take to implement?

Duration depends on the scope and your environment, and no reliable figure applies across deployments. The main variables are the number of storage paths to encrypt, whether you migrate existing encrypted or plaintext archives, how many key hierarchies you need, the cloud or data center setup, and how much evidence your compliance team requires. Ask for a written plan that lists the phases, the environments touched, the testing approach and the points where your team must make decisions or provide access. A fixed-scope written agreement is the right place to fix dates before work starts.

Is HashiCorp Vault Enterprise pricing published?

No. HashiCorp does not publish Vault Enterprise prices. Its pricing pages describe pay-as-you-go, flex and Enterprise self-managed commercial models, and direct self-managed Enterprise buyers are routed to sales for a quote. Before you request one, confirm which features you need, because some capabilities such as performance replication, HSM support, FIPS compliance and seal wrapping are listed as Enterprise features that require a license on the cluster. Check the current licensing terms in the Vault LICENSE file since the Business Source License applies to newer releases.

Does DeployOpen issue compliance certifications for our Orthanc encryption setup?

No. DeployOpen does not issue audit reports, attestations or certifications. DeployOpen prepares the systems, controls and evidence for a compliance assessment, such as configuration records, key management procedures, access settings, rotation logs and restore test results. Independent auditors and certification bodies assess that evidence and issue any reports. Ask your assessor early which evidence they expect, so the engagement scope covers it.

What does DeployOpen need from our team to start encryption work?

The work needs access to the cloud accounts, data centers or air-gapped networks where Orthanc and its object storage run, and the rights to create the key management components there. Your team must make key custody decisions, including who holds unseal material, who may request decryption and how emergency access works. You should also provide sample DICOM studies that are safe to use in testing, including representative modalities and sizes, plus a named contact who approves changes. Agree these inputs in the written scope so that delays in access or decisions are visible early.

What does client-side encryption protect against that provider encryption at rest does not?

Client-side encryption protects DICOM files before they leave your network, so the cloud provider and anyone with access to the storage bucket see only ciphertext. Provider encryption at rest protects the physical media and is typically managed by the provider's keys, so provider administrators with the right permissions can still access the data through the storage service. Confirm this model with your provider's documentation and your threat analysis, because the answer depends on who holds the keys and which access paths exist. Orthanc's own access controls, such as the Security FAQ guidance, still apply to the application layer.

Limits to confirm in your environment before you commit

Client-side encryption adds a key manager, a wrapping scheme and a dependency between Orthanc, the storage plugin and the key service. Each card below names a limit that the public facts do not settle, and says what to ask a vendor or test in a lab before the design is approved.

Plugin support for wrapped objects

Orthanc reads objects through a storage plugin, and a client-side scheme only works if that plugin and its version can read the wrapped bytes. Plugin release timing differs from core releases, and the supplied facts do not confirm encryption support in each plugin. Ask the plugin maintainers whether your scheme is supported in the version you plan to run, then prove a full store, read, retrieve and delete cycle in a lab.

Orthanc plugins

Vault license terms for your use

Vault 1.15.0 and later are under the Business Source License 1.1 with IBM named as licensor, and the license bars competitive hosted or embedded offerings. Have counsel read the Vault LICENSE for your intended use, including any hosting of the key service for other parties. OpenBao is licensed under MPL-2.0, so its terms need a separate check against your own use case.

Vault LICENSE file

HA and replication in your edition

Performance and disaster recovery replication, HSM support, FIPS compliance and automated upgrades are listed as Vault Enterprise features that need a license applied to the cluster. OpenBao's HA model depends on integrated storage or PostgreSQL. Confirm in writing which of the failover, replication and HSM behaviors you need exist in your chosen edition, and test a key service failover before the storage design is fixed.

Migration tested versions

If you move keys or secrets from Vault to OpenBao, the OpenBao migration guide was tested only against Vault 1.14.1 community edition, not Vault Enterprise. Check your current Vault version and edition against that tested path. If they differ, plan a rehearsal on a copy of the data and verify that every wrapped key still unwraps before any production object is re-keyed.

OpenBao migration guide

Orthanc release compatibility

Orthanc 1.13.0, released on 2026-08-15, rewrote storage-area access and DICOM parsing and transcoding to improve caching and reduce memory use. Because your wrapping scheme sits on the storage path, each core upgrade can change how objects are read and cached. Keep the Orthanc version, plugin version and key manager version pinned together, and rerun the full retrieval and transcoding test set after every upgrade.

Orthanc NEWS file

Ownership of recovery material

Recovery keys, unseal material and backup copies of the key service determine whether encrypted objects can be read after a failure. Decide who holds each share or recovery credential, where it is stored, and who can authorize its use. Ask the vendor or your team to document the recovery procedure, then run a restore drill that reads a sample of studies using only the recovery material held by the named people.

How DeployOpen scopes, builds and supports client-side encryption for Orthanc

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For client-side encryption of Orthanc object storage, we agree the storage target, key custody and recovery design in writing first, then build and test the encryption path before any patient images reach the bucket.

How we scope

  • Inventory which Orthanc storage plugin, object store and DICOM ingest paths the encryption must cover.
  • Record who holds key custody, which roles can decrypt, and where key material may live.
  • Agree in writing the rotation policy, key recovery approach and evidence the compliance team will receive.

How we build

  • Configure the encryption layer and key source in a non-production Orthanc environment mirroring the target design.
  • Test read, write, delete and retrieval paths, including failure behavior when a key is unavailable.
  • Measure ingest and retrieval latency against the agreed baseline and record the performance trade-offs.

How we hand over

  • Deliver configuration, runbooks for key rotation and recovery, and a document of the trust boundaries.
  • Provide the test results and control mapping that your security and compliance teams can review.
  • Walk your operations staff through restore drills so they can run the procedures without us.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Retest the encryption path after Orthanc, plugin or object storage upgrades before they reach production.
  • Confirm with your team which key management service, HSM or vault product your organization already licenses.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.