Security
What the engine does to protect credentials, patient data and access, and what you configure.
On this page
The engine is built to handle patient data in your environment. It runs in your network, and medhook.dev at most answers whether the license was revoked and, if you turn it on, receives aggregate usage counts, never workflow data. This page states what the engine does and which settings control it. It makes no claim beyond what the code does. Whether your deployment meets a regulation is a decision for you and your compliance owner.
Here is where data lives and what can cross your network boundary, for the GKE install.
flowchart LR
subgraph YOURS["Your Google Cloud project"]
direction TB
TUN["Site-to-site IPsec tunnels\nto healthcare organizations"]
ENG["Engine and MLLP listener\non private GKE"]
DB[("Cloud SQL\nmessages, audit log,\nencrypted credentials")]
SM["Secret Manager\nmaster key, license"]
DEST["Your APIs and FHIR servers"]
TUN --> ENG
ENG --> DB
SM -.-> ENG
ENG --> DEST
end
MD["medhook.dev"]
ENG -. "optional: license ID only,\nevery 6 hours" .-> MD
ENG -. "opt-in: aggregate counts" .-> MDMessages, workflow definitions and credentials stay in your project. The two dotted lines are the only calls the engine can make to medhook.dev, and you can turn both off (License validation).
Encryption at rest
The engine encrypts adapter credentials, webhook trigger secrets, tunnel pre-shared keys, authenticator secrets, alert targets, saved sample messages, saved test cases, Mirth import sessions, log export credentials, secret workspace variables, the OIDC client secrets of identity providers saved in Settings → Single sign-on, and parallel run connection logins with AES-256-GCM. The key comes from ENCRYPTION_MASTER_KEY through PBKDF2 (100,000 iterations), and each value gets its own salt and IV. Passwords are hashed with scrypt, and API client keys are stored as SHA-256 hashes. See Keys and secrets for the full list, escrow and rotation.
Message content can be encrypted at rest too. Turn on Encrypt stored messages per workflow (its Settings tab, under Data), or set ENCRYPT_STORED_MESSAGES=true for all of them. The engine then stores each received message, step output and queued delivery with AES-256-GCM under MESSAGE_ENCRYPTION_KEY (or the master key), so a database dump or backup holds no message text. See Stored message encryption.
Roles
Every route has a minimum role, and the engine checks it on every signed-in request. A route with no rule is admin only. API clients are checked against the same table.
| Role | Can |
|---|---|
viewer | read ids, status, ACKs, timings and errors. Never message content or patient data (PHI), and never a secret. |
operator | also read messages, change workflows, adapter profiles, mappings, code tables, alert rules and triggers, and run tests and replays |
admin | also change Settings (single sign-on, IP allowlist, log export, support access, backup and restore), create, change, delete or reveal VPN tunnels, send pre-shared key links, export the audit log, manage workspaces and their members, build diagnostics bundles and publish to the marketplace |
Anything a role may not do gets a 403. Anyone who needs to read messages needs operator in that workspace: a viewer gets messages and executions without the HL7 body, segments, FHIR output, trigger data, step output or patient name, content search is 403 PHI_SEARCH_FORBIDDEN, and the read is audited with redacted: true. People created on their first Google sign-in get ENGINE_DEFAULT_ROLE, which is operator unless you set it. They belong to no workspace until an admin adds them under Settings → Users & roles → Members. See Authentication.
Workspaces. A person works only in the workspaces they are a member of, and their role there is the lower of the membership role and their engine role. A request for another workspace gets 403 WORKSPACE_FORBIDDEN. Engine admins are members of every workspace. Admins manage members at Settings → Users & roles → Members or with /api/workspaces/{id}/members, and the CLI takes create-engine-user EMAIL --workspace SLUG[:ROLE]. Each change is audited as workspace.member_added, workspace.member_changed or workspace.member_removed. A named API client created with create-engine-api-client --workspace SLUG works only in that workspace (another is 403 WORKSPACE_FORBIDDEN); one created without --workspace reaches every workspace at its role.
Sign-in and MFA
People sign in one of four ways. A session ends after 60 minutes without activity, and in any case 12 hours after sign-in (see Session length).
- Email and password, then a 6-digit code the engine emails. The code lasts 10 minutes, works once and allows 5 tries.
- An authenticator app, if the person enrolled one, in place of the emailed code. Each authenticator code works once. A second use in the same 30-second window, on any sign-in, is refused with the same answer as a wrong code.
- Google Workspace, for the domains in
ENGINE_ALLOWED_DOMAINS. The Workspace account's 2-Step Verification is the second factor, so enforce it in your Google admin console. A person who also enrolled an authenticator is asked for its code after Google. - Single sign-on through your identity provider (OIDC or SAML 2.0). Roles come from the IdP's groups, unmapped people are refused, and an IdP-reported multi-factor sign-in counts as the second factor. See Single sign-on.

