Medplum self-hosting best practices checklist

The operating baseline Medplum recommends for self-hosters, translated into decisions your team or a partner must make, with the checks that show each one is in place.

On this page

Medplum self-hosting best practices checklist for regulated teams

If you are a healthcare engineering or security lead who must run Medplum inside your own infrastructure, this page is the operating baseline Medplum recommends for self-hosters, and it applies whichever install path you choose. The baseline covers six areas: a dedicated cloud account, infrastructure as code, leaving the database schema to Medplum rather than editing it by hand, private networking, secrets management, and a patching cadence. You need it before the first production environment exists, because these choices are hard to retrofit once clinical data, identity integrations and audit evidence depend on them. Medplum is released under the Apache 2.0 license, so the software is yours to run, but the license does not carry operational responsibility with it.

Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers. When you self-host, the controls that Medplum Cloud would otherwise handle for you, such as account isolation, network boundaries, key custody, backups and patch timing, move to your team. Start by confirming which account, region and network boundary will hold PHI, who holds administrative access to that account, and how changes to infrastructure are reviewed. Then check the Medplum versions and release policy for the support window of the major version you plan to run, since security patch targets depend on it. Confirm the current targets with Medplum rather than assuming them, and record who in your organization owns each step.

Treat the database schema as Medplum's responsibility. Do not run manual DDL or change tables to fit a local need, because server upgrades depend on the migrations Medplum ships, and skipped minor versions can fail at startup. Put the server configuration, secrets and infrastructure definitions under version control with change review, so that every environment can be rebuilt and every change traced. Before you go live, ask Medplum to confirm the supported upgrade order for your target version and write down the rollback point for each upgrade window. Your auditors will ask for this evidence, and your operations team will need it on the day something breaks.

Which install path changes the baseline

The AWS path is the one Medplum's self-hosting docs describe as the recommended option, and it is built around CDK and CloudFormation. Infrastructure as code is largely handled for you, so the baseline work moves to account design and to reviewing what the generated stack creates. Your team owns the account boundary, the IAM roles, and the choices that sit outside the stack.

  • Dedicated account: Place Medplum in its own AWS account or organizational unit, separate from general workloads, so that IAM, service quotas and audit trails map to one system.
  • Reviewed CDK output: Keep the CDK app in version control, review the synthesized CloudFormation before each deploy, and record who approved changes.
  • Scoped IAM: Confirm that the deployment roles are limited to the resources the stack needs, and that human access goes through SSO rather than long-lived keys.
  • Private database and cache: Check that the database and Redis endpoints are not reachable from the public internet and that the security groups allow only the application tier.
  • Secrets in the AWS store: Keep configuration secrets in the parameter and secret stores, not in CDK context files or repository history.

Before go-live, ask the team installing the stack to show you the account layout, the IAM policies and a network diagram. The install steps themselves are covered in the sibling topic on deploying Medplum on AWS with CDK.

Five practices that keep a self-hosted Medplum supportable

These five practices set the boundaries around a self-hosted Medplum deployment: where it runs, how it is built, who owns the database, how traffic reaches it, and where credentials live. Each one makes the others easier to audit, upgrade and recover, which is what a compliance team and an on-call engineer both need.

Give Medplum a dedicated cloud account

Run the Medplum environment in its own cloud account or subscription, separate from shared corporate workloads and from non-production environments. Isolation limits who can change IAM roles, networking and data stores, and it makes the evidence trail for a healthcare audit much simpler to assemble. Ask your team which identities have administrative access to that account and whether any of them are shared.

Self-hosting docs

Define every resource as code

Describe networks, clusters, databases, storage buckets, DNS and mail settings in infrastructure as code, and apply changes only through a reviewed pipeline. Medplum's recommended AWS path uses CDK and CloudFormation, and the Azure and Google Cloud paths use Terraform, so a hand-built console change is the first thing to drift. Check that you can rebuild the environment from the repository alone.

Leave the schema to Medplum

