Self-Hosted Deployment Security: GDPR, HIPAA, SOC 2

What self-hosting your deployment platform changes for GDPR, HIPAA, SOC 2 and PCI DSS: secrets, audit trails, data residency, and what is still on you.

David Viejo
David Viejo · Updated · Published

Self-hosting your deployment platform keeps your source code, environment variables, and user data off a SaaS vendor's servers — which removes an entire category of vendor risk that GDPR, HIPAA, SOC 2, and PCI DSS all care about, and gives you the audit evidence each framework asks for. It doesn't make you compliant by itself: you still need your own policies, risk assessments, and (for HIPAA) a BAA with whichever cloud or VPS provider hosts your server.

Temps is a self-hosted deployment platform — git-push deployments, built-in observability and automatic SSL — that runs entirely on servers you control. This guide covers what that changes for security and compliance, and what stays your job. For the full list of Temps' security controls, see the security overview.


What Self-Hosting Changes, and What It Doesn't

Self-hosting moves the deployment platform from a vendor's infrastructure to yours. Your source code, build artifacts, environment variables, logs and analytics data stay on servers you choose, in the jurisdiction you choose, and the audit trail is in a database you can query. In exchange, patching the OS, securing SSH and backing up the server become your responsibility. If you are weighing Vercel against self-hosting on cost and developer experience rather than security, see Temps vs Vercel; for how Temps approaches security as a product, see the security overview.


Is a Self-Hosted Deployment Platform More Secure Than Vercel or Netlify?

It depends on your threat model. Managed platforms like Vercel and Netlify invest heavily in security infrastructure. But they're also centralized targets — a breach at the platform level exposes every customer simultaneously. And for compliance-driven teams, the more pressing issue is not whether the platform is secure, but whether you can prove it is to an auditor.

What that looks like on Temps:

  1. Values are AES-256-GCM encrypted on your server. Environment variables and project secrets are encrypted with EncryptionService before they are written to the database, under a master key generated at setup that stays on your host. Environment variables are injected into containers as environment variables; project secrets are mounted read-only as files under /run/secrets/<KEY> (mode 0400) instead, so they don't show up in docker inspect or process environments. The files are written to a directory on the host's disk and bind-mounted into the container, so they are plaintext on the host filesystem until the container is removed.

  2. A searchable audit trail on your own database. Deployments, authentication events, team and access changes, and reveals of an environment variable's value (or its promotion to a write-only secret) are recorded by the temps-audit crate and exposed through the dashboard, the CLI and an API you control. Creating, editing and deleting environment variables isn't audited yet. The audit log is free in the open-source build; it is not immutable at the database level. Tamper-evident hash chaining and streaming to a SIEM are part of Premium.

  3. Free to self-host — Temps is MIT / Apache 2.0. Temps Cloud, a hosted control plane for your own servers, is $29/month in an invite-only beta.


Self-Hosted vs. Managed Platform: Security Comparison

Vendor features and prices as of October 2026.

FeatureVercelNetlifyTemps (Self-Hosted)
Secret encryption at restYes — their keyYes — their keyYes — AES-256-GCM, your key
Secrets exposed to containersEnvironment variablesEnvironment variablesEnv vars, or read-only files under /run/secrets/ (mode 0400, from a host directory) for project secrets
Audit logsEnterprise onlyPro and Enterprise (retention varies by plan)Built in, free; hash-chained log and SIEM streaming are Premium
Data residency controlRegion selection (their clouds)Region selectionAny server, any cloud or bare metal
BAA for HIPAAPaid add-on for Pro, or EnterpriseEnterpriseNo platform BAA needed — but your VPS/cloud provider (Hetzner, AWS, etc.) still needs to sign one
Built-in observabilityObservability on all plans (Observability Plus is paid); no session replay or uptime checksLogs and observability vary by plan; no session replayAnalytics, session replay, error tracking, uptime monitoring
Source code on your serversNoNoYes
Network isolationShared tenancyShared tenancyYour firewall, your rules
Multi-node clusters on your own serversNoNoYes, over a private network you provide
Platform update controlAutomaticAutomaticYou choose when to run temps upgrade
LicenseProprietaryProprietaryMIT / Apache 2.0
Managed costPro $20/mo platform fee incl. 1 deploying seat; extra deploying seats $20/moPro $20/mo per team, unlimited members, credit-basedFree self-host (managed Temps Cloud $29/mo, invite-only beta)

