Self-hosted file sharing for healthcare

How hospitals and clinics holding ePHI can run file sync and share on infrastructure they control, with access, audit, transmission and backup controls mapped to the HIPAA Security Rule.

On this page

Why self-hosted file sharing for healthcare starts with ePHI, not storage

Nextcloud is the most common self-hosted base for sharing ePHI, but the decision turns on two questions: where the platform runs, and which vendors become business associates. Hospitals and clinics that move patient records through email, consumer cloud drives and USB media usually need a controlled replacement before they need more storage. The HIPAA Security Rule in 45 CFR Part 164 Subpart C applies to all electronic protected health information that a covered entity or business associate creates, receives, maintains or transmits, regardless of where the file lives or how small the file is. A self-hosted deployment does not remove that scope. It moves the boundary, so the team must document every system, backup and support path that touches ePHI. No HIPAA certification exists. HHS states that no Security Rule standard requires certifying compliance, and that private certifications do not stop HHS from later finding a violation. The evidence a compliance lead can show is what the team produces: a risk analysis, configuration records, access reviews, audit log samples, backup restore test results and signed business associate contracts under 45 CFR 164.314(a). Independent auditors may assess that evidence, but DeployOpen prepares the controls and records and does not issue attestations. Seafile is the main alternative to Nextcloud for teams that want a lighter sync and share product, and its server is released under GPLv2 with an additional permission to link with OpenSSL. Teams should compare how each product handles the specifications in this page. The healthcare requirements differ from those in other sectors, particularly around audit controls, transmission security and external sharing with patients and referring partners, so the sections below treat those controls as the starting point rather than an add-on.

Which HIPAA Security Rule requirements shape the file sharing build

This table maps the HIPAA technical safeguards in 45 CFR 164.312 and the business associate terms in 164.314 to specific choices in a self-hosted Nextcloud build. Read each row as a requirement, the build decision it drives, and the evidence an assessor will expect to see. The main takeaway is that the Security Rule sets required and addressable specifications, and addressable does not mean optional: each one needs a documented decision.

RequirementBuild decision in NextcloudEvidence to keep
Unique user identification (164.312(a)(2)(i), required)Federate staff through LDAP, Active Directory, OpenID Connect or SAML so every clinician has one identity, and block shared or generic loginsDirectory-to-user mapping, list of disabled accounts, and sample login logs tied to named users
Emergency access procedure (164.312(a)(2)(ii), required)Define a break-glass administrator path for when the identity provider is down, stored under dual control and tested on a scheduleWritten procedure, sealed credential custody record, and results of past test restores or access drills
Automatic logoff (164.312(a)(2)(iii), addressable)Set idle session timeouts in the web client and sync clients, and shorten them on shared workstations or mobile devicesDocumented timeout values per client type and the reason chosen if a longer value is used
Encryption and decryption (164.312(a)(2)(iv), addressable)Decide between server-side encryption for stored ePHI and end-to-end encrypted folders, and document what each breaks in search and recoveryKey ownership model, key storage location, and the risk decision for the option not chosen
Audit controls (164.312(b), standard)Enable Nextcloud audit logging for file access, shares and admin actions, forward logs to a central store, and review themLog retention settings, review records, and examples of access reports produced for a patient record query
Transmission security (164.312(e)(1), standard)Enforce TLS for web, sync and WebDAV traffic, disable plain HTTP, and control how mobile and desktop clients connectTLS configuration report, certificate inventory, and proof that plain HTTP is refused
Business associate contract (164.314(a)(2)(i))If a hosting or support vendor can access ePHI, execute a business associate contract that requires Security Rule compliance and subcontractor flow-downSigned contracts, subcontractor list, and incident reporting terms that match the covered entity's timelines
Certification statusNo HIPAA certification exists. Build evidence that shows implemented safeguards instead of relying on a badgeRisk analysis, policy set, and assessment-ready control records mapped to each specification

Which platforms fit a hospital or clinic file sharing build

Hospitals and clinics usually combine a sync and share core with a document editing layer, and each component carries different licensing, support and maintenance obligations. The cards below cover the core platform options, the commercial support tiers, the packaged installer and the editing layer, so the team can match each option to clinical document workflows and to its own compliance evidence.

