Skip to content

Deploy OpenShare Engine on Google Cloud

OpenShare Engine is Saga IT’s maintained build of the Open Integration Engine, a healthcare integration engine for HL7 v2, FHIR, DICOM and X12. The Google Cloud Marketplace product deploys it as one Compute Engine VM in your own project: engine 4.7 on Ubuntu 24.04 LTS, with Java 21 bundled and the signed OpenShare admin plugin preinstalled.

The software is free. You pay Google Cloud only for the resources the deployment creates: the VM, its boot disk and network traffic. The engine’s source code is public under the MPL 2.0 at SagaHealthcareIT/open-integration-engine.

The OpenShare Engine product page on Google Cloud Marketplace: the OpenShare logo, the name OpenShare Engine by Saga IT, LLC, the short description, the Launch and View deployments buttons, and the Overview, Pricing, Documentation and Support tabs

You need:

  • A Google Cloud project with billing turned on and the Compute Engine API enabled.
  • Permission to deploy Marketplace products and to create VMs and firewall rules in that project. The deployment page also asks for a deployment service account.
  • The public address range of the network you will administer the engine from, in CIDR form. A single address is written as 203.0.113.10/32.
  • Optional: a launch document from the OpenShare console, to register the engine with OpenShare (see Optional: register with OpenShare).
  • Optional: your own PostgreSQL, SQL Server, MySQL or Oracle database that the VM can reach.
Input What to enter Default
Deployment name A name for this engine: up to 54 lower-case letters, digits and hyphens. It becomes part of the VM, firewall rule and network tag names Generated
Image version If the form shows it, leave it as set The current OpenShare Engine image
Deployment Service Account Choose New account and give it an ID, or pick an existing account. Infrastructure Manager deploys as this account. A new account gets roles/config.agent, roles/compute.instanceAdmin.v1 and roles/compute.securityAdmin on the project New account
Zone A zone close to the systems the engine exchanges data with None: choose one
Machine type e2-standard-2 (2 vCPUs, 8 GB) suits most single-site engines. The form offers types with at least 2 vCPUs and 4 GB. At first boot the engine sets its Java heap to half the VM’s memory, up to 8 GB e2-standard-2
Boot disk type Balanced persistent disk suits most engines pd-balanced
Boot disk size in GB At least 20. The embedded database and logs live on this disk, so size it for your message volume and retention 30
Network interfaces The VPC network and subnetwork the engine should live in. Shared VPC networks from a host project are not offered, because the firewall rules are created in this project default
Assign an external IP address Leave on to reach the engine from your network over the internet. Turn it off if you reach it over VPN or Interconnect; OpenShare registration then needs Cloud NAT on the subnet. This setting opens no port On
Source IP ranges for the admin interface (TCP 8443) Your administration network’s CIDR ranges, comma-separated. Empty opens nothing on 8443. Prefixes shorter than /8 are refused Empty
Source IP ranges for SSH (TCP 22) Your administration network’s CIDR ranges. Add 35.235.240.0/20 if you connect through Identity-Aware Proxy. Empty opens nothing on 22 Empty
OpenShare launch document (optional) See Optional: register with OpenShare and Optional: your own database. Read only at first boot Empty

The deployment names the VM DEPLOYMENT_NAME-vm and tags it DEPLOYMENT_NAME-engine. Firewall rules you add later target that tag. In the commands on this page, replace VM_NAME with the VM’s name and ZONE with its zone.

The deployment form's Networking, Firewall and OpenShare registration sections: the default network interface, Assign an external IP address turned on, 203.0.113.10/32 entered in both Source IP ranges fields (TCP 8443 and TCP 22), and an empty OpenShare launch document field
Port Used for Open after deployment?
TCP 8443 The engine’s web interface and API, over HTTPS Only from the ranges you entered. Closed if you entered none
TCP 22 SSH Only from the ranges you entered, through the rule the deployment creates
Your channel ports, for example an MLLP listener Your interfaces Never opened by the deployment. Add rules yourself (step 6)
TCP 80 and 443 Not used by the engine Don’t open them
TCP 8080 The engine’s plain-HTTP port Don’t open it