Why Do Managed Platforms Create Compliance Gaps?

Your code lives on their build servers

When you connect a Git repository to Vercel, Netlify, or Railway, your code is cloned, built, and cached on their infrastructure. You're trusting that their build servers are properly isolated, that build artifacts are cleaned up after deployment, and that no employee can access your repository contents.

Most platforms handle this well in practice. But "trust us" is not a compliance strategy when an auditor asks for documented evidence of control.

Environment variables stored externally are a liability

Your database URLs, API keys, and secrets sit in a third-party vault you don't control. A breach at the platform level exposes your credentials — and you may not know until they publish a disclosure post.

Temps stores environment variables and secrets encrypted with AES-256-GCM on your own server. The encryption key lives at ~/.temps/encryption_key on your infrastructure, not in the database. For how that encryption works and how it compares with Vercel and Coolify, see how to encrypt environment variables at rest. Losing this file means losing access to stored secrets — treat it exactly like a private key.

Data residency is an opt-in feature on managed platforms — self-hosting makes it the default

If your application handles sensitive data (health records, financial information, personal data), every request routes through your platform provider's network. Depending on your regulatory requirements, this may violate data residency rules.

With Temps on a Hetzner server in Helsinki, the data Temps stores stays in Finland. With Temps on your own hardware, it never leaves your building.


Which Compliance Requirements Does Self-Hosting Help With?

None of these are satisfied automatically by running Temps — each still needs its own policies, risk assessments, and (where applicable) formal audit. What self-hosting changes is how much of that work is about a third-party SaaS vendor versus about infrastructure you directly control.

GDPR (European Data Protection)

Under Chapter V of the GDPR (Regulation (EU) 2016/679), transferring personal data outside the EU requires an adequacy decision or safeguards like Standard Contractual Clauses. If your managed platform runs on US infrastructure, you need to verify adequate data transfer mechanisms for every SaaS vendor in your stack — adding compliance overhead that multiplies with each vendor.

With self-hosting, you choose the server region, which sidesteps the international-transfer question entirely if you keep everything in-region. Deploy to Hetzner Helsinki and EU user data stays in Finland. Deploy to your own data center and it never leaves your building. This doesn't cover GDPR's other requirements (lawful basis for processing, data subject rights, breach notification, DPIAs where required) — those depend on how you build the application, not where you host it.

# Install Temps on a server in your chosen region
curl -fsSL https://temps.sh/deploy.sh | bash

# Deploy your app
bunx @temps-sdk/cli login
bunx @temps-sdk/cli deploy --project my-app -e production -y

HIPAA (Healthcare Data)

HIPAA requires a Business Associate Agreement (BAA) with any vendor that processes Protected Health Information (PHI). Most deployment platforms either don't offer BAAs or charge extra for them (Vercel's is a $350/month add-on, Netlify's a paid add-on).

Self-hosting removes the platform BAA — Temps isn't a SaaS vendor processing your data, so there's no Vercel- or Netlify-style BAA to negotiate. It does not remove the requirement entirely: per HHS's guidance on HIPAA and cloud computing, any cloud or VPS provider that stores, transmits, or maintains ePHI is a business associate — even if the data is encrypted and the provider never holds the decryption key. If you deploy Temps on Hetzner, DigitalOcean, or AWS, that provider is in scope and you still need a signed BAA with them; AWS, Azure, and GCP offer one, and you should confirm before deploying that whichever provider you pick will sign one. Only deploying on hardware you own outright (on-prem or colocated, with no third-party infrastructure in the chain) removes the BAA requirement completely.