Nextcloud Server as the core

Nextcloud Server is licensed under AGPL-3.0 and is the most common base for self-hosted clinical file sharing. Version 35 (Hub 26 Summer) was released on 16 September 2026 and reaches end of life in September 2027, so the build must plan its major upgrades inside that window. Confirm the deployment's support path, the AGPL obligations for any modified code, and which apps are approved for handling ePHI before go-live.

Nextcloud Enterprise support tiers

Nextcloud GmbH sells Nextcloud Enterprise in Standard, Premium and Ultimate tiers with a 100-user minimum. Standard includes one year of maintenance, Premium adds a lifecycle of five or more years and clustered instance support, and Ultimate adds support up to 24/7 with response times down to one hour. For a hospital, the tier decides who answers a security incident at 2 a.m. and whether a clustered deployment is supported, so ask the vendor to confirm the tier that matches the agreed uptime and incident response obligations.

Nextcloud All-in-One for packaged installs

Nextcloud All-in-One is the official installation method and bundles Redis and APCu caching, PostgreSQL, optional Nextcloud Office, Talk with recording, BorgBackup-based backups, ClamAV antivirus and full-text search. A Helm chart is available for Kubernetes. Clinics with a small IT team often find it reduces configuration drift, but the bundled components still need their own review for ePHI handling, backup encryption and antivirus update paths, and the team must confirm which bundled components its support contract covers.

Seafile as a sync-focused option

Seafile server is released under GPLv2 with an additional permission to link with OpenSSL, and it is oriented toward file sync and library-based sharing. It suits sites where the main need is reliable desktop and mobile sync of large file sets, such as imaging exports or research data, rather than a broad collaboration suite. Before selecting it, confirm how its audit logging, retention, and access control rules map to the access control and audit controls the organization must evidence under the HIPAA Security Rule.

ONLYOFFICE Docs for editing

ONLYOFFICE Docs is a browser-based office suite for documents, spreadsheets, presentations, forms and PDF, compatible with Office Open XML formats and licensed under AGPL-3.0. Clinical teams often edit policies, consent templates and rota spreadsheets, so Office compatibility matters. Confirm the document server's network placement, how editing sessions are logged, and whether any editor content is sent outside the hospital network, because the editor sits between the file store and the user's browser.

Collabora Online as an alternative editor

Collabora Online source code is licensed under the Mozilla Public License 2.0, which is a file-level copyleft license that many security teams review more readily than network copyleft terms. It offers an alternative browser editing layer for documents and spreadsheets. Confirm which Office formats and macros the clinic needs to support, how the editor integrates with the file sync platform's access controls, and whether its licensing and support terms fit the procurement policy.

How deployment constraints change the architecture

In an on-premises design, the covered entity owns the hardware, the hypervisor, the network segments and the people who operate them. No cloud vendor sits in the ePHI path, so no business associate contract is needed for hosting. The entity holds the encryption keys for server-side encryption, decides where the database and object storage live, and controls every system log. The cost is that the entity also owns patching, capacity planning and recovery testing.

  • Key custody: The entity generates and stores the server-side encryption master key and the keys for the database and backup repository, usually in a hardware security module or a vault it operates.
  • Logs: Nextcloud audit events, web server logs, database logs and authentication logs flow to a SIEM the entity runs, so audit controls under 164.312(b) stay inside its own boundary.
  • Business associate scope: Only vendors that touch ePHI need agreements. Support engagements with a partner may require one if the partner can view production data, so confirm access terms in writing.
  • Upgrades: Major versions are applied one at a time with a full backup before each step, and third-party apps are disabled until confirmed compatible.
  • Backups: Backup copies are written to a separate storage system and tested by restore, not only by job status.

Check whether your facility controls, physical security and offsite recovery site meet the entity's own risk analysis before committing to this model.

How a healthcare file sharing rollout runs in phases

