Phase 2: Network Breakout & Sovereign Architecture | Sovereign Ready | S23k
Phase 2 of 6 - Network Breakout & Architecture
Phase 2: Network Breakout & Sovereign Architecture

Build the Failover. Don’t Rebuild the Mistakes.

Security is a discipline, not a cloud feature checkbox.

The trap most organizations fall into: They treat failover as “copy production to backup datacenter.” Same architecture, same vulnerabilities, same dependencies—just in a different location. When geopolitical disruption hits, they discover their “sovereign” backup still phones home to US auth servers, still has vendor backdoors, still violates the principles they thought they were protecting.

The point of a sovereign breakout is optionality—without a big-bang migration.

You do not need to flip your entire stack tomorrow. You build a parallel sovereign path (network + routing + critical components), test it repeatedly, and keep it warm. The moment you decide to make the breakout path primary, you’re not improvising under pressure—you’re executing a rehearsed cutover.

Result: a staged approach: build → validate → drill → improve → cutover when ready. Minimal risk, maximal control.

The New Reality

Assume everything will fail. Your vendor will be blocked. Your credentials will be compromised. Your “trusted” network will be breached. Design accordingly.

Security is YOUR responsibility. Cloud providers sell “compliance” and “security features,” but when your data leaks or gets subpoenaed, they shrug and point to the terms of service you didn’t read.

Jurisdiction determines reality. Where your data physically resides determines which government can access it, which laws apply, and whether you have any recourse when things go wrong.

Unknown = Compromised. If you don’t know a system exists, you can’t protect it. If you can’t measure it, you can’t secure it. If you haven’t tested it, assume it’s broken.

True sovereignty rests on four pillars:

1️⃣ Data Sovereignty: Protection against unauthorized data leakage & control over storage location

2️⃣ Legal Sovereignty: Protection against foreign ownership or legislation

3️⃣ Technical Sovereignty: Own control layers and highly secure separation (logical/physical)

4️⃣ Operational Sovereignty: Operation and maintenance exclusively by vetted personnel in approved jurisdictions

This phase isn’t about buying a second firewall. It’s about rethinking how you architect systems so they survive when assumptions break. Let’s get to work.

Question 1 of 6

Do you have alternative network infrastructure ready to activate?

Backup firewalls, routing, DNS—completely independent of your primary provider.

✓ EXCELLENT
You're ahead of 95% of organizations. Maintain this with quarterly drills.
→ See Infoblok E
⚠️ TEST IT NOW
Infrastructure that hasn't been tested is infrastructure that doesn't work.
→ See Infoblok E
🚨 PLANNING ≠ PROTECTION
Build the minimum viable failover now.
→ See Infoblok A
🚨 CRITICAL EXPOSURE
Zero failover capability. This is Phase 2's entire focus.
→ Start with Infoblok A
Question 2 of 6

When did you last test a full failover to your backup infrastructure?

"Test" means actually cutting over production traffic.

📊 TESTING STATUS
Question 3 of 6

Can you draw the complete component chain for your mission-critical processes?

From user request to database response, including EVERY hop.

✓ STRONG VISIBILITY
Validate every component has a failover alternative.
→ See Infoblok F
⚠️ HIGH-LEVEL ISN'T ENOUGH
Use network tracing to discover what you're missing.
→ See Infoblok F
🚨 ASSUMPTIONS KILL FAILOVERS
Verify every assumption with traces + docs.
→ See Infoblok F
🚨 FLYING BLIND
Start mapping immediately.
→ See Infoblok F
Question 4 of 6

Have you read your cloud provider's Terms of Service and Data Processing Agreement?

Not skimmed—actually read.

⚠️ GET LEGAL INVOLVED
🚨 READ THE FINE PRINT
🚨 YOU DON'T OWN YOUR DATA
Question 5 of 6

Is your data fragmented/segmented to prevent single-point compromise?

One breach should not expose the kingdom.

✓ DEFENSE IN DEPTH
⚠️ EXTEND COVERAGE
🚨 SINGLE POINT OF FAILURE
Question 6 of 6