SOC 2

A SOC 2 report is issued by an independent auditor against the AICPA's Trust Services Criteria — self-hosting Temps doesn't grant SOC 2 compliance by itself, and there's no shortcut around the audit. What it changes is how much of the evidence-gathering depends on a third party. When your deployment platform is a black box, demonstrating control to an auditor is difficult. When it runs on your infrastructure with your access policies, the audit trail is something you can produce directly instead of requesting from a vendor.

Temps ships the temps-audit crate that logs deployments, project and platform setting changes, team and access changes, environment-variable value reveals, and logins to your own database — queryable through the API and CLI, which is the kind of evidence a SOC 2 auditor asks for. If the auditor wants tamper evidence or a SIEM feed, that's the hash-chained log and audit streaming in Premium, or your own export job. The audit logging docs list every event.

# Query audit logs via the Temps API
curl -H "Authorization: Bearer $TEMPS_API_KEY" \
  "https://your-temps-server/api/audit/logs?limit=100"

PCI DSS (Payment Card Data)

The PCI Security Standards Council's PCI DSS requirements require strict control over the environment that touches cardholder data, validated through a formal assessment (self-assessment or QSA audit depending on transaction volume). Most teams avoid this scope entirely by using a payment processor (Stripe, Braintree) that never lets cardholder data touch their own servers — that's true whether you're on Vercel or self-hosted, and it's the simpler path for most applications. If cardholder data does touch your infrastructure, self-hosting lets you define and enforce the security boundary yourself, document it, and show the auditor exactly what controls are in place — but the 12 PCI DSS requirements (network segmentation, vulnerability management, access control, and more) still have to be implemented and assessed regardless of where you host.


What Security Features Are Built Into Temps?

1. AES-256-GCM Environment Variable Encryption

Every new environment-variable value is encrypted before being written to the database, under a single master key generated at setup and kept on the host. Temps decrypts values only when it injects them into a deployment. Mark a variable --secret to make it write-only in the API and dashboard.

# Omit each value so the CLI prompts for it instead of recording it in shell history
bunx @temps-sdk/cli environments vars set STRIPE_SECRET_KEY -e production
bunx @temps-sdk/cli environments vars set DATABASE_URL -e production

2. Full Audit Trail on Your Infrastructure

The temps-audit crate logs deployments, auth events, team changes and reveals of environment-variable values to your database; creating, editing and deleting variables isn't audited yet. You own the data and query it from the dashboard, CLI or API — no enterprise tier required for the searchable log. Capture is best-effort (a failed audit write doesn't block the operation), and rows aren't database-immutable in the open-source build; Premium adds a tamper-evident hash chain and streaming to a SIEM or webhook.

3. Multi-Node Clusters on Your Own Network

In a multi-node Temps cluster, worker nodes join the control plane with temps join over a private network you provide (a VPC, a VPN or Tailscale), so traffic between nodes stays on your own servers and networks rather than routing through external infrastructure. On v0.1.0-beta.57 the control plane reaches each worker's agent over mutual TLS (a per-cluster CA, a per-node certificate and a per-node bearer token), and fresh installs require it; workers still on an older agent config keep plain HTTP behind the bearer token until re-enrolled. The binary's WireGuard relay mode still needs a relay service that Temps doesn't provide, but temps join --pair can build a WireGuard mesh between the control plane and a worker without one.

4. Health Checks Before Cutover

Before switching traffic, Temps probes your new container (/, or the health.path in .temps.yaml) every 5 seconds and needs 2 consecutive successful responses. If the new deployment hasn't passed by the startup timeout (5 minutes by default), the deploy fails and the previous deployment keeps serving — a broken build never takes traffic. Once a deploy has succeeded, nothing rolls back automatically; rolling back is a one-click redeploy of a previous deployment.

5. Supply Chain Risk Reduction

When a managed platform pushes a platform update, it affects all customers simultaneously. A bug in their deployment pipeline could affect your application. With Temps, you control when platform updates are applied — run the server binary's upgrade command on your host, pinned to the release you've reviewed (see upgrading Temps):