The sequence moves from understanding what ePHI exists and where it flows to a controlled production cutover, with each phase producing evidence the covered entity can keep. Timing depends on the scope agreed in writing before work starts.

  1. Complete risk analysis and data inventory

    The client's privacy and security leads, with DeployOpen, map where ePHI lives today: file servers, cloud drives, email attachments, removable media and clinical exports. The team records data owners, classification, transmission paths and every business associate that touches the data. The step closes with a signed inventory and risk register that feeds the Security Rule analysis the covered entity is responsible for completing.

  2. Design identity and access controls

    DeployOpen and the client's identity team define how users are created and deprovisioned, typically by connecting Nextcloud to the existing directory through the LDAP app or an OpenID Connect or SAML backend. Roles, groups and folder permissions are drafted around clinical need to know, and unique user identification is confirmed for every account. The output is an access design document and a tested joiner, mover and leaver procedure.

  3. Run a pilot with one clinical unit

    A single unit uses the platform on a defined set of non-production or de-identified data while the team checks sync behavior, permission results, logging output and how staff move files between the platform and clinical systems. Feedback is logged and fixes are retested before wider use. The pilot closes with a written exit report listing defects, residual risks and the decisions needed before policy is locked.

  4. Configure policy and external sharing

    The team turns the approved design into configuration: encryption settings, session timeouts, audit logging, retention and trash settings, antivirus scanning, and rules on which users may create public or guest links, with expiry, passwords and download limits where the policy requires them. External sharing with patients or partners is limited to named, approved workflows. The output is a configuration baseline with a change record and a list of any sharing paths the policy forbids.

  5. Test backup and restore

    DeployOpen restores the database, data directory and configuration to a separate environment and checks that files, versions, permissions and shares return intact. The team measures the restore against recovery targets the client sets in writing and documents the steps in a runbook. The step closes only when a restore has succeeded end to end and the results are signed off by the client.

  6. Cut over to production and train staff

    Data moves from the legacy stores in planned waves, with access tested for each group before the old location is closed. Staff receive role-based training on approved sharing methods, on what is not permitted, and on how to report incidents. The cutover closes with a verified user list, a rollback plan that was agreed beforehand, and a record of training completion kept for the compliance file.

How external sharing with patients and partners is restricted

Can patients and partners get guest access to a self-hosted Nextcloud instance?

Yes, but external access should be limited to named guest accounts for specific partners, not open self-registration. In Nextcloud, administrators can create guest users and share individual folders with them, so each external person is identifiable in the audit trail. Restrict who can invite guests, require approval for new external accounts, and review guest lists on a schedule. Whether patients should use this path at all is a separate decision, covered in the next question.

Should patients use the file sharing platform or a separate patient portal?

Patient-facing exchange often belongs in a dedicated patient portal, and that decision depends on the clinical workflow, which you must confirm with clinical and compliance leads. A file sync and share platform is designed for staff and known partners, not for patient identity proofing, appointment-driven access or patient-facing messaging. If patients must receive results or upload documents, map each exchange to a specific workflow and decide whether it sits in a portal, an EHR feature or a separate application. Involve your privacy officer in that review.

How do expiring and password-protected share links work for ePHI?

Nextcloud supports public share links that can be protected with a password and given an expiration date, and administrators can set policies that enforce these settings. For ePHI, the policy should require a password and a short expiry on any link to a folder that receives external traffic. Test how the server enforces these rules, since a user interface setting alone is not evidence. Confirm the exact share-link options in the version you run before writing the policy into your procedures.

Can public links be prohibited for folders that contain ePHI?

Yes. The control is to disable public link creation for the groups or folders that hold ePHI, so that only named guests and internal users can receive access. Enforce this through the platform's sharing policies and group settings, then test it with a non-privileged account to confirm the restriction holds. Document the mapping between folder classification and sharing rules so auditors can see how the restriction reaches ePHI locations, which supports the access control expectations in the HIPAA Security Rule at 45 CFR 164.312(a).

How can access be blocked from untrusted networks?

