CategoriesDMZs

Does a Cloud DMZ Really Need a VPC? – Part 1 of 2

View Post

Building a Cloud DMZ Entirely with SaaS and PaaS

Rethinking the DMZ in the Cloud Era

Ask ten cloud architects to design a DMZ, and most will begin by drawing a VPC, a public subnet, a private subnet, and a firewall.

But what if none of those components were necessary?

What if an entire DMZ could be constructed using SaaS and PaaS services, without a single customer-managed virtual machine, firewall appliance, or VPC?

The answer is yes. But to understand why, we need to reconsider what a DMZ actually is.

1. The DMZ We Grew Up With

In traditional enterprise networking, the demilitarized zone (DMZ) was a network segment positioned between the public internet and an organization’s trusted internal network.

The architecture was relatively straightforward:

Internet → External Firewall → DMZ → Internal Firewall → Trusted Network

Public-facing web servers, reverse proxies, mail relays, and application gateways lived inside the DMZ. They could receive external connections, but their access to internal systems was tightly restricted.

The underlying security principle was separation.

An attacker compromising a public web server should not automatically gain access to the organization’s internal databases, directory services, or business applications.

For decades, network segmentation was the primary mechanism used to enforce that separation.

Firewalls, VLANs, routing tables, and access control lists formed the foundation of the enterprise DMZ.

When organizations migrated to public clouds, they naturally carried this architectural model with them.

AWS introduced VPCs and security groups. Azure provided VNets and Network Security Groups. Google Cloud offered VPC networks and firewall policies.

Cloud architects recreated familiar DMZ patterns using public and private subnets, cloud firewalls, load balancers, and virtual security appliances.

There is nothing inherently wrong with this approach. For many workloads, it remains appropriate.

But it is not the only way to construct a security perimeter.

2. Cloud Computing Changed the Building Blocks

Consider a modern cloud application.

Its public entry point may be protected by Cloudflare or another managed edge security platform.

Authentication may be handled by Microsoft Entra ID or another identity provider.

Requests may pass through a managed API gateway before reaching an application hosted on Azure App Service, Google Cloud Run, or AWS Lambda.

The application may communicate with a managed database using workload identity and encrypted connections.

Security logs may flow directly into a cloud-native SIEM.

Where, exactly, is the DMZ?

There may be no customer-managed firewall, no traditional DMZ subnet, and no virtual machine.

Yet the architecture can still provide controlled entry points, authentication, authorization, workload isolation, and security monitoring.

The fundamental security objectives have not disappeared. The mechanisms used to achieve them have changed.

This is the distinction between a network-based DMZ and a service-based DMZ.

3. A DMZ Is a Trust Boundary, Not Necessarily a Subnet

The most important characteristic of a DMZ is not its IP address range.

It is the separation it creates between systems operating at different levels of trust.

A properly designed DMZ should answer five questions:

  1. Entry: Through which controlled points can external traffic enter?
  2. Inspection: What security policies are applied before requests reach applications?
  3. Identity: How are users, applications, and services authenticated and authorized?
  4. Isolation: What prevents a compromised public-facing service from reaching more sensitive resources?
  5. Visibility: How are security events logged, correlated, and investigated?

Historically, network firewalls performed much of this work.

Today, several of these functions can be distributed across managed security services.

A SaaS WAF can inspect incoming HTTP requests.

An identity-aware proxy can enforce authentication before allowing access.

An API gateway can validate tokens, enforce quotas, and reject unauthorized API operations.

A PaaS application can use workload identity rather than stored database passwords.

Managed logging and security monitoring can provide visibility across the entire request path.

None of these capabilities inherently requires a customer-managed VPC.

However, distributing controls across services introduces an important responsibility: the architect must verify that the controls collectively establish a meaningful security boundary.

Simply placing a WAF in front of a publicly accessible application does not automatically create a secure DMZ.

4. Three Ways to Build a Cloud DMZ

Model 1: The Traditional Network DMZ

This is the familiar cloud adaptation of the enterprise DMZ.

It uses VPCs or VNets, subnets, routing policies, firewalls, load balancers, and security groups.

