Medplum projects for development, staging and production

Medplum projects separate data, users, settings and access policies inside one server, so teams can run development, staging and production or several customers without mixing records. This page explains the isolation model and when to use separate servers instead.

On this page

Medplum projects for development, staging and production: what a project isolates

A team that needs separate development, staging and production environments, or a hard boundary between customers, has to decide early whether a Medplum project is enough or whether each boundary needs its own server. A project is the unit Medplum uses to group FHIR resources, the users who can reach them, project settings, access policies and secrets such as client credentials. Separate projects let one self-hosted Medplum server hold several sets of data and configuration that do not share users or resources by default. Before you rely on that separation for a regulated workload, read the isolation guarantees in the Medplum docs (start with Medplum authentication) and confirm them against the version you run, because the documentation supplied for this page does not spell out every boundary.

The practical question is what each boundary must stop. Environment separation usually means a staging project never holds production patient data, and that a developer's test credentials cannot reach production. Customer separation is stricter: each customer's records, users and admin rights should stay inside its own boundary, and a misconfigured user in one project should have no path into another. Ask your Medplum contact or check the documentation for whether users, access policies, client applications and Bots are fully scoped to one project, and whether any administrative role spans projects on the same server. Also confirm whether a server-level administrator can see every project, since that person becomes part of your audit and access review scope.

Choose separate servers instead of projects when the boundary is a compliance or operational one rather than a data one. Examples include a customer who requires dedicated infrastructure, a production environment that needs its own upgrade window and backup policy, or a workload whose data residency rules differ from the rest. Projects are cheaper to operate because one server, database and Redis cache serve them all, but that sharing also means an outage, an upgrade or a heavy migration affects every project at once. Write down the boundary you need, the people who administer it and the change process for each environment before you create the first project, so the decision can be reviewed by your security and compliance teams.

How the isolation model differs by audience

Platform engineers need to know what a project boundary changes underneath the deployment. Projects separate users, access policies and configuration inside one Medplum deployment. They do not create a separate server, database, cache or upgrade cycle, so a problem in the shared runtime reaches every project on it.

  • Shared server and database: All projects on one self-hosted deployment run on the same Node.js server, PostgreSQL database and Redis cache. Capacity limits, slow queries and outages affect every project at the same time.
  • Shared upgrade cycle: Upgrades apply to the deployment, not to one project. Medplum requires upgrades through each minor version in sequence, so a sibling project cannot stay on an older version while another moves forward.
  • Shared release channel: Development and production projects run the same server build. A staging project tests production risk only when it runs the same version and a realistic data shape.
  • Project-scoped settings: Users, access policies and project settings belong to each project, which limits the effect of a configuration mistake. Confirm how each setting behaves in your version before you rely on it.
  • Separate servers for independent control: When a team needs its own upgrade timing, capacity or failure isolation, plan a separate deployment rather than a second project.

Before you treat a project as an independent environment, confirm the server topology and upgrade calendar with the team that will operate it.

What lives per project and what the server shares

A Medplum project is the unit that holds users, settings, policies and client credentials, while the server, database and cache sit underneath and are shared on a self-hosted deployment. Knowing which items stop at the project boundary tells you what can be promoted safely and what must be verified in each environment.

Users and memberships

Each project keeps its own set of users and the memberships that link them to roles and access policies. A person who works on development should not inherit production membership by default, so each environment needs its own membership list. Confirm in the Medplum docs whether a user account can belong to more than one project and how the email address is handled across them before you plan onboarding and offboarding.

Medplum auth docs

Project settings

Project settings hold the configuration that shapes how the project behaves, such as branding, identity configuration and feature switches. Settings are not automatically identical across environments, so a change tested in staging can differ from what production receives. Compare the settings of each project as part of every release, and record which values are meant to differ, such as hostnames and redirect URLs.

Access policies

Access policies determine what each user, role or client can read and write inside a project. Because they are stored per project, a policy that is tested in one project is not in effect in another until it is created there. Treat policies as code that is reviewed, exported and applied in a fixed order, and run your access tests against the staging project before production.

Bots and client applications

Bots and client applications are registered inside a project and run with the permissions of the project they belong to. A Bot deployed to staging does not run in production, and its credentials are tied to the project that issued them. Inventory every Bot and client in each project, and confirm in the docs which of them can be exported or recreated, since that determines your promotion path.

Secrets and identity provider configuration

Client secrets, signing keys and external identity provider settings are project-specific and must never be copied from one environment to another. Each project needs its own identity provider connection with redirect URLs that point to its own hostname. Decide where these values are stored, who can read them, and how they are rotated, and confirm with Medplum which of these items the project API exposes.

Self-hosting docs

Server, database and cache shared