Let the Medplum server own database schema creation and data migrations, and do not hand-edit tables, indexes or migration records. Medplum requires upgrades to pass through each minor version in order, and post-deploy data migrations on large datasets can run for hours or days. A manual change to the schema can make that sequence fail or leave the database in a state no supported upgrade path expects.

Upgrade guide

Keep PostgreSQL and Redis private

Place PostgreSQL and Redis on private subnets or private endpoints that only the Medplum server and its workers can reach, with no public IP addresses. Medplum uses PostgreSQL as its database and Redis as its cache, so exposing either one turns a configuration mistake into direct access to clinical data. Confirm that security groups or firewall rules allow only the application tier, and that administrative access goes through a bastion or a managed session tool.

Keep secrets out of code and config

Store database passwords, signing keys, client secrets and mail credentials in a managed secrets store such as AWS Parameter Store, Azure Key Vault or Google Secret Manager, and inject them at runtime. Repositories, container images and plain JSON config files should contain no credentials. Ask which people can read each secret, how rotation is done, and whether a leaked value can be replaced without a full redeploy.

Choosing how strictly to apply each baseline item

This table compares each baseline item against team size, regulatory exposure and in-house cloud skills, showing where it is non-negotiable and where a smaller team might accept a narrower version. Read each row as a decision: the right-hand columns describe what changes as the organization gets larger, more regulated or less experienced with cloud operations. The main takeaway is that the dedicated account, hands-off schema and patching cadence rarely relax, while the depth of IaC modules and network segmentation can be scaled to the team.

Baseline itemSmall team, low regulatory exposureRegulated or multi-team deployment
Dedicated cloud accountSeparate account or subscription is still advised, even if the team is one or two engineersRequired, with separate production, staging and security logging accounts that the compliance team can review
Infrastructure as codeScripted setup from the Medplum tooling is acceptable if the script is kept in version controlRequired, with reviewed change history, drift detection and documented ownership of each stack
Hands-off database schemaLet the Medplum server manage migrations and avoid manual DDL on the Medplum databaseRequired, with schema changes only through the vendor-supported upgrade path and recorded in change tickets
Private networkingKeep the database and Redis off the public internet; a simpler single-subnet layout may be enoughRequired, with segmented subnets, restricted security groups and documented ingress paths for each service
Secrets managementManaged secret stores are preferred; restricted configuration files with tight file permissions are a fallback for single-server installsRequired, with a managed secret store, rotation procedure and access logging reviewed by security
Patching cadenceApply patch releases on a fixed schedule and track the security response targets the Medplum versioning policy setsRequired, with a written cadence, staging validation and evidence of when each patch reached production
Minor version sequencingUpgrade through each minor version in order, even when the team is small, to avoid startup failuresRequired, with a rehearsed upgrade plan, backup before each step and a rollback window agreed in advance

Where the trust boundaries sit in a self-hosted Medplum

The diagram starts with users and applications signing in through the identity provider, which issues tokens back to them. Those tokens travel to the public ingress inside a dedicated cloud account, which forwards requests to the Medplum server. The server reaches PostgreSQL and Redis only from a private subnet, and it reads its configuration secrets from the secrets store. Check that your team controls each zone, that no database or cache endpoint is publicly reachable, and that secrets never leave the account.

Trust zones and request flow for a self-hosted Medplum deployment.

Applying the baseline in order