Access from untrusted networks can be restricted with access control rules that match client IP ranges, groups or user agents, combined with a reverse proxy or firewall in front of the platform. Define which networks, such as corporate sites, VPN ranges or approved partner addresses, may reach ePHI folders, and deny the rest. Pair this with multi-factor authentication for external accounts. The HIPAA transmission security standard at 45 CFR 164.312(e)(1) expects measures against unauthorized access to ePHI over networks, so network rules should be part of the documented design.

What does a business associate agreement require before a partner gets access?

Before a partner receives ePHI, the covered entity must have a written contract that meets 45 CFR 164.314(a). If the partner is a business associate, the contract must require compliance with the Security Rule, flow the same terms to any subcontractor that handles ePHI, and require reporting of security incidents. Onboarding should check the agreement exists, record the named users and the folders they can reach, and set a review date. Ask your counsel whether any partner is a business associate or merely a recipient under another legal basis.

What does a partner onboarding and offboarding process look like?

A repeatable process has four steps: confirm the legal basis and agreement, create a named guest account with multi-factor authentication, share only the folders needed for the engagement, and log the approval. Offboarding removes access, revokes active share links, and reviews the audit log for downloads made near the end date. Assign an owner for each partner relationship and review access at a fixed interval. These steps create the records that compliance teams request during an assessment.

Can DeployOpen set up these external sharing controls for us?

DeployOpen plans, implements, customizes, integrates and hardens self-hosted open-source platforms inside your own infrastructure, so it can configure guest access, sharing policies, network rules and audit logging as part of a fixed-scope engagement. Scope, deliverables and timelines are agreed in writing before work starts, and a quote follows from that scope. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications. Your legal and compliance teams still own the agreements and the clinical workflow decisions.

What auditors and OCR reviewers ask to see for file sharing

This table maps the records an OCR reviewer or assessor typically asks for to the Nextcloud component or operating process that produces each one. Use it to decide which logs, exports and runbooks to build before an assessment. OCR enforces the HIPAA Security Rule through complaints, compliance reviews and audits, and HHS states that no certification is required, so the evidence itself is what carries the conversation.

Evidence itemProduced byGap to close before review
Access review records for ePHI folders and groupsNextcloud user and group admin, LDAP or SAML directory sync, periodic exports of group membershipDocumented quarterly or otherwise defined review with reviewer sign-off and removal of departed staff
Audit log exports for ePHI access and sharing eventsNextcloud audit logging app, exported to a central SIEM or log storeConfirm which events are captured (downloads, shares, permission changes) and how long logs are retained
Encryption configuration for data at rest and in transitWeb server TLS settings, server-side encryption configuration, database and object storage encryption settingsWritten record of key ownership, key rotation procedure and where master keys are held
Authentication and unique user identification recordsDirectory integration (LDAP, OpenID Connect or SAML) and per-user accountsEvidence that shared or generic accounts are not used for ePHI access
External sharing and guest account inventoryNextcloud sharing settings, guest accounts, public link reportsApproved list of external recipients, link expiry and password rules, and a business associate or data sharing basis for each
Backup restore test resultsBackup tool logs (such as BorgBackup in Nextcloud All-in-One) and restore test recordsDated restore test with recovery time and data integrity results, not only backup job success
Business associate agreement inventoryContract register kept by the covered entity or business associateConfirm that each hosting, support or subcontracting party handling ePHI is covered under 45 CFR 164.314 terms
Risk analysis and risk management recordsOrganization's own risk assessment covering the Nextcloud deployment, database, storage and admin access pathsAssessor will look for ePHI locations, threats and the decisions taken, updated after material changes
Change, patch and upgrade recordsChange tickets, Nextcloud maintenance release records, upgrade logs and pre-upgrade backupsConfirm the one-major-version-at-a-time upgrade path is followed and third-party apps were checked before upgrade

What the penalty range and pending rule revision mean for planning

The planning question is not whether the current Security Rule applies today, because it does, but how much a gap costs if an auditor or the HHS Office for Civil Rights finds one. For penalties assessed on or after 28 January 2026, the inflation-adjusted civil money penalty under 45 CFR 102.3 runs from $145 to $2,190,294 per violation, with a calendar-year cap of $2,190,294. Because the range is set per violation, a single misconfigured share that exposes many records can produce many violations. Treat the cap as a reason to document controls with evidence, not as a ceiling you can budget against. Confirm the current figures in the eCFR text before any board paper cites them.

