Settings
The Settings screen's four groups and fourteen sections, from setup health, users, MFA, SSO and support grants to AI and the BAA, notifications, on-call quiet hours, backups and diagnostics, and who can change each.
On this page
- The sections
- Links to a section
- Search settings
- Overview
- Setup health
- Workspace
- The workspace time zone
- Environments
- Users & roles
- People
- MFA
- Single sign-on
- Support access
- Cloud project access
- Secrets & variables
- AI features & BAA
- IP allowlist
- Notifications
- Who hears about what
- People's preferences
- Log export
- Alert rules and on-call routing
- Backup & restore
- Resources
- Diagnostics
- Who can see what
- Reference
Settings is where you set up the engine and the workspace you are signed in to: who can sign in and what they can do, secrets, AI, notifications, alert rules, backups and diagnostics. Open it from the sidebar. A rail on the left lists the sections in four groups, and the section you pick fills the column beside it.
The sections
| Group | Section | What it holds |
|---|---|---|
| Workspace | Overview | Setup health and the Workspace block (name, region, time zone, version) |
| Workspace | Environments | Sandbox and production workspaces, Block real PHI in sandbox, Require a sandbox run before production deploys |
| Workspace | Libraries | Shared JavaScript libraries and their versions. See Shared libraries |
| People & access | Users & roles | What each role can do, sign-in, the People table, workspace Members, Invite people |
| People & access | Single sign-on | Google Workspace, Require SSO for everyone, directory sync, Google groups → roles, Other identity providers |
| People & access | Support access | Time-boxed access for MedHook engineers: Grant access, Active grant, Rules for grants, History |
| Security | Secrets & variables | Workspace variables and secrets, Rotation, Engine secrets. See Workspace variables |
| Security | AI features & BAA | The Business Associate Agreement, the AI feature switches, the daily budget and the Provider block |
| Security | License | The signed license: customer, term end, PHI processing, revocation check |
| Security | IP allowlist | The CIDR ranges that can reach the engine. See Security |
| Operations | Notifications | Channels, Who hears about what, People's preferences, What a message looks like, Log export |
| Operations | Alert rules | The engine's alert rules and On-call routing. See Engine alert rules |
| Operations | Backup & restore | Backups and Config bundles. See Back up and restore |
| Operations | Resources | Created by MedHook and Remove MedHook's resources. See Uninstall and inventory |
| Operations | Diagnostics | Run all checks and the Support bundle |
Links to a section
Each section has a link of its own: /settings?tab= and the section's id, for example /settings?tab=alerts or /settings?tab=secrets. Add a block's anchor to open the section scrolled to that block: /settings?tab=notifications#log-export. The ids are overview, environments, libraries, users, sso, support, secrets, ai, license, ip-allowlist, notifications, alerts, backup and diagnostics. Older links keep working: ?tab=general opens Overview and ?tab=variables opens Secrets & variables. A link to an unknown section opens Overview.
Search settings
The box at the top of the rail finds a setting by its name. Click it, or press ⌘K (Ctrl+K on Windows and Linux) on the Settings page. Type part of a name, then choose a match, or press Enter for the first one. Settings opens that section and scrolls to the block the match is in.
Search finds:
- section titles and the buttons in their headers, such as New rule or Invite people;
- block titles and the rows in them, such as Time zone for schedules and reports or Longest a grant can last;
- the first cell of each fixed table row, such as the permission matrix's Deploy to production or the routing grid's Tunnel down 2 min;
- this workspace's variable and secret names, never their values;
- this workspace's alert rules, by name. A rule opens Alert rules;
- for an admin, the people on the engine, by name or email. A person opens the People table.
It shows up to 8 matches. Single sign-on, Support access, Backup & restore and Resources are for admins only, so a viewer or an operator finds only their titles, never a setting inside them.
Overview
Setup health