The sequence below turns the baseline into a build order, so each layer is isolated, codified and checked before the next one depends on it. The result is a self-hosted Medplum environment whose database is private, whose configuration is versioned and whose upgrades follow a planned cadence.

  1. Create the dedicated account and identity boundaries

    Your cloud or platform team creates a separate account, subscription or project for Medplum, with its own administrators, billing alerts and audit logging turned on before any resources exist. Keep administrative roles for Medplum distinct from roles used by other workloads, and confirm who can change IAM policies. Done means you can list every principal with access to the account and each one has a named owner.

  2. Codify networking and compute in infrastructure as code

    Define the VPC or virtual network, subnets, load balancers, compute and DNS in a versioned infrastructure-as-code project, then deploy it from a reviewed pipeline rather than the console. Medplum's own self-hosting docs recommend AWS with CDK and CloudFormation, and Terraform-based Azure and GCP deployments are marked Beta, so confirm which tooling your target path uses. Done means a fresh environment can be rebuilt from the repository and the console shows no drift from it.

  3. Place PostgreSQL and Redis on private networking

    Create the PostgreSQL database and Redis cache inside private subnets, with security groups or network policies that accept traffic only from the Medplum server workloads. Medplum uses PostgreSQL as its database and Redis as its cache, so both are part of the trust boundary for patient data. Check that no public endpoint exists for either service by attempting a connection from outside the private network, which should fail, and by reviewing the resource configuration for any public access setting.

  4. Load secrets from a managed store

    Store database credentials, signing keys and other configuration secrets in your cloud provider's managed secrets service or an equivalent vault, and grant read access only to the Medplum workloads that need them. Keep non-secret settings in versioned configuration, and reference secrets by name instead of writing them into config files, images or repository history. Done means a search of the repository and container images finds no credentials, and rotating one secret does not require a rebuild.

  5. Let Medplum run its schema migrations

    Start the Medplum server so it applies its own database schema, and do not hand-edit tables, indexes or migration state in PostgreSQL. Manual schema changes make later upgrades harder to reason about, because each minor version is expected to be applied in sequence and post-deploy data migrations are part of that path. Done means the migration log records a clean run, the server reports healthy, and you have a documented record of the Medplum version that created the schema.

  6. Confirm the deployed build and version

    Record the exact Medplum server version in your configuration repository and check it against the releases page before go-live. The latest release at research time was 5.2.5, published on October 15, 2026, but your deployment should pin the version you have tested, not whichever release is newest. Done means the running version matches the pinned value and the version is written into your change log.

  7. Set the patching cadence

    Agree a written patching schedule that covers weekly patch releases, quarterly or more frequent minor versions, and the annual major release in Q4, with named owners for each. Medplum's versioning policy sets a 7-day target for critical security patches (CVSS 9.0 or higher) and a 14-day target for high ones (CVSS 7.0 to 8.9), so the cadence must allow a fast path for those. Done means the schedule is approved, test environments receive changes first, and the next upgrade date is on the calendar.

Why upgrades must follow the version sequence

A self-hosted Medplum server must move through each minor version in order. Skipping versions is not a shortcut. The upgrading guide documents startup failures when a deployment jumps, for example, from v3.1.2 straight to v4.3.4. Post-deploy data migrations can also run for hours or days on large datasets, so a skipped step can leave a clinical environment stuck mid-migration with no quick way back. Before you schedule any upgrade, map your current version to the full list of minor releases between it and your target, and confirm the sequence against the Medplum upgrading guide.

That constraint shapes your patching cadence. Medplum ships patch versions weekly, minor versions two to three times a year, and major versions annually in Q4. Each major version receives one year of Active support, one year of Maintenance, and, under the Enterprise extension, 12 more months of security patches for 36 months in total. Security patches target 7 days for critical vulnerabilities (CVSS 9.0 or higher) and 14 days for high ones (CVSS 7.0 to 8.9). Those targets only work if your team can apply a patch release quickly, which means keeping staging current enough that each weekly patch and any minor step in between can be tested and promoted without a long catch-up. Confirm the current targets and support windows in the Medplum versions and release policy.

Use the latest release at research time, 5.2.5 (published October 15, 2026), as the reference point to confirm, not as a target you assume is still current. Check the Medplum releases page on the day you plan, record the version you run and the sequence you will follow, and assign an owner to watch for security advisories. If your deployment is more than a few minor versions behind, ask whether your upgrade plan needs a dedicated migration window before any patch-level work begins.

Security and operational risks the baseline must cover

Self-hosted Medplum puts identity, secrets, configuration, patching and recovery in your hands. The risks below cluster around those areas, and each card pairs a risk with the baseline control that addresses it. Use them as a review list before go-live and again after every upgrade.

Identity configuration gaps