temps upgrade --version v0.1.0-beta.57
temps migrate   # apply database migrations as an explicit step

6. Automatic SSL via Let's Encrypt

Temps provisions and renews TLS certificates automatically via Let's Encrypt. Your applications are served over HTTPS by default — no nginx configuration, no certificate rotation scripts.

7. Incident Response Under Your Control

If something goes wrong, you have direct access to your servers, logs, and network traffic. Your incident response team works on your timeline, not the platform's status page.


Self-Hosting in 2026: What You Control vs. What Temps Handles

AspectManaged PlatformSelf-Hosted (Temps)
Source code storageTheir serversYour servers
Build environmentShared infrastructureYour infrastructure
Secret storageTheir vaultAES-256-GCM encrypted, your key
Secret delivery to containersEnvironment variablesRead-only files under /run/secrets/ (host-directory mount)
Data residencyTheir choiceYour choice
Network trafficRoutes through themStays on your network
Audit logsOften a paid or enterprise tierSearchable audit log, free
Incident responseWait for their disclosureYou own the timeline
Platform update cadenceAutomatic, affects all tenantsYou control via temps upgrade
CostPer-seat + bandwidth feesFree self-host (managed Temps Cloud $29/mo, invite-only beta)

What Temps Handles Automatically

Temps handles deployment orchestration, SSL provisioning, pre-cutover health checks (every 5 seconds; a deploy that isn't healthy within the startup timeout never takes traffic), log aggregation, web analytics, error tracking, and uptime monitoring. You get all of that from a single Rust binary on a server you own — no nginx configs, no separate observability tools, no per-seat pricing.


Common Objections to Self-Hosting (And Honest Answers)

"Self-hosting is too much work"

Traditional self-hosting, yes. Temps installs with a single script and handles SSL, builds, deployments, monitoring, and analytics. The operational overhead is comparable to managing a single VPS.

"Managed platforms have better security teams"

True — large platforms invest heavily in security. But they're also larger, more visible targets. A breach at Vercel or Netlify exposes thousands of customers simultaneously. Self-hosting reduces your blast radius to your own infrastructure.

"We don't handle sensitive data"

You almost certainly handle:

  • User email addresses (personal data under GDPR)
  • Authentication tokens and session cookies
  • API keys to third-party services stored as environment variables
  • Business logic and source code that constitutes trade secrets

All of this is safer on infrastructure you control.

"Our team doesn't have DevOps expertise"

Temps is designed for teams without dedicated DevOps. If you can deploy to Vercel, you can deploy to Temps. The difference is that Temps runs on a VPS you own instead of shared infrastructure you don't. The single-binary install means there's no complex setup to manage.


How to Migrate From a Managed Platform to Self-Hosted

Step 1: Provision Your Server

Choose a provider and region that match your data-residency needs. For a small team, a Hetzner CX23 (2 shared vCPU, 4 GB RAM, 40 GB NVMe) is €5.49/month excluding VAT as of October 2026, available in Germany and Finland; Hetzner's US and Singapore locations offer the dedicated-vCPU CCX line instead. Size up if you run many apps or heavy builds, or use your own hardware for maximum control. For HIPAA workloads, pick a provider that will sign a BAA.

Temps Cloud, a hosted control plane for your own servers, is in an invite-only beta and works with whichever server you provision above.

Step 2: Install Temps

curl -fsSL https://temps.sh/deploy.sh | bash

This installs Docker if needed, the Temps binary and its TimescaleDB container, creates the first admin user, configures automatic SSL, and starts the Temps server.

Step 3: Connect Your Repository

Same workflow as any managed platform — connect GitHub, push code, get a deployment. The git-push workflow is identical to Vercel or Netlify.

Step 4: Migrate Secrets and Environment Variables

# Import your existing env file into Temps
bunx @temps-sdk/cli environments vars import .env.production -e production

Step 5: Update DNS

Point your domain to your new server. Temps handles SSL automatically via Let's Encrypt with automatic renewal. No CNAME tricks, no certificate files to manage.


What You Gain, What You Give Up

You Gain

  • Full data sovereignty — data stays where you put it, in the region and jurisdiction you choose
  • Predictable costs — no per-seat or bandwidth surprises, no "contact sales" for compliance features
  • Your own audit trail — deployments, config changes and logins logged on your infrastructure, queryable from the CLI and API
  • Fewer vendor dependencies for compliance — one less SaaS vendor's data-processing agreement to track for GDPR, no platform BAA to negotiate for HIPAA, and SOC 2-style control evidence you can produce directly instead of requesting from a vendor
  • Reduced vendor risk — no dependency on a platform's business decisions, pricing changes, or breaches
  • Multi-node on your own network — worker nodes join over a private network you provide, with no traffic to external infrastructure
  • Secrets as files — project secrets are AES-256-GCM encrypted at rest and mounted as read-only files in containers instead of environment variables

You Give Up

  • Setup time — a one-time installation script, plus DNS
  • Server maintenance — OS updates, SSH hardening (see the VPS security checklist), disk monitoring and backups of the host are yours
  • Slightly more responsibility — proportional to the control you gain

For teams with a compliance requirement, that tradeoff usually pays for itself. Temps also replaces seven SaaS tools in the same binary — Vercel, PostHog, Sentry, Pingdom, Datadog, Resend and E2B — so fewer vendors end up in your data-processing inventory.


Frequently Asked Questions

Does Self-Hosting Make My Deployment Platform SOC 2 or HIPAA Compliant?

No. Compliance comes from your policies, controls and (for SOC 2) an independent audit. Self-hosting changes where the evidence lives: the audit log, secrets and data sit on infrastructure you control, so you can produce them directly instead of requesting them from a vendor. For HIPAA you still need a BAA with whichever cloud or VPS provider hosts the server. Temps itself holds no SOC 2 report or HIPAA attestation.

Does Self-Hosting Mean I Have to Manage Certificates?

No. Temps provisions and renews TLS certificates automatically via Let's Encrypt. Point your domain's DNS to your server, run bunx @temps-sdk/cli domains add -d yourdomain.com, and Temps handles the rest.

Where Is the Encryption Key Stored?

The encryption key is generated at setup and stored at ~/.temps/encryption_key on your server, outside the database. It never leaves your infrastructure. Losing this file means losing access to stored secrets — back it up like a private key.

Can I Use Temps on Air-Gapped Infrastructure?

Largely, with some setup. Temps has no required external SaaS dependency, but by default it makes a few outbound connections: anonymous telemetry to telemetry.temps.sh (turn it off with TEMPS_TELEMETRY=0), update checks against GitHub releases, Let's Encrypt for certificates (optional if you supply your own), and Docker Hub or your own registry to pull images. Point image pulls at an internal registry and disable telemetry for a closed network.

What Happens If My Server Goes Down?

With a single-node Temps install, your deployments are unavailable while the server is down. For higher availability, Temps supports multi-node clusters over a private network you provide — run temps join on each worker to enroll it, then run replicas across nodes (see multi-node). Managed Postgres can run as an HA cluster with automatic failover.

How Does Temps Compare to Running Docker on a Raw VPS?

Temps adds the full platform layer on top of Docker: git-push deployments, automatic SSL, pre-cutover health checks and one-click rollback, log streaming, web analytics, error tracking, session replay, uptime monitoring, secret management, and audit logging. Running Docker on a raw VPS gives you none of that — you'd need to build or buy each piece separately.


Getting Started

If security and compliance matter to your team — or if you simply want to know where your code and data live — try Temps:

curl -fsSL https://temps.sh/deploy.sh | bash

Temps is MIT / Apache 2.0. For hardening the server it runs on, follow the security hardening guide and close SSH to the internet with Tailscale.


Related guides:

#security#self-hosted#gdpr#compliance#data-sovereignty#privacy#vercel-alternative