HospitalRun Demo Mode Is Not a Deployment Mode
HospitalRun is an open source information system for low-resource clinical environments. It handles patient registration, visits, laboratory work and other operational records. Its documentation is explicit about a demo mode that contains no authentication and allows a user to switch authorization roles for training. That design is acceptable in a public demonstration and unacceptable for a real medical deployment.
The project also documents two databases, a user database for login credentials and permissions and a main database for clinical data, with CouchDB acting as the synchronization backend. That split is useful, but it creates two data stores that must be secured, backed up and monitored together.
Start with a production identity path
Define who can create users, reset credentials and grant roles. If the deployment supports Google or another external identity provider, use it for production staff and require MFA at the provider. If local accounts remain, disable demo accounts, remove default passwords and establish an administrator onboarding record for every privileged identity.
Do not publish the CouchDB admin service to the internet. Place the front end and CouchDB on separate network segments where practical, allow only the front-end source addresses needed for synchronization and require TLS for remote traffic. A database administrator account should not be the same account used by the web application.
The project documentation from earlier beta material describes default development credentials and database creation scripts. Those defaults are useful for a lab and dangerous in production. Search deployment files, Compose files and seed scripts for known sample accounts. Replace them before the first patient record is entered.
Protect clinical data
Encrypt storage volumes and backup media. Test a restore into an isolated environment and verify that users, permissions and patient records arrive in the expected state. Keep backups on a separate credential boundary so a compromised application account cannot delete every copy. Define retention for deleted records and audit exports, because a clinical system may hold data that is difficult or impossible to recreate.
Application logs should record authentication failures, role changes, user creation, failed synchronization and administrative actions. Do not copy patient data into general logs or chat channels. Monitor for large database reads, repeated failed logins and access from networks that do not belong to the clinic or its support provider.
Patch the full stack
HospitalRun includes a front end, server code and database dependencies. Inventory all three. A front-end upgrade does not automatically update CouchDB, and a database package update does not fix an application route. Keep the operating system, reverse proxy, TLS library and backup software in the same maintenance plan. Subscribe to project and distributor security notices for each component.
Before deploying a release, test the login flow, role restrictions, offline behavior and synchronization after a network outage. A disconnected clinic client may continue to accept writes while the server is unavailable. Reconcile those records carefully and verify that a returning client cannot overwrite a legitimate administrative change.
Incident response
If a demo instance was exposed or a default account may have been used, preserve logs and database snapshots, disable remote synchronization, and rotate administrative credentials. Review user and role records before deleting accounts. Determine whether the exposed instance contained real data; a demo interface does not prove that its database was empty.
The official project describes HospitalRun as software for places with limited infrastructure. That makes simple controls more valuable: no public demo in production, a clear administrator group, TLS, verified backups and a tested restore. Those checks do not require a large security team.
Top comments (0)