Have you documented WHY you made architectural decisions (not just WHAT you built)?

Architecture Decision Records (ADRs) prevent repeating mistakes.

✓ INSTITUTIONAL MEMORY
⚠️ FORMALIZE IT
🚨 DOOMED TO REPEAT
Phase 2 Readiness Score
0/60

Implementation Guides

🧱 Infoblok A: Firewall & Network Breakout Strategy
+

Why Firewall Independence Matters

Your primary firewall provider can be blocked, acquired, or compromised. Having a secondary path ensures business continuity.

The Problem:

  • Single firewall vendor = single point of failure
  • Cloud-based firewalls (Cloudflare, Cloud Armor) subject to foreign jurisdiction
  • Geopolitical events can cut access instantly

The Solution:

  • Deploy redundant firewall from different vendor
  • Maintain both in hot-standby or active-active configuration
  • Test failover quarterly (not just assume it works)

Recommended Architecture

PRIMARY PATH (Normal Operation):
Internet → Cloudflare WAF → Your App Servers

FAILOVER PATH (When Primary Blocked):
Internet → OVHcloud DDoS Protection → Hetzner Firewall → Your App Servers

BOTH PATHS:
- Maintained simultaneously
- DNS can switch in <5 minutes
- Tested monthly with 1% traffic, quarterly with 100%

Implementation Checklist

  • [ ] Choose secondary firewall vendor (preferably EU-based: OVHcloud, Hetzner, TransIP)
  • [ ] Deploy in parallel to primary (same rules, different infrastructure)
  • [ ] Configure DNS failover (manual or automated via health checks)
  • [ ] Document failover procedure (step-by-step runbook)
  • [ ] Test monthly: route 1% traffic through secondary, verify functionality
  • [ ] Test quarterly: full failover drill with 100% traffic

Cost-Benefit Analysis

ScenarioCost Without FailoverCost With Failover
Primary firewall blocked (24hr)€50K - €500K revenue loss€200/month redundant firewall + 2hr manual failover
Provider DDoS attackUncontrolled downtimeAutomatic failover, <5min outage
Vendor acquisition/ToS changeForced migration under pressureSmooth transition, no panic
🗺️ Infoblok B: Jurisdictional Data Mapping
+

Why Geography Matters

Data location determines legal jurisdiction. "EU region" in US cloud provider doesn't mean EU sovereignty.

⚠️ THE CLOUD ACT TRAP
US CLOUD Act (2018) allows US government to compel US companies to hand over data regardless of where it's stored. Azure "West Europe" region? Still subject to US law if Microsoft is the provider.

Mapping Your Data Landscape

For each data store, document:

Data ElementPhysical LocationProvider JurisdictionLegal Risk
Customer PIIAzure West Europe🔴 US (Microsoft)HIGH - Subject to CLOUD Act
Product CatalogCloudflare CDN (global)🔴 US (Cloudflare)LOW - Public data anyway
Order DatabaseHetzner Falkenstein DE🟢 EU (German company)LOW - True EU sovereignty
BackupsAWS S3 EU-West-1🔴 US (Amazon)HIGH - Full data exposure risk

Action Plan: Reduce US Exposure

Phase 1: Identify High-Risk Data

  • Personal data (GDPR Article 4)
  • Financial records
  • Trade secrets / IP
  • Authentication credentials

Phase 2: Evaluate Sovereign Alternatives

Service TypeUS ProviderEU Alternative
Object StorageAWS S3OVHcloud Object Storage, Hetzner Storage Box
DatabaseAzure SQLSelf-managed PostgreSQL (Hetzner/OVH), Exoscale DBaaS
CDNCloudflareBunnyCDN (Slovenia), KeyCDN (Switzerland)
EmailSendGridPostmark EU, Mailgun EU, self-hosted Postfix

Phase 3: Migrate High-Risk Data First

  • Start with most sensitive data (PII, credentials)
  • Set 6-month migration deadline
  • Test in parallel before cutover
  • Document every step (for audit trail)