HHS proposed a major Security Rule revision on 6 January 2025 (90 FR 898). As of October 2026 no final rule has been published, and the Unified Agenda entry for RIN 0945-AA22 projects final action for July 2027. The proposal is a moving target, so do not design to it yet. Design to the rule in force: unique user identification, audit controls under 164.312(b) and transmission protection under 164.312(e)(1), and keep a written log of where each control lives in your Nextcloud deployment. Assign one owner to track the Federal Register and the Unified Agenda, and review the proposal's text against that control map once a final rule exists.

External access is where the penalty risk concentrates now. The CNIL fined Hopital Prive de la Loire EUR 500,000 on 3 September 2026 under GDPR Articles 32 and 34, finding that external access to its patient record system lacked VPN and multi-factor authentication and that access control ignored the care team's need to know. The same pattern applies to a self-hosted share reachable from home or partner networks. Confirm that remote sync clients and browser sessions reach Nextcloud through a VPN or equivalent, require multi-factor authentication for every external account, and scope group membership to care teams and roles rather than to whole departments. Record the result of that test as evidence for the next review.

What to ask an implementation partner before a healthcare file sharing project

Will the implementation partner sign a business associate agreement, and does it cover subprocessors?

Yes, a partner that touches ePHI during implementation, migration, support or backup is a business associate, so it should sign a business associate agreement before access begins. Under 45 CFR 164.314(a)(2)(i), that contract must require compliance with the Security Rule, flow the same terms down to any subcontractor that handles ePHI, and require reporting of security incidents, including breaches of unsecured PHI. Ask for the list of subprocessors (hosting provider, backup vendor, support tooling, offshore staff) and confirm each one is covered by a written downstream agreement. Confirm also who holds the agreement: DeployOpen plans, implements and supports self-hosted platforms inside your infrastructure, so the contract must match the actual access the partner gets to ePHI.

How does the partner map HIPAA technical safeguards to a Nextcloud deployment?

Ask for a written mapping from each technical safeguard standard in 45 CFR 164.312 to a named configuration, log source or procedure in your environment. The mapping should cover unique user identification, emergency access, automatic logoff, audit controls, integrity, person or entity authentication, and transmission security, with the required and addressable status of each implementation specification noted. Ask for examples from past work that show how the partner documented decisions on addressable specifications, because an auditor will ask why a control was chosen or why it was not. Remember that the partner prepares evidence for your assessment; it does not issue a certification, and HHS does not offer a HIPAA certification.

How are emergency access and audit logs designed, and who can read them?

A sound design defines a break-glass account or procedure that is documented, tested and separately logged, and it defines who may invoke it and how access is reviewed afterward. For audit controls under 45 CFR 164.312(b), ask where Nextcloud audit events are written, how they are forwarded to a log store you control, how long they are retained, and how administrators are prevented from editing them. Ask the partner to show the log fields captured for file access, sharing changes and admin actions, and how alerts reach your security team. Confirm that the emergency access procedure and the audit design are both in the written scope and that your own staff own the review step.

How is each major Nextcloud upgrade scheduled and tested?

Nextcloud does not allow skipping major releases, so each upgrade moves one major version at a time, and administrators must back up before every upgrade and disable third-party apps until they are confirmed compatible. Ask the partner how it tracks the release calendar, how long each version stays supported, and how it stages upgrades in a non-production copy before production. The release schedule currently lists Nextcloud 35 with end of life in September 2027 and Nextcloud 36 scheduled for 17 February 2027, so ask how the partner plans around those dates. Ask who approves each change window and how the maintenance hours and downtime are communicated to clinical staff.

How are backups restored and how often is restore testing performed?

A backup has no value until a restore has been proven, so ask for the restore test plan, the recovery time and data loss targets you approved, and the record of the last successful test. Confirm that the backup covers the database, the data directory and configuration, and that it is stored outside the sync path so that a compromised client cannot delete it. Ask whether the partner uses a tool such as BorgBackup, as bundled in Nextcloud All-in-One, and how encryption keys for backups are held. Ask who performs restore tests, how results are documented as evidence, and what happens when a test fails.