The engine’s outbound traffic (to your systems and, if you registered it, to OpenShare over HTTPS) uses your VPC’s egress rules, which allow all outbound traffic unless you have changed them.

  1. Open the OpenShare Engine listing on Google Cloud Marketplace and select Launch.
  2. Fill in the inputs above and select Deploy.
  3. Wait for the deployment to finish. After the VM is running, the engine needs a few more minutes for its first start.
A finished deployment named openshare-1: a green check, the Open the admin interface button, and the Resources tab listing random_password, the Compute Engine VM openshare-1-vm and the firewall rule openshare-1-tcp-8443, each with the status Created

The deployment generates a random password for the engine’s admin user. The engine sets it at first boot. There is no default password.

  • Deployment page: on the Details tab, the password is among the deployment’s outputs. It is masked; select the eye icon next to it to show it.

    The deployment's Outputs: Admin Password masked, with an eye icon to show it, Admin Url https://203.0.113.25:8443, Admin User admin, External Ip, Firewall Rules openshare-1-tcp-8443, Instance Name openshare-1-vm, Instance Self Link, Instance Zone us-central1-a and Internal Ip
  • Over SSH:

    Terminal window
    curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/openshare-admin-password

If the VM was created from the image some other way and has no openshare-admin-password metadata key, the engine generates the password itself and prints it to the serial console:

  • Cloud console: VM instances, select the VM, then under Logs select Serial port 1 (console). Look for the “OpenShare Engine initial login” block.
  • gcloud: gcloud compute instances get-serial-port-output VM_NAME --zone ZONE
  • Over SSH: sudo cat /etc/openshare/initial-credentials (readable by root only)

The serial console keeps only the most recent 1 MB of output. If the block has scrolled off, use the file.

Step 3: Open port 8443 to your own network

Section titled “Step 3: Open port 8443 to your own network”

Skip this if you entered a range for 8443 at deployment. Otherwise allow 8443 to the deployment’s tag from your own range only. Never use 0.0.0.0/0.

Terminal window
gcloud compute firewall-rules create allow-openshare-8443 \
--network NETWORK --direction INGRESS --action ALLOW --rules tcp:8443 \
--source-ranges YOUR_RANGE --target-tags DEPLOYMENT_NAME-engine

The engine has no sign-in page of its own in the browser. There are two ways to manage it.

From any browser, through OpenShare. Register the engine with OpenShare, Saga IT’s online service, when you deploy it; see Optional: register with OpenShare. Registering is free and needs an OpenShare account. Then, in the OpenShare console, select Connect on the server and sign in as admin with the password from step 2. To register an engine that is already running, sign in standalone first, then follow Adding a server.

Standalone, with the desktop OpenShare Administrator. An Administrator launcher opens it:

  1. Browse to https://EXTERNAL_IP:8443 to check that the engine answers. The deployment page’s Open the admin interface button opens the same address. The VM ships a self-signed certificate, so your browser warns on the first visit. The page shows Service Available and the address for an Administrator launcher.

    The engine's page on port 8443: the OpenShare logo, Service Available, The backend service is running, the address to point an Administrator launcher to (https://203.0.113.25:8443/webstart.jnlp), a link to launcher options and a Go to API button
  2. Install the OpenShare Administrator Launcher on a Windows or Linux computer; there is no macOS version. An engine you connect to directly needs no OpenShare account: download the launcher from the OpenShare Engine releases on GitHub. If you already use another Administrator launcher, give it the address the page shows.

  3. In the launcher, choose Add engine…, give the engine a name and enter EXTERNAL_IP:8443. Then select it and choose Connect.

  4. The launcher shows the certificate’s SHA-256 fingerprint. Before you choose Trust certificate, compare it with the engine’s. Over SSH (step 5):

    Terminal window
    openssl s_client -connect localhost:8443 </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha256
  5. Sign in to the OpenShare Administrator as admin with the password from step 2.

Either way, once you’re signed in:

  1. Change the password right away. The initial one stays in the deployment’s outputs, and the engine does not force a change at first sign-in. The new password needs at least 15 characters, with an upper-case letter, a lower-case letter, a digit and a symbol.

  2. Remove the initial password from the VM’s metadata. Anyone who can view the VM in your project can read its metadata.

    Terminal window
    gcloud compute instances remove-metadata VM_NAME --zone ZONE --keys openshare-admin-password

    Also delete the root-only copy on the VM: sudo rm /etc/openshare/initial-credentials.