Verification: How to Confirm True Sovereignty

  • Company Registration: Check provider's corporate registration (must be EU entity, not US subsidiary)
  • Parent Company: Verify no US parent company
  • Data Processing Agreement: Review DPA for jurisdiction clauses
  • Subprocessors: Demand list of all subprocessors and their jurisdictions
  • Legal Opinion: For critical data, get legal counsel to review setup
📜 Infoblok C: Terms of Service Red Flags
+

What You Agreed To (And Didn't Know)

Most cloud contracts are signed by procurement without legal or technical review. Here's what you probably accepted:

Real Clauses from Major Cloud Providers

1. Government Access Clause

Typical Cloud Provider ToS
"We may access, preserve, and disclose your Content if required to do so by law or in a good faith belief that such access, preservation, or disclosure is reasonably necessary..."
⚠️ TRANSLATION
What this means: If government issues a subpoena/warrant/NSL, the provider will hand over your data. You may not be notified (gag orders).

2. Liability Waiver

Standard Limitation of Liability
"IN NO EVENT SHALL [PROVIDER] BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR PUNITIVE DAMAGES...

"TOTAL LIABILITY SHALL NOT EXCEED THE AMOUNT YOU PAID US IN THE TWELVE (12) MONTHS BEFORE THE INCIDENT."
⚠️ TRANSLATION
What this means: Your business losses are yours. Recovery is typically capped to fees paid.

3. Data Ownership Ambiguity

Intellectual Property Clause
"You grant us a worldwide, royalty-free license to use... Your Content for the purpose of operating and providing the Services."

4. Unilateral Changes

Modification Clause
"We may modify these Terms at any time... continued use constitutes acceptance."

5. Jurisdiction & Governing Law

Legal Venue
"Governed by laws of [State], USA... disputes resolved exclusively in courts located in [County], USA."
🔐 Infoblok D: Data Fragmentation Strategy
+

The Principle: One Breach ≠ Total Exposure

Data fragmentation means splitting data across systems, jurisdictions, and encryption boundaries so that partial compromise doesn't become total loss.

Note: This guide is intentionally long and implementation-heavy; use it as a reference while designing your breakout architecture.

🧪 Infoblok E: Failover Testing Runbook
+

The Rule: Test or Fail

Untested failover = broken failover. Organizations build backup infrastructure, then never test it. When crisis hits, they discover drift and gaps.

Quarterly Failover Drill Template

Failover Procedure Checklist
FAILOVER DRILL - [DATE]
Participants: [Names]
Start Time: [Timestamp]

PHASE 1: DETECTION & DECISION (Target: 15 min)
[ ] 00:00 - Simulate outage trigger (disable primary firewall)
[ ] 00:05 - Monitoring alerts fire (validate alert system works)
[ ] 00:10 - On-call engineer acknowledges alert
[ ] 00:15 - Decision: Execute failover (document who decided, why)

PHASE 2: DNS CUTOVER (Target: 10 min)
[ ] 00:15 - Lower DNS TTL to 300 seconds (if not already done)
[ ] 00:20 - Update A/AAAA records to point to failover IPs
[ ] 00:25 - Verify DNS propagation (dig from multiple locations)

PHASE 3: TRAFFIC VALIDATION (Target: 15 min)
[ ] 00:25 - Monitor traffic shifting from primary to failover
[ ] 00:30 - Test critical user journeys:
    [ ] Homepage loads
    [ ] User login works
    [ ] Core business function (e.g., checkout, search)
    [ ] API endpoints responding
[ ] 00:40 - Check error rates (should be < 1%)

PHASE 4: BACKEND SERVICES (Target: 20 min)
[ ] 00:40 - Verify database connections (read + write)
[ ] 00:45 - Check background jobs (cron, queues)
[ ] 00:50 - Validate integrations (payment, email, analytics)
[ ] 00:55 - Review logs for errors/warnings
[ ] 01:00 - Confirm data replication is current

PHASE 5: MONITORING & ALERTS (Target: 10 min)
[ ] 01:00 - Verify monitoring dashboards show failover state
[ ] 01:05 - Test alert escalation (does PagerDuty/OpsGenie work?)
[ ] 01:10 - Check log aggregation (are logs flowing to Graylog/ELK?)

PHASE 6: ROLLBACK DECISION (Target: 10 min)
[ ] 01:10 - Document: Does failover meet SLA? Any critical issues?
[ ] 01:15 - Decision: Stay on failover OR rollback to primary
[ ] 01:20 - If rollback: reverse DNS changes, monitor traffic shift

PHASE 7: POST-DRILL (Target: 30 min)
[ ] 01:20 - Restore primary to active state (if rolled back)
[ ] 01:30 - Document what worked, what broke
[ ] 01:40 - Create issues for failures (assign owners, due dates)
[ ] 01:50 - Update runbook with lessons learned

End Time: [Timestamp]
Total Duration: [Minutes]
Success Criteria Met: [Yes/No]
🔗 Infoblok F: Component Chain Mapping
+

The Hidden Dependency Problem

Most organizations think: "User → App → Database" - simple, right?

Reality:

WHAT YOU THINK:
User → App Server → Database

WHAT IT ACTUALLY IS:
User → Cloudflare CDN (🔴 US)
    → Azure Front Door (🔴 US)
    → Azure AD Auth (🔴 US)
    → App Server (🟢 NL)
    → Azure SQL (🔴 US company, EU data)
    → SendGrid Email (🔴 US)
    → Datadog Logging (🔴 US)

7 components. 5 are US dependencies.
One geopolitical block = your business stops.

4-Step Mapping Process

Step 1: Pick a Critical Business Process

  • E-commerce checkout
  • SaaS user login
  • Document upload/download
  • Payment processing

Step 2: Trace the Request Path

Use these tools to see EVERY hop:

Browser DevTools Network Tab
# Chrome DevTools
1. Open DevTools (F12)
2. Network tab → Check "Preserve log"
3. Execute your business process (e.g., checkout)
4. Review Waterfall view → see every request

Look for:
- Domains called (check jurisdiction with WHOIS)
- Third-party scripts loaded
- API endpoints hit
- External services (auth, analytics, payments)
cURL Verbose Trace
# Trace API request
curl -v https://api.yourapp.com/checkout \
  -H "Authorization: Bearer TOKEN" \
  -d '{"cart_id": "123"}'

# Output shows indicators like:
# < Server: cloudflare (tells you it's behind Cloudflare)

# Now check jurisdiction:
whois 203.0.113.10

Step 3: Identify Jurisdiction Per Component

ComponentHow to Check JurisdictionRed Flag
CDNWHOIS on IP, check company HQCloudflare (US), Fastly (US)
DNSCheck DNS provider registrationRoute53 (US), Azure DNS (US)
AuthReview auth provider ToSOkta (US), Azure AD (US)
PaymentCheck processor HQStripe (US) ✓ Mollie (NL), Adyen (NL)
EmailProvider registrationSendGrid (US) ✓ EU SMTP/self-hosted
AnalyticsProviderGoogle Analytics (US) ✓ Matomo
LoggingToS / APM providerDatadog (US) ✓ Prometheus/Graylog

Step 4: Build Dependency Diagram

Component Chain Template
# E-Commerce Checkout Dependency Chain

Component         | Provider      | Jurisdiction | Failover Option
------------------|---------------|--------------|------------------
CDN               | Cloudflare    | 🔴 US        | BunnyCDN (🟢 EU)
Load Balancer     | Azure         | 🔴 US        | HAProxy self-hosted
Authentication    | Azure AD      | 🔴 US        | Keycloak (🟢 self-hosted)
Application       | Self-hosted   | 🟢 NL        | N/A
Database          | Azure SQL     | 🔴 US co.    | PostgreSQL @ Hetzner (🟢 DE)
Payment           | Stripe        | 🔴 US        | Mollie (🟢 NL) or Adyen (🟢 NL)
Email             | SendGrid      | 🔴 US        | Postfix self-hosted (🟢 NL)
Monitoring        | Datadog       | 🔴 US        | Prometheus (🟢 self-hosted)

PRIORITY: Migrate auth, payment, CDN first.

Automated Discovery Tools

Wireshark - Network Traffic Analysis
# Capture outbound HTTPS traffic
sudo tcpdump -i any -n 'tcp port 443' -w app-traffic.pcap

# Analyze with Wireshark or tshark
tshark -r app-traffic.pcap -T fields -e ip.dst -e dns.qry.name | sort | uniq

Quarterly Review Checklist

  • [ ] Re-run component chain mapping (vendors change, new services added)
  • [ ] Verify no new US dependencies introduced
  • [ ] Check vendor ToS updates
  • [ ] Test failover for each critical component
  • [ ] Update documentation with any changes
🛡️ Infoblok G: Zero Trust Network Design
+

Old Model vs Zero Trust

CASTLE & MOAT (Traditional):
     Firewall
        |
   [Trusted Network] ← Everyone inside = trusted
        |
   All Systems

ZERO TRUST:
Every request → Authenticate → Authorize → Encrypt
No implicit trust based on network location.

4 Core Principles

  • 1. Never Trust, Always Verify: Even internal requests require authentication
  • 2. Assume Breach: Design as if attacker is already inside
  • 3. Least Privilege Access: Grant minimum permissions needed
  • 4. Verify Explicitly: Check identity + device + location + time + behavior

Micro-Segmentation Implementation

iptables Network Segmentation
# Segment network into zones
# DMZ (10.0.1.0/24) → App (10.0.2.0/24) → Data (10.0.3.0/24)

iptables -A FORWARD -s 10.0.1.0/24 -d 10.0.2.0/24 -p tcp --dport 443 -j ACCEPT
iptables -A FORWARD -s 10.0.1.0/24 -d 10.0.3.0/24 -j DROP
iptables -A FORWARD -s 10.0.2.0/24 -d 10.0.3.0/24 -p tcp --dport 5432 -j ACCEPT
iptables -P FORWARD DROP

Service-to-Service Authentication (mTLS)

Nginx mTLS Configuration
# Generate certificates
openssl req -x509 -newkey rsa:4096 -keyout server-key.pem -out server-cert.pem -days 365 -nodes
openssl req -x509 -newkey rsa:4096 -keyout client-key.pem -out client-cert.pem -days 365 -nodes

# Nginx config
server {
    listen 443 ssl;
    ssl_certificate /etc/nginx/ssl/server-cert.pem;
    ssl_certificate_key /etc/nginx/ssl/server-key.pem;

    ssl_client_certificate /etc/nginx/ssl/client-cert.pem;
    ssl_verify_client on;

    location /api {
        if ($ssl_client_verify != SUCCESS) { return 403; }
        proxy_pass http://backend;
    }
}
📊 Infoblok H: Data Classification Matrix
+

Classification Process

Step 1: Inventory → Step 2: Classify → Step 3: Apply Controls → Step 4: Audit

Python PII Detection Script
import re
import psycopg2

conn = psycopg2.connect("dbname=mydb user=admin")
cur = conn.cursor()

patterns = {
    'email': r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}',
    'credit_card': r'\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b',
    'ssn': r'\b\d{3}-\d{2}-\d{4}\b',
    'phone': r'\b\d{3}[-.]?\d{3}[-.]?\d{4}\b'
}