What support tier is included, and what does it cover for an ePHI environment?

Support scope depends on the software edition and on the partner's own service agreement, so ask for both in writing. If you use Nextcloud Enterprise, the pricing page describes Standard with 1-year maintenance, Premium with a maintenance lifecycle of 5 or more years and extended support hours, and Ultimate with support up to 24/7 and response times down to 1 hour. Ask the partner what response times it commits to for security incidents, whether it provides on-call coverage outside business hours, and how it reports incidents to you in time to meet the business associate contract. Ask also whether a retainer for upgrades, security patching and continuous testing is included or priced separately, and what remains your team's responsibility.

Can we do this ourselves, and what would the partner take off our hands?

Many hospitals have the skills to run a self-hosted platform, but the work falls into groups: installation, identity integration, hardening, backup design, upgrades, evidence collection and ongoing operations. Ask the partner to split the scope into those groups and say which ones your team would keep. Ask for a written scope with deliverables and timelines before work starts, since most DeployOpen engagements are fixed-scope. Ask how knowledge transfer and runbooks are delivered so that a future staff change does not leave the environment unmanaged.

How DeployOpen scopes and supports clinical file sharing

DeployOpen plans, builds, hardens and documents the Nextcloud deployment inside your own infrastructure, then prepares the systems, configuration records and evidence that your assessors will ask for. DeployOpen does not issue audit reports, attestations or certifications, and there is no HIPAA certification to buy. Your covered entity or business associate obligations remain with your organization, and the scope of what DeployOpen touches, which hospitals, clinics, identity sources, storage nodes and backup targets are included, is agreed in writing before any work starts. Ask for that scope document to name the ePHI data flows and the Security Rule areas each deliverable supports.

Readiness work usually includes security testing of the deployment itself before go-live: application and API testing of the Nextcloud instance, configuration review of the web server, database and reverse proxy, and checks on external share settings, guest account behavior and audit log integrity. Testing findings should be tracked to closure with dated remediation records, because an assessor will ask how weaknesses were found and fixed, not only whether they were configured correctly. Confirm with any partner who performs this testing whether it is delivered as a one-time engagement or as part of a continuing program.

After go-live, ongoing support, upgrades and continuous testing are available as retainers, which is where most of the recurring effort sits. Nextcloud requires one major version at a time and a backup before each upgrade, so the retainer scope should state who runs upgrade rehearsals, who signs off on third-party app compatibility, and who restores from backup during a test. Ask for the support hours, response targets and named escalation contacts in writing, and confirm that they cover the database, the operating system and the backup platform as well as the application.

How DeployOpen works on this

DeployOpen plans, implements, hardens and documents self-hosted Nextcloud inside your own infrastructure, so ePHI stays under your control. Each engagement starts with a written scope that maps the HIPAA technical safeguards to the configuration, evidence and operating procedures your organization will own.

How we scope

  • Inventory which clinical, administrative and research shares hold ePHI and who must reach them.
  • Map access controls, audit logging and transmission security to the relevant 45 CFR 164.312 standards and specifications.
  • Agree in writing which external sharing with patients or partners is allowed, restricted or excluded.

How we build

  • Deploy Nextcloud in the hosting environment you choose, with encryption, directory login and audit logging configured to the agreed design.
  • Test access restrictions, link expiry, guest limits and logging against the written scope before go-live.
  • Document the backup design, restore tests and the business associate terms your partners and vendors must meet.

How we hand over

  • Deliver configuration records, runbooks and control evidence that your privacy and security teams can review.
  • Walk administrators through upgrades one major version at a time, with a backup taken before each change.
  • Provide a handover of open items, owners and the evidence an independent assessor would typically request.

How we support

  • Offer ongoing support, upgrades and continuous security testing as a retainer after handover.
  • Cover patching and monthly maintenance releases on a schedule agreed in the retainer terms.
  • Confirm support boundaries, response expectations and escalation paths in the written agreement before work starts.

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.