On a self-hosted deployment, one Medplum server, one PostgreSQL database and one Redis cache usually serve every project on that instance. A heavy load or a failed migration in one project can therefore affect the others, and an upgrade applies to all of them at once. Ask your team to size capacity for the combined load and to confirm how the database is partitioned, backed up and restored per project.

Upgrading server guide

Projects, separate projects per customer or separate servers

This table compares three ways to separate Medplum work: environments as projects on one server, customers as projects on one server, and separate servers per environment or customer. Read each row as a question to answer for your own organization, then check the rightmost columns for where the effort and risk move. The main takeaway is that projects separate data and configuration within one server, while separate servers add isolation at the cost of running more infrastructure.

FactorOne project per environmentOne project per customer on one serverOne server per environment or customer
Isolation boundaryDevelopment, staging and production data are kept apart within one serverEach customer's records, users and settings sit in their own project on a shared serverData, database, cache and network path are separate for each server
Upgrade couplingAll projects move to the same server version at the same timeOne server upgrade affects every customer project at onceEach server can be upgraded on its own schedule, with its own test window
Operating cost driversOne server, one database and one set of backups to runShared server capacity, plus support effort per customer projectInfrastructure, monitoring, backups and upgrade effort multiply with each server
Identity setupUsers, clients and identity provider settings are configured per projectEach project needs its own user directory, client applications and sign-in settingsIdentity providers and redirect settings are set up once per server, with added administration
Secrets and settingsEach project holds its own secrets and configuration valuesCustomer-specific secrets and settings are scoped to each projectSecrets are managed per server, which adds rotation and access work
Promotion effortConfiguration moves from development to staging to production through a defined processShared profiles or terminology must be copied or linked into each customer projectEvery change must be deployed to each server, so promotion pipelines multiply
Ask your partner or vendorConfirm which settings and resources can be exported and imported between projectsConfirm how project linking and shared resources behave in your Medplum versionAsk for a quote that counts server count, upgrade windows and identity setup separately

How to promote configuration from development to production

Configuration and patient data should move between Medplum projects by different routes. Access policies, client applications, Bots, terminology and similar resources define how your system behaves, so they can be written once, reviewed and applied to each environment. Patient data is different. Copying real records from production into development or staging creates a second copy of protected health information with its own access, logging and retention obligations, and it is rarely needed to test configuration. Treat any copy of patient data into a lower environment as an exception that needs a documented reason, an approver and a deletion date, and use synthetic or de-identified records for routine testing.

Export and import tooling is what keeps promoted configuration consistent. Keep the definitions of access policies, client applications, Bots and terminology in version control, and promote them through the same review gate as application code, so a change reaches production only after someone other than its author has approved the diff. Infrastructure as code, applied to the Medplum project setup, reduces drift by making the target state explicit and repeatable. Confirm with Medplum which resource types its export and import tooling supports in the version you run, and which fields it omits, such as secrets or certain references, because those gaps determine what you must recreate by hand. Check the Medplum documentation for your deployment model before you design the pipeline.

Drift is the main risk once promotion is automated. Set a rule that production configuration changes only through the pipeline, and run a scheduled comparison between the version-controlled definitions and the live project to catch manual edits. Record who approved each promotion and which version of each resource was deployed, so a later incident can be traced to a specific change. Plan a rollback step for configuration as well as code, because a policy that is too broad or too narrow can affect clinical users immediately after it is applied.

Setting up development, staging and production projects in order

