Running self-hosted Plane in a DMZ
A guide to running self-hosted Plane behind a DMZ: which network connections are load-bearing, and how to keep uploads, integrations and authentication working.
Enterprises that self-host Plane may require its application and data services to remain on private networks. External collaborators can still need access to work items, and cloud-hosted integrations need a way to deliver events to Plane. Deploying Plane behind a DMZ helps give these users and services access without exposing the underlying infrastructure.
A demilitarized zone (DMZ) is a network segment that separates networks with different levels of trust. Placing a reverse proxy in the DMZ lets approved traffic reach Plane while keeping its application and data services on private networks.
A restrictive firewall can undermine the very deployment it protects. Several connections that appear to be optional outbound traffic are essential to workflows in Plane. Before opening the minimum number of connections, establish which ones the enterprise cannot afford to block.
Classify connections by the consequence of blocking them: load-bearing if a required workflow stops, optional if a feature can degrade or be unavailable without compromising those workflows.
Use this as a reference architecture. Every self-hosted network differs in its firewalls, certificates and integrations, so validate the full topology in your own environment before production.
Consider a Plane Commercial Edition deployment where employees connect over VPN and GitLab delivers merge request updates to Plane.
A successful sign-in cannot test these three paths:
- App services to
WEB_URL: A blocked return path can prevent Plane AI from reaching the Plane API through the instance's configured hostname. - Browser to external object storage: Blocking the storage endpoint prevents direct S3 transfers.
- Instance to
prime.plane.so: Connected license grants need outbound HTTPS to refresh. An existing grant remains valid until expiry.
1. Keep Plane's app and data tiers off the public network
The deployment has three network tiers:
- DMZ: The external reverse proxy or gateway accepts approved incoming connections.
- Private application tier: Plane's services run together behind the bundled proxy (Docker Compose) or ingress (Kubernetes).
- Protected data tier: PostgreSQL, Redis or Valkey, RabbitMQ, object storage, and OpenSearch where used. These can run as external services.
Plane Commercial Edition gives infrastructure teams a defined application boundary. The DMZ proxy forwards to one Plane upstream, avoiding the need to reproduce internal service routes. Documented external-service configurations allow the data tier to run on separate infrastructure.
Use Plane's architecture and external services documentation to define the firewall rules:
- DMZ proxy to Plane: Allow the proxy to reach the designated application upstream for approved external access.
- App tier to data services: Plane needs connections to the database, cache, message queue, and storage services to process and store work.
- User networks to data services: Deny direct access to databases, caches, and message queues. Browser access to object storage depends on the transfer mode.
The WEB_URL return path
Plane AI calls the Plane API through WEB_URL by default, as PLANE_API_HOST defaults to this value in the published Compose files.
Imagine the enterprise passes its basic access checks. Employees can sign in, but the first Plane AI action, such as creating a work item from a chat prompt, could fail because the AI service cannot reach the Plane API through WEB_URL. The browser has a permitted route to that hostname; the application tier does not.
The MCP server calls the Plane API through an internal endpoint and uses WEB_URL for OAuth sign-in. Both Plane AI and the MCP server are disabled by default.
The app tier must resolve WEB_URL, reach it over an approved network route, and trust its certificate chain. Internal DNS or controlled routing can provide this access without exposing individual services. Test reachability from within the app tier.
Controlled external access or VPN-only access
The enterprise needs GitLab callbacks and external collaborators to reach Plane, so it uses a DMZ proxy. Compare the two access patterns:
- DMZ proxy: Permits approved collaborators and cloud services to reach Plane.
- VPN-only: Limits access to the private network; cloud callbacks, hosted integrations and MCP clients outside that network cannot reach Plane. Published pages and Intake forms also become unreachable from outside it.
2. Keep WebSockets, streaming and uploads working through every proxy hop
Plane Commercial Edition supports NGINX, Caddy, or Traefik in front of its bundled proxy or Kubernetes ingress. Forward requests to one upstream and let Plane handle internal routing. See the external reverse proxy guide.
A proxy can pass ordinary requests while interrupting live Page edits or streamed responses in Plane AI and Plane Agents. Check each hop:
- Request identity: Preserve Host and the HTTPS scheme for storage URLs and SAML redirects. Include Plane's HTTPS origin in
CORS_ALLOWED_ORIGINSto avoid secure-cookie and CSRF issues during sign-in. Because Plane's default configuration accepts these forwarded headers from any client, the DMZ proxy must overwrite X-Forwarded-For and X-Real-IP and strip client-supplied CF-Connecting-IP and True-Client-IP headers to prevent source IP spoofing. - Real-time collaboration: Allow WebSocket upgrades and long-lived connections on
/live/for live Page editing. - Streaming: Pass server-sent events for Plane AI and Plane Agents without buffering.
- Request size and timeouts: Every applicable proxy hop carrying uploads must allow at least
FILE_SIZE_LIMIT(5 MiB by default). The bundled proxy enforces this value. Traefik on Kubernetes defaults to 20 MiB. The lowest limit in the proxy chain sets the largest request that reaches Plane, so size every applicable hop for the largest upload you expect. Configure timeouts for long-running requests.
Choose how file transfers reach object storage
USE_STORAGE_PROXY determines whether Plane transfers files directly to storage or relays them through its API. The enterprise needs to keep its storage endpoint private while allowing collaborators to attach files to work items.
Direct transfers (USE_STORAGE_PROXY=0, default)
- Plane generates presigned URLs for uploads and downloads.
- External S3-compatible storage requires browser HTTPS access and a CORS policy allowing Plane's origin. Direct transfers bypass Plane's proxies and fail if the browser cannot reach the endpoint or the storage CORS policy rejects the origin.
- Bundled MinIO uses Plane's proxy at
/{BUCKET_NAME}(default/uploads), so proxy reachability and request limits still apply.
Relayed transfers (USE_STORAGE_PROXY=1)
- File transfers pass through Plane's API, which needs access to the storage endpoint. Browsers can remain isolated from it.
- Upload and import limits apply at the API and applicable proxy hops.
The infrastructure team selects USE_STORAGE_PROXY=1 to keep storage inaccessible to browsers. The API-to-storage connection remains load-bearing; direct browser access can be denied. See Plane's private bucket configuration.
3. Keep certificates valid across network zones
Choose how to protect traffic between the DMZ proxy and Plane:
TLS termination at the DMZ: Use internal HTTP only on tightly controlled segments where security policy permits it. In the documented Commercial Edition setup, the outer proxy terminates HTTPS and Plane's bundled proxy receives HTTP with SITE_ADDRESS=:80.
TLS re-encryption: Prefer this when traffic crosses trust zones. The outer proxy connects to Plane over HTTPS, verifies the upstream certificate and checks the hostname. Failed verification or a blocked route prevents access. The infrastructure team plans to validate this configuration before production.
Remove tls_insecure_skip_verify if you copy Plane's Caddy template, in both configurations:
- HTTP upstream: The directive makes Caddy attempt HTTPS against the plain HTTP listener configured with
SITE_ADDRESS=:80. - HTTPS upstream: It disables certificate verification. Configure trust in the upstream certificate instead.
Plane's SSL guide also covers serving a corporate-CA certificate on the bundled proxy. For re-encryption, the DMZ proxy must trust that CA and verify the upstream hostname.
Outbound certificate trust: For HTTPS requests Plane makes to private-CA services, configure trust according to the installation method:
- Kubernetes: The Helm chart's top-level
customCAsetting works in connected and air-gapped deployments. - Docker Compose: The supplied configuration has no equivalent built-in setting for outbound private CA trust. Check with Plane before relying on a private CA for S3, your IdP or Git.
SSL_VERIFY affects only OAuth and OIDC and disables verification rather than adding trust, so it is not a way to trust a private CA.
HTTPS requests to private-CA services can fail if Plane cannot verify their certificates.
Consistency across zones: Check these settings before allowing user access:
- DNS, certificate hostnames, Plane's URL, and IdP redirects match across zones.
- Certificate renewal is configured at each TLS endpoint.
- Forwarded HTTPS headers preserve the correct scheme for links and authentication.
See Plane's SSL configuration guide for the documented options.
4. Provide access from restricted network zones
Let people sign in from every zone
Employees and approved collaborators must reach the configured Plane URL over their respective network paths. Restrict access to administrative surfaces while keeping authentication routes available.
Required paths depend on the authentication method:
- OIDC: The browser needs access to the IdP; Plane's API needs access to the token and user information endpoints. Sign-in fails if either required path is unavailable.
- SAML: The browser carries the assertion back to Plane. No direct server-to-IdP route is required for this exchange. Keep metadata, certificates, and assertion consumer URL consistent.
- LDAP: Directory-based sign-in depends on a direct API connection over LDAP or LDAPS.
Allow the connections Plane makes in and out
Suppose the enterprise's initial deployment checks pass, but the firewall leaves no reachable endpoint for GitLab merge request callbacks. Engineers continue to merge code while the associated work items in Plane stop receiving GitLab updates. The gap becomes apparent when someone asks why the work items are stale.
GitLab may be an optional integration in another deployment. For this enterprise, both outbound API access and inbound webhooks are load-bearing for keeping work items in sync with merge request activity.
For cloud-hosted GitHub, GitLab or Slack, use the approved callback path described in Section 1. Self-managed GitHub or GitLab can deliver events over approved internal paths. Hosted MCP clients need a reachable endpoint to request Pages or work items; local clients connected over VPN can use the private route.
Intake email
Intake email (Business plan) requires SMTP ingress to create work items. An HTTP reverse proxy cannot carry that traffic. To enable it:
- Enable the email service by configuring
EMAIL_REPLICAS(default 0), and configure an MX record. - Route standard SMTP ports 25, 465 and 587 to the Plane server. Prime CLI defaults to host ports 10025, 10465 and 10587. Configure the corresponding
LISTEN_SMTP_PORT_*variables or forward the ports. Mail servers deliver on port 25. - Ensure
SMTP_DOMAINmatchesINTAKE_EMAIL_DOMAIN. - Optionally set EMAIL_WEBHOOK_SECRET to the same value on the API and email service; once set, the API rejects inbound mail without it.
See Configure DNS for Intake email.
Licensing, installation, and upgrades
prime.plane.so: Required for connected license grant refreshes every 30 minutes. A failed refresh leaves the current grant valid until its Prime-controlled expiry. The host also serves version checks every 12 hours, changelog requests, and install/upgrade files.- Docker Hub: Required by deployment hosts pulling images for installation and upgrades.
Feature-dependent outbound traffic
Allow core application and connected licensing traffic first. Telemetry is enabled by default. It is a database setting, not an environment variable. Instance admins turn it off under God Mode → General → Chat + telemetry by disabling 'Let Plane collect anonymous usage data', which also disables chat support. Model-dependent work requires a connection to the configured model provider. Two other connections need special attention:
- Outgoing webhooks: All outbound webhook deliveries (workspace, app and automation webhooks) pass through an SSRF guard. Private or internal IP targets are blocked unless allowlisted with
WEBHOOK_ALLOWED_IPSorWEBHOOK_ALLOWED_HOSTS. These settings do not govern incoming GitLab callbacks or ordinary API calls. - Link previews: Iframely requests the URLs being previewed. Previews may not load for destinations denied by your egress policy.
If connected licensing traffic is prohibited, air-gapped Plane uses an offline license and has different deployment requirements.
Use the matrix to map load-bearing and optional connections against the workflows your teams rely on. The Required when column guides this decision. Deny unnecessary access where policy permits. Ports and destinations are illustrative; use actual values when defining firewall rules.
Source | Destination | Direction / protocol | Required when |
Approved users | DMZ reverse proxy | Inbound HTTPS, 443 | DMZ user access |
DMZ reverse proxy | Plane proxy or ingress | To app tier, configured HTTP/HTTPS port | DMZ proxy pattern |
Plane app services | Configured WEB_URL | Internal route, configured HTTPS endpoint | Plane AI internal API calls |
App tier | PostgreSQL, Redis/Valkey, RabbitMQ | Internal, typically 5432, 6379, 5672 | Core dependencies |
App tier | Object storage | Internal or approved service connection, e.g. S3 HTTPS 443 | File storage |
App tier | prime.plane.so | Outbound HTTPS, 443 | Connected license refresh (30 min) |
Deployment hosts | prime.plane.so / Docker Hub | Outbound, typically HTTPS 443 | Online install or upgrade (files / images) |
App tier | prime.plane.so | Outbound HTTPS, 443 | Version check (12 h) and changelog fetch |
User browser | External S3 endpoint | HTTPS, typically 443 | Direct external S3 transfers |
App tier | Identity provider / directory | Outbound HTTPS or LDAP/LDAPS, 389/636 | Configured OIDC or LDAP |
Integration service | Approved Plane callback endpoint | Inbound HTTPS, typically 443 | Enabled cloud integration callbacks |
Mail infrastructure | Plane server via approved mail ingress | Inbound SMTP 25/465/587; default host mapping 10025/10465/10587 | Intake email enabled (Business plan; email service running) |
App tier | Configured model provider | Outbound or private endpoint, configured protocol/port | Plane AI |
App tier | GitLab, GitHub or Slack API | Outbound HTTPS, typically 443 | Enabled integration API operations |
App tier | Configured SMTP server | Outbound, configured protocol and port | Notification email |
App tier | Approved webhook targets | Outbound, configured protocol/port | All outbound webhooks; internal targets must be allowlisted |
Iframely | URLs being previewed | Outbound HTTP/HTTPS, configured by URL | Link previews, subject to egress policy |
App tier | telemetry.plane.so | Outbound HTTPS | Telemetry delivery |
App tier | OpenSearch | Internal, configured port | OpenSearch-backed features, when used |
User browser | Identity provider | HTTPS, configured endpoint | OIDC or SAML sign-in |
Hosted or local MCP client | Plane MCP endpoint | HTTPS, via approved entry point or private route | MCP access |
5. Verify the architecture before production
The enterprise now has a deployment configuration to evaluate: a DMZ proxy for approved external access and GitLab callbacks, relayed storage with USE_STORAGE_PROXY=1, and planned TLS re-encryption between the DMZ and Plane. In a pre-production environment, verify that a collaborator can reach Plane through the proxy and attach a file while storage remains inaccessible to their browser. Check that a GitLab merge request event reaches the associated work item and that the proxy verifies Plane's upstream certificate.
Alongside those acceptance criteria, verify each load-bearing path, confirm any loss of optional functionality is acceptable, and check that the firewall denies prohibited paths:
- Network isolation: Probe entry points and prohibited internal paths from each user zone. Test DNS, routing, and certificate trust for
WEB_URLwithin the app tier. - Authentication: Complete sign-in from each allowed zone. Check origin and certificate trust, client IP attribution, and forwarded-header spoofing resistance.
- Live updates: Edit a Page from two sessions. Watch a longer Plane AI response and agent-run stream if enabled.
- File transfers: Upload, download, and import near
FILE_SIZE_LIMIT. Test direct S3 CORS where applicable. - Integrations: Trigger a GitLab merge request event and verify its update in Plane. Test MCP reads, outgoing webhooks, notification delivery, and Intake email where enabled; check the SMTP mapping and running email service.
- Egress: Observe license refreshes, version/changelog requests, and image pulls. Exercise configured model endpoints, link previews, and telemetry.
Check gateway and firewall logs for denied connections. Use Plane's proxy or ingress and application logs to trace failed requests, certificate errors, timeouts, or missing events.
Edge cases to plan for
- VPN-only access: Test callbacks from their actual source. If they fail while employees can sign in over VPN, revisit the access pattern in Section 1.
WEB_URLreturn path: If a Plane AI action fails after sign-in, trace the request from the AI service to Plane's configured URL. Check logs for DNS, routing or certificate failures.- TLS re-encryption: If the DMZ proxy fails to establish HTTPS with Plane, check upstream certificate trust and hostname verification. The documented proxy and certificate configurations still need to be tested together for your installation method.
- Private CA trust: A working browser connection does not establish that Plane can reach a private-CA service. Confirm how the selected installation method establishes outbound trust before adopting those endpoints.
Choose the access pattern your deployment needs
For the enterprise, a successful DMZ deployment means employees and approved collaborators can work in Plane, GitLab can update their work items, and the application and data services remain on private networks. Judge the network design by whether these workflows survive its restrictions.
Talk to Sales to evaluate Plane Commercial Edition against your network and security requirements. Use Plane's self-hosting documentation to map your deployment requirements before that conversation.