Codes are single-use:
- Authenticator codes. The engine stores the last time step it accepted for each person and moves it forward atomically, so a code that was already used, or that a concurrent request used first, is refused. The engine logs the reuse at
warnwith the person's id, never the code. - Recovery codes. Each one works once. The engine stores only their SHA-256 hashes, removes a code when it is spent, and says how many are left. Two different codes spent at the same moment are both burned. A recovery code is spent only on a live sign-in.
- Emailed codes. Each one works once, lasts 10 minutes and allows 5 tries.
Session length
A person stays signed in while they use the engine. Their session ends after ENGINE_SESSION_IDLE_MINUTES (default 60, 1 to 720; Helm sso.sessionIdleMinutes) without activity, and in any case ENGINE_SESSION_MAX_HOURS (default 12, 1 to 24; Helm sso.sessionMaxHours) after sign-in. The sign-in page states this engine's values.
- Activity is opening a page, making a change, or keyboard and pointer input on a page. The background refreshes an open page makes (badges, dashboards, queues) don't count, so a screen left open on an unattended workstation still signs out.
- The engine checks both limits on every request, from the session record it keeps. An idle session gets the same answer as an expired one: the sign-in page, or 401 from the API.
- Changing either value applies to sessions already open. A value that isn't a whole number in range is ignored with a warning in the engine log, and the default applies.
- API clients are not affected: their tokens last 2 hours.
Remember this device
With ENGINE_TRUSTED_DEVICE_DAYS set to 1 to 90 (Helm sso.trustedDeviceDays; the default 0 is off), the emailed-code step shows Remember this device for N days. Ticked, the next password sign-in from that browser skips the emailed code. The password is still asked. Google, single sign-on and authenticator sign-ins are unchanged, and a break-glass password sign-in while "Require SSO for everyone" is on always asks for the code.
- The browser keeps a random token in an
httpOnly,SameSite=Laxcookie,Secureand__Host-prefixed on HTTPS. The engine stores only the token's SHA-256, with the person, a browser summary such as "Chrome on macOS", when it was trusted and last used, and when it ends. - Each use replaces the token, keeping the original end date. Lowering the setting shortens devices already remembered;
0stops them all. - A device stops working when the person's role changes, their password is set again, they are disabled (
create-engine-user EMAIL --disable), or their authenticator or password is reset from the CLI. - Profile › Remembered devices lists the person's own browsers with Forget and Forget all. An admin forgets everyone's devices for one person with
DELETE /api/users/{id}/devices. Forgetting doesn't end open sessions.
The engine limits guessing. Wrong passwords are limited per email address and IP address, and ten wrong codes for one account within an hour pause its password sign-in for an hour. The pause is audited, and the person is emailed. An admin lifts it with create-engine-user EMAIL --unlock. Google sign-in and single sign-on keep working during a pause.
Sign-in events go to the audit log:
| Event | When |
|---|---|
auth.signin_failed | a wrong password or code, or a refused Google or SSO sign-in |
auth.signin_locked | ten wrong codes paused the account's password sign-in |
auth.lock_notice_sent | the engine emailed the person about the pause |
mfa.recovery_code_used | a recovery code finished a sign-in, with the number of codes left |
auth.device_trusted | a person ticked Remember this device at the emailed-code step |
auth.device_signin | a remembered device stood in for the emailed code |
auth.device_forgotten | devices were forgotten (by the person, an admin or a role change) |
No event holds a password or a code.