Medplum Auth can serve as the identity provider, or you can connect external providers such as Google, Auth0 or AWS Cognito, along with domain-level corporate identity providers and MFA. Choosing one model per project and leaving the others unset is a common source of accounts that bypass your SSO policy. Confirm that every human sign-in path enforces MFA and that the external provider is the only route for staff. Review the enabled sign-in methods after each change, and check whether your plan includes the multiple external identity providers feature that the pricing page lists as enterprise.

Medplum auth docs

Credentials leaking through CI and config

Client credentials for server-to-server access, database passwords, signing keys and email provider keys often end up in pipeline logs, repository history or plain JSON config files. Medplum server settings can come from JSON files, environment variables or a parameter store, so the risk depends on which path your team uses. Store secrets only in your secrets manager and inject them at deploy time. Scan repositories and pipeline logs for committed credentials, and rotate any value that has ever been exposed.

Drift from manual changes

When an engineer edits a load balancer rule, a security group or a Kubernetes value directly in the console, the running system stops matching the code that reviewers approved. Drift makes upgrades harder to predict and makes it difficult to prove to an auditor what the production system looked like on a given date. Make infrastructure as code the only write path for production. Run scheduled plan or diff jobs that report changes made outside the pipeline, and treat every finding as an incident to explain.

Unpatched dependencies and platform versions

Medplum publishes patch releases weekly and a major version annually in Q4, and its policy targets security patches within 7 days for critical vulnerabilities and within 14 days for high ones. Self-hosters also own the operating system, PostgreSQL, Redis, Node.js and container base images, which Medplum does not patch for you. Assign an owner for each layer and a dated patching cadence that fits the policy targets. Track the latest release on the GitHub releases page and confirm you are on a version still in support.

Medplum versions policy

Skipped upgrade steps

Self-hosted Medplum must move through each minor version in sequence. Jumping from a version such as v3.1.2 straight to v4.3.4 causes startup failures, and post-deploy data migrations on large datasets can run for hours or days. Patching urgency can tempt teams to leap ahead, which makes the path worse. Plan every upgrade as an ordered sequence of stops, with a tested restore point before each one. Ask your vendor or partner to estimate migration duration against a copy of your data before the production window.

Upgrading guide

Backup and restore gaps

A backup that has never been restored is an assumption, not a control. Medplum stores clinical data in PostgreSQL and uses Redis as a cache, while binary files, such as documents and images, live in object storage that needs its own protection. Restores can fail because the database, binaries and signing keys came from different points in time. Test a full restore into a separate environment on a schedule, and record the time it takes. Confirm that the database, binary storage and presigned URL signing keys are backed up together and can be recovered as a set.

Questions teams ask before self-hosting Medplum

What drives the effort of applying the Medplum self-hosting baseline?

The effort depends mainly on how much of the baseline your environment already meets. The main drivers are whether you already have a dedicated cloud account for Medplum, whether your infrastructure is defined as code, how much of your network can be private, and whether secrets already live in a managed store. Teams starting from nothing spend most of their time on account structure, IAM, networking and pipelines before Medplum itself is deployed. Teams with an existing platform team usually spend more time on Medplum-specific choices such as database schema control and the upgrade process. Ask any partner to break the scope down by these areas so you can see which ones your environment already covers.

Can our in-house team apply the baseline without outside help?

Often yes, if the team already runs production cloud infrastructure and can own it after handover. The work asks for skills in cloud identity and access management, private networking, infrastructure as code, managed databases and secrets handling. It also asks for a team willing to follow a change control process and to keep Medplum on a supported version. Check whether you have people who can build and review these pieces, who can respond to an alert at night, and who will keep the work going after the first deployment. If those gaps exist, a fixed-scope engagement can build the baseline with your team so knowledge stays in-house.

What does the work need from our team in accounts, cloud skills and change control?

You need a dedicated cloud account or subscription for Medplum, with billing, IAM roles and logging owned by people who can approve access. Engineers need working knowledge of your chosen cloud and of infrastructure as code. Change control matters because the Medplum server, its configuration and its database schema should change only through reviewed, versioned steps. Expect to provide:

  • A cloud account and a domain you control for the Medplum base URLs
  • Named owners for identity, networking and secrets
  • A reviewed change process for configuration and upgrades
  • An email sending setup if invites and MFA codes must be delivered