This sequence turns an agreed environment and customer boundary into Medplum projects with their own administrators, identity settings, access policies and test data rules. It ends with negative tests that show one project cannot read another's records.

  1. Decide the boundary model first

    Before creating anything, write down which environments and customers need separation and whether they share one Medplum server or run on separate servers. Decide which environments hold real patient data and which hold only synthetic records. Involve your security and compliance leads, because this decision sets who can administer each project and what evidence you will later show. The step is done when a signed-off table lists each project, its purpose, its data type and its server location.

  2. Create the projects on the server

    An administrator creates one Medplum project per agreed environment or customer using the Medplum admin tools, and names them so that the purpose is clear from the name alone. Record the project identifiers in your configuration documentation so that later scripts and reviews refer to the same objects. Confirm the exact project creation steps for your Medplum version in the vendor documentation, since the admin interface may change between releases. The step is done when each project appears in the admin list with the agreed name and no inherited settings you did not expect.

  3. Assign per-project administrators and users

    Name at least one administrator for each project and give users membership only in the projects they need. Keep production administrators separate from development administrators so that a developer working in a test project cannot change production settings. Use a small, named list for production access and review it on a schedule your compliance program defines. The step is done when a membership export for each project matches the approved access list, with no shared or generic accounts.

  4. Configure identity providers and client applications per project

    Set up sign-in for each project separately, choosing the identity provider and the client applications that each environment will use. Use different client IDs and secrets for development, staging and production so that a credential leaked from one environment cannot be used in another. Confirm which identity provider options your plan supports, such as multiple external providers, since the pricing page lists some of them as an enterprise feature. The step is done when a test sign-in in each project succeeds only with that project's identity settings and fails with the other project's client.

  5. Set access policies in each project

    Apply access policies in every project, starting from the least privilege each role needs, rather than copying a permissive policy from development. Keep policy definitions in version control so that changes are reviewed and can be restored. Give Bots and client applications their own narrow policies. The step is done when each role's policy has been reviewed by someone other than its author and the project's policy list matches the version-controlled files.

  6. Load test data only into non-production projects

    Load synthetic or de-identified records into development and staging only. Keep a written rule that production projects receive data through the approved intake path, never through test scripts or copies of development data. Label test records clearly, for example with a tag or identifier convention, so they cannot be mistaken for clinical data during a review. The step is done when a search for the test label in the production project returns no results and the rule is written into your data handling procedure.

  7. Define the promotion path for configuration

    Decide which items move from development to staging to production, such as access policies, client application settings and bot definitions, and which must be created separately in each project, such as secrets and user accounts. Export configuration from the source project, review the diff, and apply it through the same process each time so that promotions are repeatable. Keep a record of each promotion with the person who approved it. The step is done when a promotion from staging to production has been carried out once end to end, with the approval record and a diff showing only the intended changes.

  8. Verify isolation with negative tests

    Write tests that try to cross boundaries: a user from one project requesting a record from another, a development client credential calling production, and a staging administrator changing a production setting. Each test should expect the request to be refused and should be repeated after every configuration change. Run the tests with credentials that represent real roles, and keep the results as evidence. The step is done when every negative test fails to cross the boundary, and the results are stored with the date and the Medplum version tested.

One shared server keeps three projects separate at the user level

The diagram starts with one shared Medplum server that stores all data in a single PostgreSQL database and uses Redis as a shared cache. Development, staging and production are drawn as separate project boundaries, each with its own users and client applications signing in to that server. A login or client in one project grants nothing in another. The arrows between projects show the promotion path, where configuration moves from development to staging and then to production. Check that only the database and cache cross project boundaries, and that every client application and secret is recorded in the project it serves.

One shared server and database, three isolated projects, one promotion path.

Security risks when projects share one server

Medplum projects separate data and configuration inside one server, so every project shares the same server process, database, Redis cache and upgrade cycle. The cards below cover the risks that follow from that shared footprint, and the control and check that address each one.

Test data leaking into production

Synthetic or copied patient records created in a development project can end up in production if users hold accounts in both projects or if a seed script targets the wrong project. Confirm that each project has its own user list, that seed and import jobs name their target project explicitly, and that no production Patient or Observation resource was created by a test run. Ask your team to show the project ID in every import command before it runs.

Admin rights spanning projects

A user who is a project administrator in one project may also hold memberships elsewhere on the same server, so one compromised account can reach more than one environment. Review the membership list for every administrator, keep production administrator access to a short named list, and remove standing admin rights from developers. Test by signing in as a developer and confirming that production resources are not returned.

Secrets reused across environments

Client secrets, bot credentials and signing keys that are copied from staging into production give a staging compromise a route into production. Generate separate client credentials per project, store them in your secrets manager under distinct paths, and rotate any value that has ever been pasted into a shared ticket or chat. Verify that each Bot and client application in production has a credential that exists in no other project.

Identity provider misconfiguration

An external identity provider connected to a development project can accept sign-ins that were meant for production, or a shared redirect URI can send tokens to the wrong project. Confirm which identity provider is attached to each project, that redirect URIs and allowed domains list only that project's hosts, and that multi-factor authentication is enforced for administrator accounts. Medplum's authentication documentation describes the supported identity provider options and should be the reference for this check.

Medplum authentication docs

Shared upgrade and outage exposure

A self-hosted server that runs several projects means an upgrade or outage in one environment affects all of them, and a failed upgrade can take production down with staging. Medplum requires minor versions to be applied in sequence, so test each step on a non-production copy before production and keep a rollback window. Check that staging runs the same version as the release you plan to promote, and that backups cover every project's data.

Upgrading guide

Audit log review per project

Audit events are recorded in the project where the action happened, so reviewing only the project you know about leaves gaps for cross-project activity by shared administrators. Set a recurring review for each project's audit history, include administrator membership changes and login events, and confirm that someone outside the development team receives production audit reports. Ask your team how long audit records are retained for each project and where exports are stored.

Questions teams ask before separating Medplum environments

Should we use separate Medplum projects or separate servers for dev, staging and production?