A ring at the top of Overview scores the engine against eight checks, for example 6/8. The ring is green at 7 or more. Each check has a short note and links to the section that fixes it.
| Check | Passes when | Example note |
|---|---|---|
| SSO with Google Workspace (or SSO with your identity provider) | single sign-on is set up and no one still signs in with a password, or SSO is required | enforced |
| MFA required for every user | every active person has an authenticator or signs in with SSO | via Google, 2 without TOTP or SSO |
| Nightly backups | the engine's database is Cloud SQL | last 02:00 · 7-day restore |
| Support access off by default | always: grants are time-boxed | none active, 1 grant until Nov 4 |
| Alerts routed to on-call | at least one alert rule sends somewhere | PagerDuty · Slack |
| Secrets rotated within 90 days | no secret's value is older than the reminder | none overdue, 2 overdue |
| Directory sync for users | people sync from Google Workspace | off · manual invites |
| AI covered by a BAA | an admin has marked the BAA as signed | not signed · AI is off |
The rail shows a dot beside a section that needs you: Secrets & variables while a secret is overdue, AI features & BAA until the BAA is signed, and Support access while a grant is active. A screen reader reads them as "needs attention" and "access granted".
Setup health reads people, single sign-on, alert rules, secrets, the support-access audit trail and the backup status. It never reads messages or executions, so it stays quick on a busy engine. GET /api/settings/health returns the same checks.
Workspace
| Row | Shows |
|---|---|
| Name | the workspace's name |
| Region | the engine's Google Cloud region, with its project below; not running on GCP elsewhere |
| Time zone for schedules and reports | the workspace time zone (see below) |
| Privacy officer | who gets Suspicious audit flag notices: a person on the engine or an email address |
| Version | the engine's version and build, for example v1.4.2 · 3d93dcf |
| Brand name | the name the healthcare organization sees on the engineer link |
| Brand colour | the engineer link's name, steps and buttons, as #rrggbb |
| Logo | the engineer link's logo: PNG, JPEG or WebP, up to 256 KB |
With no privacy officer set, those notices go to the engine's admins, and the routing grid in Notifications says No privacy officer set, sending to admins. The three branding rows change only the engineer link a healthcare organization opens (see Sender connections), and only an admin can change them. Database and Redis health are in Diagnostics.
The workspace time zone
Each workspace has a time zone, UTC until an admin picks one in Time zone for schedules and reports. The choice is saved as soon as you pick it, and the page says Time zone saved. Anything that has no time zone of its own uses it:
- a person's quiet hours;
- on-call quiet hours, until an admin saves them (on-call is engine-wide, so this uses the default workspace's zone);
- a new alert rule's Active hours: the editor's Time zone starts at the workspace zone. A rule you already saved keeps its own;
- the nightly backup row and setup health's backup note, for example
02:00 CT · last ran today 02:00 in 4 min · 2.1 GB; - the end day of a support grant.
The zone is an IANA name such as America/Chicago or America/New_York. Abbreviations such as CST are refused, because they don't say whether daylight saving time applies. Viewers and operators see the zone; only an admin can change it. Each change is audited as settings.workspace_updated with the zone before and after. The API is GET and PUT /api/settings/workspace.
Environments
Sandbox and production run on the same engine, with separate connections and data: each workspace is one or the other. Two cards compare them:
| Line | Production (Live) | Sandbox (Test) |
|---|---|---|
| URL | this engine | this engine, same engine |
| PHI | allowed · audited | blocked · synthetic only while Block real PHI in sandbox is on |
| Connections | how many it has | how many it has, (sandbox URLs) |
| Deploys | need a second admin | anyone with Operator |
Rules holds two engine-wide switches, both on by default:
- Block real PHI in sandbox: a sandbox workflow that handles PHI takes MLLP, webhook and manual messages only when their PID-3 MRNs are those of bundled or synthetic samples. Anything else, and any trigger that carries no message, is refused and audited as
sandbox.phi_rejected. Dry runs and saved test cases work as before. - Require a sandbox run before production deploys: a deploy in a production workspace needs a passing run of the workflow's sandbox copy. It applies once a sandbox workspace exists, so an engine without one deploys as before.
Workspaces lists each workspace with its connections and environment. In production, an operator or admin asks for approval and an admin other than the requester gives it. In a sandbox, anyone with Operator deploys with no approval.
Users & roles
What each role can do is the permission matrix. Its rows come from the same table the API checks, so the page and the API always agree.
| Can | Viewer | Operator | Admin |
|---|---|---|---|
| View workflows, runs and dashboards | ✓ | ✓ | ✓ |
| View PHI (with a reason, audited) | ✓ | ✓ | |
| Edit drafts and run tests | ✓ | ✓ | |
| Replay and reprocess messages | ✓ | ✓ | |
| Deploy to production | ✓ | ||
| Approve someone else's deploy | ✓ | ||
| Manage connections | ✓ | ✓ | |
| Manage tunnels | ✓ | ||
| Change users, SSO and security settings | ✓ | ||
| Approve Agent actions that go live | ✓ | ✓ |
Operators can test tunnels, but creating, changing, deleting and promoting a tunnel is for admins only, so tunnels have their own row.
People
The People table has Name, Email, Role, Last active and MFA. An admin changes a role with the role button, for example Operator ▾:
- Making someone an Admin asks you to confirm first. Any other change saves at once.
- Your own row reads as plain text, titled "You can't change your own role".
- A MedHook support person on an active grant reads, for example,
Operator · support. Their role comes from the grant (see Support access). - The engine refuses to demote the last admin, and the table shows why.
- When single sign-on sets the person's role at each sign-in, the picker says "Single sign-on sets this role again at their next sign-in."
- While directory sync is on, a person in a mapped Google group can't be changed here: the picker reads "Role comes from Google group ; change the group or turn off sync".
Viewers and operators see only their own row.
Invite people asks for an email, a name and a role. The person sets a password from a one-time link that works for 24 hours. The engine emails the link when it can send email; otherwise the dialog shows it once, for you to hand over. Inviting an Admin asks you to confirm first.
For admins, the section also has Sign-in (how people and API clients sign in, with the MFA line below) and Members: who belongs to this workspace, and with which role. Every change is audited. See Security for what each role means across the engine.
MFA
Settings shows MFA in three places:
- the MFA column of the People table, ✓ for a person with an authenticator app (TOTP) and – for one without;
- the Sign-in block's MFA line, for example
TOTP optional · 3 of 5 enrolled. Below it, while someone has no authenticator: "Password sign-ins without TOTP need a one-time emailed code". When the engine can't send email, the note is a warning: people without TOTP can't sign in with a password; - setup health's MFA required for every user, which passes when every active person has an authenticator or signs in with single sign-on. Its note reads, for example,
2 without TOTP or SSOorvia Google.
How sign-in codes, authenticator codes and recovery codes work is in Security. An identity provider can also require MFA at sign-in: see Other identity providers below.
Single sign-on
The Google Workspace card shows whether Google sign-in is Connected, with its domain, client ID and last sign-in. Below it, each switch saves at once:
- Require SSO for everyone: password sign-in is refused for everyone but admins, who keep a break-glass way in. Set
ENGINE_BREAK_GLASS_EMAILto allow only that one admin. Anyone else's right password is answered like a wrong one, and the sign-in page says "This workspace signs in with Google" with a "Use a password (break-glass only)" link. It needs a sign-in method first: Google Workspace or another identity provider. Turning it off asks "Allow password sign-in again?". A break-glass sign-in is audited asauth.break_glass. - Sync users from Google Workspace: every 15 minutes, and once right after you turn it on, the directory job adds people, changes their roles and turns off those who left, from the groups in Google groups → roles. It needs Google Workspace sign-in, the Directory API delegate and at least one group. The row says when the last sync ran and what it changed.
- Test sign-in: opens Google sign-in in a new window as a test, then reports the Workspace domain, the groups and the role you would get, or why sign-in would be refused. It signs nobody in.
Google groups → roles maps each group to a role. Other identity providers adds Entra ID, Okta, Ping, ADFS, Keycloak and others over OIDC or SAML 2.0, each with its own group-to-role map and MFA settings. See Single sign-on.
Support access
MedHook engineers can't see your workspace unless an admin grants time-boxed access. It is off by default, every grant, approval and revoke is in the audit log, and with none active the section says "No active grants. Support can't see this workspace."
- Choose Grant access. Enter the support person's Email, their Role (Operator or Viewer) and Days.
- With Allow PHI access in a grant on, you can turn on PHI access. Then enter a Reason of at least 10 characters, without patient details. The privacy officer is told who has PHI access, for how long and who granted it, never the reason, on the routes Notifications sets for Suspicious audit flag.
- Choose Grant. With A second admin approves grants on, the button is Ask a second admin, and the grant waits until another admin approves it.
A grant lasts whole days: 1, 3, 7 or 30 days, up to the rule's Longest a grant can last. It ends exactly that many days after it was granted, checked every minute. There is no purpose field: the only text a grant takes is the PHI reason.
While a grant is active, the person's engine account is on with the grant's role. A new account gets a one-time set-password link, emailed or shown once. Active grant shows each grant as, for example, "Operator, no PHI · granted by Sam Nov 2 14:05 · ends Nov 5 14:05". Revoke now asks you to confirm and ends it at once. When a grant ends or is revoked, the account is turned off and its sessions end.
The engine refuses a grant:
- longer than the rule allows, or with PHI while Allow PHI access in a grant is off;
- with PHI while no BAA is signed: "PHI access needs a signed BAA (Settings > AI features & BAA)";
- for an email that already signs in to this engine for any other reason, so a grant never changes one of your own people's accounts.
Rules for grants sets Longest a grant can last (1, 3, 7 or 30 days), Allow PHI access in a grant and A second admin approves grants. By default a grant lasts up to 3 days, without PHI, and needs no second admin. History lists every grant and revoke.
Cloud project access
Access to the Google Cloud project itself is a separate block. The engine never changes Cloud IAM: it hands you the Terraform command to run in Cloud Shell, to grant or to revoke. Revoking also signs the support group's members out of the engine at once.
Secrets & variables
One table lists the workspace's secrets and variables, with Name, Type, Used by and Rotated. Used by names the workflows that read each one, from their steps and triggers. A secret older than Remind owners after (30, 60, 90, 180 or 365 days; 90 by default) shows Rotate, and setup health counts it as overdue. Workspace encryption key with Rotate key re-encrypts every stored secret under the current ENCRYPTION_MASTER_KEY, in the background, while the engine keeps serving. Engine secrets lists the secrets the engine reads at startup, never their values. See Workspace variables and Keys and secrets.
AI features & BAA
The Agent and AI suggestions read messages that can contain PHI. In production they stay off until a Business Associate Agreement covers the deployment.
The Business Associate Agreement card is tagged Signed or Not signed and has four lines:
| Line | Shows |
|---|---|
| Provider | Anthropic · Claude API or Google Vertex · Claude |
| Covers | the deployment: the Google Cloud project and region, or this engine |
| Data retention | zero · not used for training |
| Status | not sent, sent for signature {date} or signed {date} by {name} |
To mark it signed, pick the signed PDF (up to 10 MB) in Mark the BAA as signed, then Confirm signed. The copy is attached to the audit entry (ai.baa_confirmed), and Open signed copy opens it from the card. Confirming without a copy works, with the warning "No signed copy on file; attach the PDF so auditors can see it"; Attach signed copy adds it later.
Features has a switch for each AI feature: Agent, Data map suggestions, Script rewrites and Ask the audit log. Until the BAA is signed they are locked, titled "needs a signed BAA". When the engine's own AI_FEATURES_ENABLED keeps AI off, they are locked with "AI is turned off for this engine". Monthly budget shows the budget and what this month has used so far: the Agent pauses and tells you when it's reached. Leave it empty for no limit. The Provider block shows the service that runs AI calls, the Anthropic API or Claude on your own Vertex project and region, and AI mapping feedback: how many data map suggestions were accepted and rejected. See AI on Vertex.
IP allowlist
The list of addresses that can reach the engine API. Add an entry with IP or CIDR and an optional Label, then Add entry. It accepts an IPv4 address (192.168.1.10), an IPv4 CIDR (10.0.0.0/8) or a plain IPv6 address (::1); IPv6 CIDR is not supported. With no entries, every address can reach the API, and the page shows your own address so you can add it first. Removing an entry asks you to confirm (Remove entry). Only an admin can change the list. How it is enforced, cached and what happens when it can't be read is in Security.
Notifications
Notifications is where the engine's channels are connected. Alert rules, on-call routing and the routing grid send through them.
| Channel | Through |
|---|---|
| SMTP or SendGrid | |
| Text (SMS) | Twilio |
| Slack | the MedHook app |
| PagerDuty | Events API v2 |
| Microsoft Teams | incoming webhook |
| Webhook | signed POST |
Credentials are write-only: once saved, nobody can read them back. Disconnect asks first; alert rules that sent by text through that channel then send by email. Send a test to me sends you one test message, with no PHI, by email, by text to your verified phone number, and as a Slack direct message, and says which ones arrived.
Who hears about what
The routing grid has one row per event and a dot for Email, Text, Slack and Page. Click a dot to turn it on or off. A channel that isn't connected can't be turned on.

| Event | Priority | Goes to |
|---|---|---|
| Tunnel down 2 min | P1 | owner + on-call |
| Workflow failing (> 1% errors) | P1 | workflow owner |
| Messages waiting for you | P2 | assignee |
| Deploy waiting for approval | P2 | admins |
| Agent asks first | P2 | who started it |
| Suspicious audit flag | P2 | privacy officer |
| Secret or PSK expiring | P3 | owner |
| Weekly summary | P3 | everyone |
Today Deploy waiting for approval and Weekly summary send by the grid. Tunnel, workflow, audit and expiry alerts still send by their alert rules, and Agent asks first and Messages waiting for you start with those screens. Alert rules send MedHook alert FIRING: {rule} — {detail} (and RESOLVED) to their own target. What a message looks like shows the format notices move to, with no PHI.
People's preferences
Each person sets their own in their profile, and the grid applies them to what it sends:
- Quiet hours, in the person's time zone or the workspace's: texts and Slack wait; pages always go through. P2 and P3 texts and Slack messages are held until the quiet hours end. P1 is never held, and email isn't held.
- Texts only for P1: a P2 or P3 text isn't sent; when it was the only way, an email goes instead.
- Daily digest instead of single emails: P3 emails wait for one digest, sent when the quiet hours end.
- Your phone number: texts go to it once it's verified. Admins also see Unverified phone numbers, and can Send reminders.
A held message is sent within a minute of its time. A failed send is tried again 5 minutes later, three times in all.
Log export
The Log export block sends execution logs and audit events to Datadog, CloudWatch or Splunk. Credentials are encrypted and never returned. Send test event sends one event to the settings in the form, before you save. Saved settings win over the environment variables; Clear saved settings deletes them, and the environment variables apply again. See Log exporters.
The section ends with Timestamping service and Where alert rules send, which lists each alert rule's channel.
Alert rules and on-call routing
The rules table has When, Send to and the priority. When is the rule in plain English, with its switch, its name and when it last fired. Click a row to open it in the editor below. New rule opens an empty one. Each rule has a Priority: P1 · always pages, or P2 and P3, which wait for quiet hours. A queue size rule can add Or older than (min): it then also fires when the oldest waiting message is older than that, for example "A destination queue is over 100 or older than 15 min". See Engine alert rules for the conditions.
On-call routing shows the PagerDuty and Slack channels connected in Notifications, each with Send test, and Quiet hours for P2 and P3. On by default, from 22:00 to 07:00, holding P2 and P3, in the workspace time zone until an admin saves them. The row reads, for example, "held until 07:00 CT; P1 always pages". Quiet hours can hold P2, P3 or both; holding P1 is refused with "P1 always pages; hold only P2 or P3".
While quiet hours are on:
- A held rule's alert waits. The first check after quiet hours sends it if the condition still holds.
- A tunnel rule's held alerts (down, degraded, failover, re-established, watcher paused) are kept and sent in the order they happened, on the first watcher check after quiet hours.
- A resolve is never held. When a tunnel recovers while its alert is still held, neither is sent, so nobody is paged in the morning for a tunnel that came back. The alert history records them as
resolved during quiet hours; not sent. - A failback that arrives after quiet hours end but before the held failover went out drops both too, so a resolve never goes out ahead of its alert. The history records
recovered before its held alert was sent; not sent. - A held alert whose rule was disabled or changed to another kind is closed, never sent.
Rules saved before priorities existed are P2, so quiet hours hold them overnight unless you set them to P1.
Backup & restore
On Cloud SQL, Backups shows the Nightly backup, in the workspace time zone. Off Cloud SQL, the section says the backups are yours to run. Without roles/cloudsql.viewer on the engine's service account, it says the engine can't read them.
- Back up now starts a backup when the engine's service account may (
cloudsql.backupRuns.create). Otherwise it gives you thegcloudcommand that takes one. Run it in Cloud Shell. - Point-in-time restore goes back to any moment in the last 7 days. Choose Restore…, Choose a time, then Ask a second admin. Another admin approves it within 24 hours. When the service account may clone the instance (
cloudsql.instances.clone) and point-in-time recovery is on, the approval starts the clone. Otherwise the row shows thegcloudcommand, and why. The clone is a new instance: the running one is untouched.
The engine never gives itself a permission, and it records a backup or a clone in the audit log before it asks Cloud SQL for one.
Config bundles holds the engine's workflows, connections and settings, never secrets, messages or VPN tunnels. Export a bundle downloads a signed .zip you can import into another MedHook engine. Import a bundle shows what will change, and who signed it, before anything is applied. See Configuration backup.
Resources
Created by MedHook is every resource MedHook created in the engine's Google Cloud project: its type, name, region, whether the engine or Terraform created it, how MedHook knows it is its own, and Open for its page in the Google Cloud console. A list the engine's account can't read shows Needs and the permission instead. Remove MedHook's resources gives the inventory and uninstall commands for this install. An install outside Google Cloud shows "Resources are listed for Google Cloud installs." See Uninstall and inventory.
Diagnostics
Diagnostics has seven rows: Engine pods, Database, Work queue, FHIR store, Outbound internet, Tunnels and Clock. Nothing is checked when you open it: each row shows the last run on this engine, or — until you choose Run all checks. Each row then reads pass or fail, with a short result such as "2 of 2 healthy · v1.4.2 abc1234" or "Postgres · 3 ms". A row with nothing to check, such as Tunnels when there are none, keeps —. Click a row's name to see the engine checks behind it, with what to do about any that fail.
Support bundle downloads a .zip for your MedHook engineer, with PHI removed. Choose what goes in it:
- Check results
- Engine and workflow config (secrets removed)
- Last 24 h of executions, error types only
- Tunnel status
- Needs action summary (counts, error types)
- Include 10 sample messages (de-identified), off by default
The size shows beside the file name before you download. Each download is audited as diagnostics.bundle_created. Building a bundle is for admins.
Who can see what
Viewers and operators can open every section. Single sign-on, Support access and Resources show them only a note that an engine admin manages them. Backup & restore shows its rows with every action disabled. In the other sections they see the settings; a control only an admin can use is shown but disabled, with the reason. Operators see them disabled too, not only viewers. The API checks every change on its own, by the same role table.