cur.execute("""
    SELECT table_name, column_name
    FROM information_schema.columns
    WHERE data_type LIKE '%char%' OR data_type LIKE '%text%'
""")

for table, column in cur.fetchall():
    cur.execute(f"SELECT {column} FROM {table} LIMIT 100")
    for row in cur.fetchall():
        text = str(row[0])
        for pii_type, pattern in patterns.items():
            if re.search(pattern, text):
                print(f"⚠️  {pii_type.upper()} found in {table}.{column}")
                break

Labeling & Enforcement

PostgreSQL Classification Metadata
COMMENT ON COLUMN customers.email IS 'Classification: Confidential | GDPR: Yes | Encryption: Required';
COMMENT ON COLUMN customers.name IS 'Classification: Confidential | GDPR: Yes';
COMMENT ON COLUMN products.description IS 'Classification: Public';

SELECT table_name, column_name
FROM information_schema.columns
WHERE col_description(table_name::regclass, ordinal_position) LIKE '%Confidential%';
🔐 Infoblok I: Cryptographic Architecture
+

3 Encryption Patterns

Pattern 1: Client-Side Encryption

JavaScript Browser Encryption
// Encrypt in browser BEFORE sending to server
async function encryptData(plaintext, password) {
  const encoder = new TextEncoder();
  const data = encoder.encode(plaintext);

  const keyMaterial = await crypto.subtle.importKey(
    "raw", encoder.encode(password), "PBKDF2", false, ["deriveKey"]
  );
  const key = await crypto.subtle.deriveKey(
    { name: "PBKDF2", salt: encoder.encode("salt"), iterations: 100000, hash: "SHA-256" },
    keyMaterial, { name: "AES-GCM", length: 256 }, false, ["encrypt"]
  );

  const iv = crypto.getRandomValues(new Uint8Array(12));
  const ciphertext = await crypto.subtle.encrypt({ name: "AES-GCM", iv }, key, data);

  return { iv: Array.from(iv), data: Array.from(new Uint8Array(ciphertext)) };
}