Use separate projects when environments share one trust boundary, one operator and one upgrade cycle, and use separate servers when you need hard isolation of infrastructure, networks, keys or compliance evidence. Projects give each environment its own users, settings, access policies and secrets within one deployment, so they are cheaper to run and simpler to keep aligned. Separate servers add a full stack to patch, back up and upgrade for every environment. Production handling regulated patient data usually justifies its own server, while dev and staging can often share one. Confirm the choice against your auditor's expectations and your data rules before building.

What drives the cost of separating Medplum environments?

The cost comes from the number of environments and servers, the identity providers each one must trust, the promotion tooling you build, and the compliance evidence you must produce. Each separate server adds infrastructure, database and Redis capacity, monitoring and upgrade effort. Each additional identity provider adds configuration and testing. Promotion tooling, such as scripts that move access policies, bots and terminology between projects, is a one-time build with ongoing maintenance. Ask any quote to break out one-time setup from recurring operations and to state which environments and identity providers it covers.

How long does setup take for a Medplum multi-environment deployment?

Duration depends on scope: how many environments, whether they live on separate servers, how many identity providers must be connected and how much promotion tooling is required. A single production project with a staging project on the same server is a much smaller job than three separate servers, each with its own identity provider and automated promotion. Medplum's upgrading guide also affects planning, because self-hosted upgrades must pass through each minor version in sequence, which should be scheduled across every environment. Ask for a schedule that lists each environment, identity provider and cutover step as separate milestones.

What must our team provide before a Medplum environment build starts?

You need to provide an identity provider or confirm that Medplum's own sign-in will be used, named administrator owners for each project, and written data rules that say which data may live in which environment. Teams also need to name who approves production access, which secrets store they use, and where each environment will run. Without these, project boundaries and access policies cannot be designed. Expect to supply sample or synthetic data for non-production testing rather than copies of live patient records, and confirm that decision with your compliance owner.

Can an internal team set up Medplum projects for each environment without a partner?

Yes, a capable internal platform team can create projects, users, access policies and settings in Medplum, but the work becomes harder when you need separate servers, several identity providers, automated promotion and audit evidence at the same time. The main risks are unclear administrator ownership, promotion steps that are done by hand and inconsistent access policies between environments. Teams that want an outside view often start with a fixed-scope design and build agreed in writing. DeployOpen can plan, implement and document this kind of setup in infrastructure you control.

What goes wrong when environments are separated poorly in Medplum?

The common failures are production users who also hold administrator rights in staging, secrets copied between environments, and access policies that drift because someone edited them in one project only. Another failure is treating a shared project as isolation when a single bot or linked resource exposes data across environments. Projects do not replace a server boundary for regulated data, so confirm exactly which resources are shared before go-live. Test each environment's sign-in, policy and secret separation with named test accounts before production access is granted.

Which Medplum compliance evidence changes when environments are split?

Splitting environments changes the evidence your assessors will ask for: which systems hold production data, who administers each one, how access is granted and reviewed, and how configuration moves from one environment to the next. Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers, so your own environment design and controls remain yours to document. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors issue any audit report or certification. Confirm the evidence list with your auditor before the design is final.

How DeployOpen scopes and supports Medplum project design

DeployOpen plans, builds, documents and hands over Medplum project layouts for development, staging and production inside infrastructure the client controls. Engagements are fixed-scope, with the project boundaries, configuration promotion rules and handover agreed in writing before work starts.

How we scope

  • Inventory the environments, customers and tenants that need their own Medplum project or separate server.
  • Agree which settings, access policies, bots and secrets are promoted between projects and which stay local.
  • Define who administers each project, how project users are provisioned and who approves production changes.
  • Record the scope, deliverables and timeline in writing before any build work begins.

How we build

  • Configure the development, staging and production projects on your self-hosted Medplum deployment.
  • Set up a repeatable method for exporting and reviewing configuration before it moves between projects.
  • Test access boundaries so a user in one project cannot read or change resources in another.
  • Document project naming, secret locations and the promotion checklist that your teams will follow.

How we hand over

  • Walk your platform, security and application teams through the project model and the promotion procedure.
  • Deliver written runbooks covering project creation, user onboarding, secret rotation and rollback steps.
  • Provide test evidence showing the isolation checks performed and the results recorded at handover.
  • Confirm with your team which items remain their responsibility under the shared responsibility model.

How we support

  • Review project changes and configuration promotions when your team adds customers or environments.
  • Keep runbooks current as Medplum releases change project settings or administrative options.
  • Retest isolation boundaries after major changes, upgrades or new integrations, if you choose a retainer.
  • Scope ongoing support as a retainer agreed in writing, separate from the initial fixed-scope build.

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.