How do Medplum upgrades affect staffing?

Upgrades take planned staff time, and they recur. Medplum ships patch versions weekly, minor versions two to three times a year and major versions annually in Q4, according to its versioning policy. Self-hosted deployments must move through each minor version in sequence, because skipping versions causes startup failures. Post-deploy data migrations can run for hours or days on large datasets, so someone must monitor them and plan a rollback window. Security patches have targets of 7 days for critical vulnerabilities and 14 days for high ones. Staff this as an ongoing role, not a one-time project.

How does self-hosting Medplum differ from Medplum Cloud?

Self-hosting moves operation, patching, backups, network controls and evidence collection into your organization. Medplum's hosted plans are listed on its pricing page as Free, Production at $2,000 per month, Premium at $6,000 per month and custom-priced Enterprise. Self-hosting is offered as a free Community option or custom-priced Enterprise Self-Hosted. Paid cloud plans include standard BAA and MSA agreements. Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers, so a self-hosted deployment means your team owns more of the control set. Confirm licensing and support terms directly with Medplum before you decide.

What does a partner typically scope for a baseline engagement?

Most DeployOpen engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts. For this baseline, a written scope usually covers the cloud account structure, infrastructure as code for the Medplum stack, private networking, secrets management, the database schema change process, a patching cadence tied to Medplum's release policy, and handover documentation. Ongoing upgrades, support and continuous testing are available as retainers. A quote follows from the written scope, so ask for each area to be listed with its deliverable and who performs the work.

Which Medplum release should we plan around when we start?

Plan around the current supported line at the time of build, and confirm it on the release page before you write your change plan. At research time the latest release was version 5.2.5, published on October 15, 2026. Releases change often, so treat that date as a snapshot. Pin your deployment to a specific version, track weekly patch releases, and schedule minor and major upgrades against the support windows in Medplum's versioning policy.

How the baseline is scoped and handed over

DeployOpen applies this baseline by planning and implementing self-hosted Medplum inside your own cloud accounts, data centers or private networks, so the dedicated account, the infrastructure as code, the database and the secrets stay under your control from the first day. Engagements are usually fixed-scope: the components in scope, such as the chosen install path, the PostgreSQL and Redis layout, the network boundaries and the secrets store, are written down with the deliverables and timelines before work starts. Ask any partner to show you which of these items are in the quote and which remain with your team.

The handover is where the baseline either holds or drifts. Expect written deliverables that include the infrastructure code, a runbook for the patching cadence in Medplum's versioning policy, a record of who holds each secret, and documented steps for upgrading through each minor version in sequence. Confirm with the partner which artifacts you receive in a form your team can run without them, and which need a separate agreement to keep current.

Ongoing work is priced separately. Upgrades, security patch application, configuration changes and continuous testing can be covered by a retainer after the initial build, and that recurring cost is often larger over time than the first build. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Your independent auditor or certification body makes that determination, so ask your auditor which evidence they will need from the deployment before the build is scoped.

How DeployOpen works with your Medplum team

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Medplum, that means turning this operating baseline into a written scope, a build your team can review, and a handover your operators can run without us.

How we scope

  • We agree scope, deliverables and timelines in writing before any work starts.
  • The written scope names the cloud account, infrastructure as code tooling, database and secrets decisions in your environment.
  • Most engagements are fixed-scope, and a quote follows directly from that written scope.

How we build

  • We deploy Medplum in your dedicated account with infrastructure as code so the environment can be reviewed and rebuilt.
  • We keep database schema changes under Medplum's upgrade process and document each step taken.
  • We configure private networking, secrets management and patching procedures, then test the setup against the agreed scope.

How we hand over

  • You receive the infrastructure code, configuration records and runbooks for your own operators to use.
  • We document the patching cadence, upgrade sequence and evidence your compliance and security teams need to review.
  • We walk your team through the handover so they can operate the deployment without depending on DeployOpen.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • A retainer can cover Medplum version upgrades on the sequence Medplum publishes, applied in your environment.
  • Ask any partner to confirm how they will keep your deployment current with security patches and retesting.

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.