Your medhook.dev account follows the same rules. Its authenticator codes are single-use, and a reused code gets the same Invalid TOTP code answer as a wrong one and counts toward the lockout. medhook.dev keeps its own append-only audit log of turning MFA on or off, regenerating recovery codes and lockouts (auth.lockout, at most once per IP address or email per 15-minute window).
Machines never use these paths. They use named API clients with a role and an expiry, and tokens last 2 hours.
IP allowlist
An admin can restrict who reaches the engine to a list of CIDR ranges, under Settings → IP allowlist. The page shows your own address so you do not lock yourself out. With no entries, every address is allowed.
- The engine reads the list from PostgreSQL and caches it in Redis for 60 seconds, so a change applies within a minute. A Redis outage alone never weakens it.
- The allowlist checks the client IP the engine resolves with
CLIENT_IP_SOURCE(below). With the default,none, the engine can't see client IPs, so it refuses to save an entry rather than lock everyone out. - Health probes,
/api/version,/api/auth/token, inbound webhooks, FHIR subscription callbacks and MLLP ingest are exempt, so they work whatever the list says.
If neither the cache nor the database can answer, the engine fails open by default: API requests from every address are served. This is never silent. Each failed lookup logs the error SECURITY: IP allowlist unavailable, failing open, adds to medhook_ip_allowlist_unavailable_total{mode="fail_open"}, writes an ip_allowlist.fail_open audit event (and ip_allowlist.fail_open_ended when the database answers again), and shows a red banner on every dashboard page. If your security review relies on the allowlist, set IP_ALLOWLIST_FAIL_OPEN=false. Then, while the list cannot be read, requests get HTTP 503 IP allowlist unavailable.
Client IP addresses
The IP allowlist, per-IP rate limits (including the POST /api/auth/token failure gate and password sign-in throttling) and the IP on every audit event all use the client's address. A client can write any X-Forwarded-For or X-Real-IP header it likes, so the engine trusts one only when you say which one your own proxy writes, with CLIENT_IP_SOURCE:
CLIENT_IP_SOURCE | Use it when | The client is |
|---|---|---|
none (default) | The engine's port is reached directly (Docker Compose, Azure Container Instances, a laptop). | unknown: no header is trusted. Every client shares one conservative rate-limit bucket, audit events record no IP, and an IP allowlist refuses everyone. |
gclb | Google's external HTTP(S) load balancer: GKE Ingress, or a Global load balancer. It appends <client>, <load balancer>. | The X-Forwarded-For entry left of the load balancer's. |
last-hop | A proxy that appends the address it saw as the last X-Forwarded-For entry: AWS ALB, ingress-nginx, nginx with $proxy_add_x_forwarded_for, Caddy, Cloud Run. | The last X-Forwarded-For entry. |
x-real-ip | nginx with proxy_set_header X-Real-IP $remote_addr. | X-Real-IP. X-Forwarded-For is ignored. |
TRUSTED_PROXY_HOPS adds proxies in front of the one the mode names, for example 1 for Cloudflare in front of a Google load balancer. Set on its own, without CLIENT_IP_SOURCE, it keeps its old meaning (that many trusted rightmost entries; 0 is none), but X-Real-IP is no longer a fallback.
Entries to the left of your proxies' are whatever the client sent, so adding or rotating them never changes the IP the engine sees. A chain shorter than your proxies write means the request didn't come through them: the client is unknown. Pick the mode that matches the proxy in front of the engine and make sure the engine is reachable only through it; gclb on an engine whose port is also exposed directly lets a client choose its own IP.
The deploy templates set it for you:
| Target | CLIENT_IP_SOURCE |
|---|---|
Helm on GKE (values.gke.yaml, apps/engine/terraform/gke, the customer deploy script) | gclb |
Helm with ingress-nginx (values.production.yaml, values.staging.yaml, values.dev.yaml) | last-hop |
| Helm, base chart (no ingress) | none |
apps/engine/terraform/aws and multi-region AWS (ALB) | last-hop |
apps/engine/terraform/gcp (Cloud Run) and multi-region GCP | last-hop |
apps/engine/terraform/azure (Container Instances) | none |
| Docker Compose and the air-gapped bundle | none |
Multi-region GCP uses last-hop, not gclb, because each region's run.app URL stays reachable without the load balancer. Behind the load balancer that makes every client share the load balancer's address (a shared bucket, never a spoofed one); restrict Cloud Run ingress to the load balancer before switching to gclb.
At startup the engine logs a warning when CLIENT_IP_SOURCE is unset on Kubernetes, Cloud Run, ECS or Azure, and once at runtime when requests carry a proxy's headers (Via, X-Cloud-Trace-Context, X-Amzn-Trace-Id, CF-Ray, X-Azure-Ref) while it is unset.
Audit log
Every change to workflows, adapter profiles, triggers, mappings, code tables, settings, users and API clients is written to the audit log with who made it. So are sign-ins, replays and sample-message reads, without message content. The actor is the person, api-client:NAME or cli. To read it, ask it questions, check PHI access, review flags and run the HIPAA access report, see Audit log.
- Tamper evidence. Rows are hash-chained.
GET /api/audit-log/verifychecks the chain. - Export. Exporting the log is admin only.
- SIEM. With log export on, every audit event is also sent to your provider as type
audit. Events written by the CLI tools stay in the database chain only. - Retention.
AUDIT_LOG_RETENTION_DAYSdefaults to 2190 days (six years). Expired events are written to the audit archive first and only then deleted. With no archive configured, nothing is deleted. See Back up and restore.
Executions hold raw messages. EXECUTION_RETENTION_DAYS sets how long they are kept, and the period is your compliance decision. An admin can give one workflow its own retention, 7 to 3650 days, in the workflow's Settings tab, under Data (Retention), and keep its failed executions longer than the rest (Keep failed executions for). Each change is audited as workflow.retention_changed.
SSRF protection
The engine refuses to call internal addresses on behalf of a workflow. The check covers the outbound URLs of the Generic REST, FHIR REST, FHIR Bulk, EHR, SOAP, WebDAV and S3 adapters, OAuth token URLs, FHIR REST paging links, the Splunk HEC URL in log export, SMART launch, alert notifications, the email relay, your identity provider's endpoints and parallel run connections. The SQL database, SMTP, FTP and SMB adapters check their host the same way and then connect to the address that passed. It resolves the host name, and refuses these ranges:
- loopback (
127.0.0.0/8,::1) - private (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7) - link-local, including the cloud metadata address (
169.254.0.0/16,fe80::/10) - the unspecified range (
0.0.0.0/8,::) - an IPv6 address that carries one of these IPv4 addresses (IPv4-mapped, IPv4-compatible or NAT64)
- the metadata host names
A host setting that holds a dotted IPv4 address with a leading zero in any part, such as 0177.0.0.1, is refused outright, because the system resolver would read it as octal (127.0.0.1) when the engine connects. Write addresses without leading zeros. In a URL, the engine reads such an address as octal before the check, the same way the connection does.
Databases, mail relays and file servers usually sit on a private network. Put each such host in SSRF_ALLOWLIST, or the step and Test connection fail with an SSRF error. MLLP and SFTP connections skip the private-address check, because they normally reach hosts on a private network through a site-to-site tunnel. They still refuse link-local and cloud metadata targets (169.254.0.0/16, fd00:ec2::254, fd20:ce::254, metadata.google.internal), as an address, an IPv6 spelling that carries one, or a name that resolves to one, with blocked by SSRF policy and before any byte is sent. Both check the address they connect to, from the same DNS answer, so a name that answers differently the second time cannot reach a refused address: MLLP checks the answer its connection uses, and SFTP resolves the name once, checks every address, then connects to the checked address (the pinned host key is matched against the server's key, not its name). SSRF_ALLOWLIST and SSRF_DENYLIST do not apply to MLLP or SFTP, and no entry opens a metadata address.
For the HTTP senders (Generic REST, FHIR REST, FHIR Bulk, the EHR adapters and their token requests), the check runs on every request the engine sends, including each redirect, and the connection goes to the address that passed the check, so a DNS answer that changes in between cannot redirect it. With a proxy, the engine checks the target before it asks the proxy to connect, and the proxy host must pass the same rules: a private proxy needs SSRF_ALLOWLIST. The proxy resolves the target name again on its side, which is acceptable because the proxy is your egress control.
A request with a body (a SOAP envelope, an OAuth token request with a client secret) is never sent on to another origin: a cross-origin 307 or 308 is refused, and a 301, 302 or 303 drops the body.
Two lists tune it. SSRF_ALLOWLIST names hosts or addresses that skip the check, and CIDRs whose private addresses may be reached (10.20.0.0/16, fd12:3456::/32); a host name is resolved and every address it answers is checked against the CIDRs. SSRF_DENYLIST adds hosts that are always refused. ALLOW_PRIVATE_URLS=true lifts the check for development, and the engine ignores it in production and logs a warning.
An HTTP adapter can also reach a private address inside the remote subnets of a live tunnel of its own workspace, such as an internal load balancer or a Private Service Connect API on 10.x that the tunnel routes to. This is on by default, the same way MLLP and SFTP reach hosts behind a tunnel. An admin turns it off for a workspace under Settings › Overview (HTTP adapters reach tunnel subnets); SSRF_ALLOWLIST still applies.
Some addresses are never reachable by an HTTP adapter, in any spelling (decimal, octal, hex or IPv6-mapped), through DNS or through a redirect: link-local and cloud metadata (169.254.0.0/16, fe80::/10, fd00:ec2::254, fd20:ce::254, metadata.google.internal) and the unspecified address, even when SSRF_ALLOWLIST names them. A CIDR entry or a tunnel subnet also never opens loopback or the engine's own cluster ranges (GKE_PODS_CIDR, GKE_SERVICES_CIDR, VPN_LOCAL_SUBNETS); only an exact host or address entry does, for example a local identity provider during testing.
A message never chooses where a step sends. The URL, headers, method, file paths and object names come from the step's config, and a message supplies only the data the adapter declares, such as a body or an HL7 message. Use ${...} name templates for per-message file names.
Outbound connections
- SFTP. Every SFTP profile pins its server's host key in
hostKeyFingerprints(SHA256:...) orknownHosts. There is no trust on first use: an unknown key is refused, and Test connection shows the fingerprint the server presented, so you can check it against one you took from a trusted machine.insecureSkipHostKeyCheckturns the check off and must not be used for PHI. Uploads write a hidden.partfile and rename it, so a reader never sees half a file. - HTTP senders. REST, FHIR and EHR profiles can present a client certificate for mutual TLS (PEM or PKCS#12, encrypted at rest with the profile), trust a CA of your choice (only that CA, or the system CAs plus it), require TLS 1.3 instead of the 1.2 default, and go through an HTTP proxy. There is no setting that turns certificate or host name verification off. Test connection says which TLS check failed and never shows key material. See Connection options. Inbound mutual TLS for webhooks is configured on your ingress or load balancer.
- Signed requests. A Generic REST profile can sign each request with Standard Webhooks headers (
webhook-id,webhook-timestamp,webhook-signature), so the receiver can verify the sender and refuse a replay. New profiles offer it on and generate awhsec_secret that is shown once; profiles saved earlier do not sign until you turn it on. The secret is encrypted at rest with the profile and never returned by a read or written to a log. See Signed requests for a receiver verification example. - MLLP. An MLLP Outbound profile can send over TLS 1.2 or later (
tlsEnabled), verified with a pinned certificate fingerprint or a CA, with an optional client certificate (PEM or PKCS#12) and the same CA mode and minimum version as the HTTP senders. There is no setting that turns verification off, and a TLS setting withouttlsEnabledis refused, so a message never goes out in plaintext to a receiver the profile pins. Inbound, a named listener can serve TLS and require a client certificate. - Mail, file shares and databases. The SMTP adapter uses STARTTLS by default, required rather than opportunistic, or implicit TLS, verified against the system CAs or the profile's CA. FTP profiles can use explicit or implicit TLS (FTPS) with a private CA and a minimum version. The SQL database adapter's TLS settings apply on every dialect. Plain SMTP, plain FTP and
http://WebDAV are accepted with a warning on save and test, for parity with Mirth: never send PHI over them. SMB logs in with NTLMv2 only, but the client has no SMB 3 encryption, so file content crosses the network in clear. For PHI, mount the share with the SMB CSI driver and use the Local File adapter.
The sandbox
JavaScript transforms and condition expressions run in an isolated V8 context (isolated-vm). The limits are 128 MB of memory, 5 seconds for a transform and 1 second for an expression. The input is read-only, and the code has no network, file system or Node.js APIs. A transform that hits the memory limit is stopped, and the error says so. The helpers are hl7, date, lookup (over code tables the step declares), console (captured on the step's result, never exported to log providers), vars, env (workspace variables, read-only), globals (the workflow's global map, scalars only), libs (the shared libraries the step pins) and, in destinations that run one after another, responses. Steps imported from Mirth also get Mirth's msg and tmp message tree. await works inside the same time and memory limits. None of these reaches the network, a file or a timer, and the JavaScript Writer adapter runs in the same sandbox with nothing added. See Transforms.
If isolated-vm cannot load, custom JavaScript and expressions do not run: the step fails with isolated-vm is not available on this engine and is not retried, and /api/health shows checks.sandbox other than isolated-vm (status degraded). The release image runs on Node 22, where it loads. SANDBOX_ALLOW_UNSAFE_VM=true runs the code on node:vm with no memory limit, for local development only. Never set it in production.
PHI handling
The engine treats workflow data as PHI.
- PHI enforcement. A workflow marked as handling PHI runs only when the signed license allows PHI, which 1Putt sets once the BAA is executed.
MEDHOOK_PHI_ENFORCEMENTisenabledby default and blocks the run, writes aworkflow.phi_blockedaudit event and counts it inmedhook_phi_blocked_executions_total.warnlogs and lets it run.disabledis for development.MEDHOOK_PHI_ALL=truetreats every workflow as handling PHI. - BAA first. The BAA is executed with 1Putt as part of your contract, and PHI is then turned on in the signed license 1Putt issues. Its status shows in the compliance section of Settings on medhook.dev. Do not send PHI through the engine before that.
- AI features. They send prompts to Anthropic's API. In production they stay off until you set
AI_FEATURES_ENABLED=true, and a key alone does not turn them on. Turn them on only once a BAA with Anthropic covers the deployment. Or run them on Claude in your own Google Vertex AI project, under the BAA you hold with Google: see AI under your own BAA (Vertex). The engine masks names, MRNs, dates of birth, phone numbers, emails, addresses and long ID numbers in prompts before they leave. That is a safeguard, not a substitute for the BAA, so ask people never to type patient details into a prompt. - API error responses. When an API call fails, the error text keeps the status and any error code and withholds the response body ("upstream body withheld, N chars"), so the body never reaches logs, alerts, metrics, events, the audit log or log export. The body, up to 8 KB, is kept only on the step's result in the message, with the same protections as the message itself: encrypted at rest when message encryption is on, masked until Show PHI (audited), hidden from viewers and deleted with the run. A connection's Calls tab keeps it masked, like its other call bodies. Response headers that carry credentials or cookies are never kept.
- Show PHI and reveal windows. Message content is masked until an operator or admin chooses Show PHI and gives a reason (Troubleshooting, Patient request or Audit). Each reveal is written to the audit log as
phi.revealedwith the reason and a keyed hash of the patient, never a value. Viewers can't show PHI. By default every message, run or sample asks for its own reason. To keep PHI showing for a while instead, setPHI_REVEAL_WINDOW_MAX_MINUTES(Helmphi.revealWindowMaxMinutes, at most 480). The reason question then also offers For the next 15 minutes, 30 minutes and longer, up to that maximum. A window belongs to one person in one workspace and is kept on the engine. Every read under it is still audited asphi.revealed, with the window'sgrantId, and the engine checks the window on each read. Opening and ending a window are audited too (phi.reveal_window_started,phi.reveal_window_ended). Hide now, or the window running out, masks everything again. API clients always name a reason on each request. Windows are off (0) unless you set a value; 1Putt's dev and staging engines allow 60 minutes. - Logs and errors. Secret-shaped values are redacted from logs, and workflow reads, exports and marketplace publishes return
__set__in place of a webhook trigger secret. Alerts never carry message content. - Redis. Execution snapshots hold status only, for 15 minutes.
- Retention. Executions and step results are deleted after
EXECUTION_RETENTION_DAYS, or a workflow's own retention, and each purge is audited with counts only.
License validation
The license is issued by 1Putt under your contract and signed. The engine verifies the signature offline, against keys built into the release, so licensing never depends on reaching medhook.dev and never sends your license key or data anywhere.
- Contract term. The license is valid until its term end (
termEnd). - Wind-down. After the term end it stays valid for a signed wind-down period, 90 days unless your contract says otherwise. Every dashboard page shows a warning, Settings → License shows when the wind-down ends,
/api/healthreports the license asgrace, andmedhook_license_grace_activeis 1. When the wind-down ends, workflows stop until 1Putt issues a renewed license. - Revocation. With
LICENSE_REVOCATION_URLset, the engine asks medhook.dev at startup and every 6 hours whether the license was revoked, sending only the license ID. Only a clear "revoked" answer ends the license, at once and with no wind-down, and that is kept in PostgreSQL so a restart does not undo it. An outage, an error or a timeout changes nothing. - Usage counts. Aggregate usage counts go to medhook.dev only when
ANALYTICS_SYNC_ENABLED=true, and never include workflow data or message content.
For the revocation check, allow outbound HTTPS from the engine's egress address to medhook.dev. Offline hosts can leave LICENSE_REVOCATION_URL unset. See Authentication.
Reporting a vulnerability
See Security at MedHook for how to report a vulnerability.