Five failed sign-ins lock the account for an hour. For production use, install your own TLS certificate in place of the self-signed one.

Terminal window
gcloud compute ssh VM_NAME --zone ZONE

Add --tunnel-through-iap if you allowed 35.235.240.0/20 rather than your own address. Then:

Terminal window
sudo systemctl status oieservice
sudo tail -n 100 /opt/OpenShareEngine/logs/mirth.log

The engine is healthy when oieservice is active (running) and https://EXTERNAL_IP:8443 shows Service Available.

Each listener channel needs its own inbound rule, from your partner’s range only. For example, for an MLLP listener on 6661:

Terminal window
gcloud compute firewall-rules create allow-openshare-mllp-6661 \
--network NETWORK --direction INGRESS --action ALLOW --rules tcp:6661 \
--source-ranges PARTNER_RANGE --target-tags DEPLOYMENT_NAME-engine

OpenShare is a separate online service from Saga IT. Registering with it is free and optional, and the engine works fully without it. It needs an OpenShare account and acceptance of the OpenShare terms. The service stores no patient data.

  1. In the OpenShare console, add a server. In its setup dialog, choose Cloud image, then Generate launch document, and copy the document. It is valid until the time shown under it.

  2. Paste it into the OpenShare launch document (optional) field when you deploy.

  3. At first boot the engine registers itself. It then connects out to OpenShare over HTTPS. No inbound port is needed.

  4. When the console shows the server as registered, remove the document from the VM’s metadata. It holds a single-use token, and any process on the VM can read instance metadata.

    Terminal window
    gcloud compute instances remove-metadata VM_NAME --zone ZONE --keys user-data

The document is read only at first boot. Adding it to an existing VM has no effect. Serial port 1 says what became of it.

  • The engine starts but never shows as registered. The engine ignored the document, for example because it had expired or was pasted incompletely. Register the running engine from the OpenShare console instead (see Adding a server), or deploy again with a new document.
  • The engine does not start. The document’s database or engine settings are invalid, or the database can’t be reached. Correct the VM’s user-data metadata or the database’s network path, then restart the VM. First boot runs again until it succeeds.

If you leave the field empty, the engine runs standalone. You can still register it later; see Adding a server.

The same field can carry a document that points the engine at your own PostgreSQL, SQL Server, MySQL or Oracle database, alone or together with OpenShare registration. Put TLS in the JDBC URL (for PostgreSQL, sslmode=require). For the document format, email support@openshare.health. Without such a document, the engine uses its embedded database on the boot disk.

That document contains the database password. After first boot, remove it from the VM’s metadata (gcloud compute instances remove-metadata VM_NAME --zone ZONE --keys user-data). The deployment also keeps its inputs, so anyone who can view the deployment in your project can read the password: use a database account for the engine alone, and rotate its password if that matters to you.

  • Operating system updates. Apply Ubuntu updates in a maintenance window: sudo apt update && sudo apt upgrade.
  • Backups. With the embedded database, everything is on the boot disk. Set a snapshot schedule on it. With your own database, back that database up as well.
  • Copies of the engine. A copy of a registered engine, such as a VM created from a snapshot or image of this VM’s boot disk, starts as the same OpenShare server. While the original runs, keep the copy without outbound internet access: if both reach OpenShare, both answer the same connections, and partner messages and console sessions can reach either one. To run a copy as a server of its own, see Copies of a registered engine.
  • Machine type. Stop the VM, change its machine type, and start it again. The Java heap was set at first boot and does not follow the new memory size: change the -Xmx line in /opt/OpenShareEngine/conf/custom.vmoptions, then run sudo systemctl restart oieservice.
  • New engine versions. Saga IT publishes updated images on Google Cloud Marketplace. Existing VMs are not updated in place.
  • Removing the engine. Delete the deployment from the Cloud console’s Solution deployments page. This removes the VM, its disk and the firewall rules the deployment created. Rules you added yourself stay.

Email support@openshare.health. Include the engine version and build date, which the OpenShare Administrator shows under Other, About (or, if you can’t sign in, the whole line in /opt/OpenShareEngine/logs/mirth.log that ends “server successfully started”), the machine type and the relevant lines from that log. Never include patient data in a support request. See also Getting support.