The model is particularly useful for legacy applications, hybrid cloud environments, and workloads requiring explicit network-level segmentation.

Its main advantage is control over network traffic paths.

Its tradeoff is greater networking complexity and operational responsibility.

Model 2: The Service-Based DMZ

In this model, managed services provide the security perimeter.

A typical architecture might include:

  • A SaaS security edge for WAF and DDoS protection.
  • A managed identity provider.
  • An API gateway.
  • A PaaS application runtime.
  • Managed databases and secret stores.
  • Centralized security logging.

The customer does not deploy a VPC or operate network security appliances.

Instead, security enforcement relies on service access restrictions, application-layer controls, identities, and provider-managed infrastructure.

This can be a compelling approach for public APIs, serverless applications, and SaaS products.

But there is a crucial caveat.

A managed service is not automatically a private service.

A PaaS database may still have a publicly reachable endpoint. Strong authentication can protect it, but that does not provide the same network isolation as disabling public access entirely.

Model 3: The Hybrid DMZ

The hybrid model combines SaaS/PaaS edge security with private networking for sensitive backends.

Internet-facing traffic passes through managed WAF and API gateway services, while applications and databases use private endpoints, VPCs, or VNets where required.

This model preserves much of the operational simplicity of managed services while adding network-level restrictions.

For enterprise workloads involving sensitive data or hybrid connectivity, this is frequently the most defensible choice.

5. When Does a VPC Become Necessary?

A customer-managed VPC or VNet is not a universal prerequisite for a cloud DMZ.

It becomes necessary when specific connectivity or security requirements depend on it.

Examples include:

Private endpoints: Azure Private Endpoints require a VNet subnet. Other cloud providers offer different private connectivity mechanisms, with their own networking requirements.

Hybrid connectivity: Applications communicating privately with on-premises systems commonly require cloud networking resources and associated routing.

Network inspection: Organizations requiring centralized network firewalls, custom routing, or network-level east-west inspection generally need customer-managed network constructs.

Strict network isolation: Some workloads require private addressing and explicit network boundaries in addition to identity-based access controls.

The decision should therefore follow the security requirements rather than precede them.

We should not deploy a VPC merely because the architecture diagram contains the word DMZ.

Equally, we should not eliminate a VPC simply to claim that an application is serverless or infrastructure-free.

6. Does Zero Trust Eliminate the DMZ?

Zero Trust changes how we evaluate trust, but it does not eliminate the need for security boundaries.

Traditional perimeter security often relied heavily on network location.

Zero Trust assumes that network location alone is insufficient evidence of trust.

Every request should be evaluated using relevant identity, device, application, context, and authorization signals.

This aligns naturally with service-based DMZ architectures.

However, Zero Trust does not make network isolation obsolete.

Identity-based controls and network segmentation are complementary.

A stolen workload credential, an application vulnerability, or a misconfigured authorization policy can still create risk. Network restrictions can provide an additional layer of containment.

The objective is not to replace every firewall with an identity provider.

It is to choose the appropriate enforcement points for each trust boundary.

7. The Real Architectural Question

A modern cloud DMZ can exist without a customer-managed VPC.

That does not mean every application should be designed that way.

A public-facing SaaS application with managed edge protection, strong authentication, tightly restricted origins, and service-level access controls may be well suited to a VPC-less design.

An enterprise application processing sensitive records, connecting to internal systems, or requiring strict network segmentation may benefit from a hybrid architecture.

Both can be valid DMZ implementations.

The architect’s responsibility is to demonstrate how untrusted traffic is controlled and how sensitive resources remain protected.

The cloud did not eliminate the DMZ. It expanded the ways we can build one.

The question is no longer simply where to place the firewall.

It is where to establish the trust boundary, which controls enforce it, and what happens when one of those controls fails.


In Part 2, we will construct a practical service-based cloud DMZ using SaaS and PaaS services, examine its request flow, and identify the security gaps that must be addressed before production deployment.

Related reading: Security in the Public Cloud — Roll Your Own DMZ on AWS, Azure or Google Cloud.