Pattern 2: BYOK (Bring Your Own Key)

Azure BYOK Setup
az keyvault create --name MyNLKeyVault --resource-group MyRG --location westeurope
az keyvault key create --vault-name MyNLKeyVault --name MyEncryptionKey --protection software

az sql server tde-key set \
  --resource-group MyRG \
  --server myserver \
  --server-key-type AzureKeyVault \
  --kid https://MyNLKeyVault.vault.azure.net/keys/MyEncryptionKey

Pattern 3: Envelope Encryption

Python Envelope Encryption
from cryptography.fernet import Fernet
import requests

dek = Fernet.generate_key()
cipher = Fernet(dek)

data = b"Sensitive customer PII"
encrypted_data = cipher.encrypt(data)

response = requests.post('https://nl-hsm.yourcompany.com/encrypt', json={
  'plaintext': dek.decode(),
  'key_id': 'master-kek-001'
})
encrypted_dek = response.json()['ciphertext']

Key Management Best Practices

  • Key Hierarchy: Master KEK (5yr) → Domain Keys (1yr) → Data DEKs (per-file)
  • Rotation: Automate rotation before expiry. Test restore procedures.
  • Backup: Split-key custody (3 people, 2 required). Geographic distribution.
  • HSM Selection: On-prem or FIPS-certified HSM in NL
📝 Infoblok J: Architecture Decision Records
+

ADR Template

Markdown ADR Template
# ADR-023: Client-Side Encryption for Customer PII

**Status:** Accepted
**Date:** 2025-02-10
**Author:** JP van der Linden
**Reviewers:** Security Team, Legal Counsel

## Context
We store customer PII in a cloud database. Data may be in EU, but provider jurisdiction can still be US. We need demonstrable sovereignty.

## Decision
Implement envelope encryption with client-side key management:
- Encrypt PII in application before writing to DB
- Store keys in NL HSM
- DB sees only encrypted blobs
- Decryption requires HSM access (logged, rate-limited)

## Consequences
+ Strong sovereignty posture
- Operational complexity
- Some performance trade-offs

When to Write ADRs

  • Long-term architectural impact (> 1 year)
  • Hard to reverse decisions (migrations, lock-in)
  • Affects multiple teams or systems
  • Significant trade-offs (cost vs security vs performance)
  • Regulatory/compliance implications

ADR Lifecycle

Proposed → Under review
Accepted → Implemented (don’t edit; write a new ADR for changes)
Deprecated → No longer recommended but still in use
Superseded → Replaced by newer ADR (link it)