Swiss...
PCI DSS Compliance on Swiss Hosting: Payment Infrastructure Requirements
The Payment Card Industry Data Security Standard isn't optional if you process cards. Here's what your hosting infrastructure actually needs to pass an audit — and why Swiss jurisdiction adds meaningful protection.
November 25, 2026
by SwissLayer 24 min read
PCI DSS compliance infrastructure on Swiss hosting for payment processing

The Reality of PCI DSS Compliance

If your application touches payment card data — credit card numbers, CVVs, expiration dates, cardholder names — you're subject to PCI DSS. There's no opt-out. The Payment Card Industry Data Security Standard applies to every entity that stores, processes, or transmits cardholder data, regardless of size, transaction volume, or geography. A startup processing 100 transactions monthly faces the same fundamental requirements as an enterprise processing millions.

The standard exists because payment card fraud costs the industry billions annually, and the card brands (Visa, Mastercard, American Express, Discover, JCB) decided they'd rather impose security requirements than absorb those losses. PCI DSS compliance isn't about checking boxes for auditors — it's about building infrastructure that actually protects sensitive financial data from theft, misuse, and unauthorized access.

What makes PCI DSS challenging isn't any single requirement. It's that the standard touches every layer of your infrastructure: network architecture, system configuration, encryption, access controls, monitoring, vulnerability management, physical security, and policies. Your hosting environment forms the foundation for most of these controls. Get the infrastructure wrong, and compliance becomes exponentially harder — or impossible.

This guide covers what PCI DSS actually requires from your hosting infrastructure, how to architect a compliant environment on Swiss managed infrastructure, and why Swiss jurisdiction provides advantages beyond what the standard explicitly requires.

Understanding PCI DSS Scope and the CDE

Before diving into technical requirements, you need to understand scope. PCI DSS applies to the Cardholder Data Environment (CDE) — every system component that stores, processes, or transmits cardholder data, plus any system that could affect the security of those components. Scope creep is the most common reason compliance projects fail or become prohibitively expensive.

The CDE includes:

• Systems that directly handle cardholder data (payment processing servers, databases storing card numbers)
• Systems that provide security services to the CDE (firewalls, authentication servers, logging systems)
• Systems that can connect to CDE components (management workstations, monitoring servers)
• Network segments that contain or connect to the CDE

Scope reduction is your most important architectural decision. Every system in scope must meet all applicable PCI DSS requirements, be included in vulnerability scans, undergo penetration testing, and be documented in your compliance evidence. A poorly segmented environment where your entire infrastructure is in scope transforms a manageable compliance project into an enterprise-scale undertaking.

The strategic approach: minimize the CDE through network segmentation, tokenization, and outsourcing payment processing to PCI-compliant service providers. The less cardholder data you handle directly, the smaller your compliance burden.

PCI DSS 4.0: What Changed

PCI DSS 4.0, released in March 2022 with mandatory compliance by March 2025, represents the most significant update to the standard in years. The changes affect infrastructure requirements in several key areas:

Customized approach: Organizations can now implement alternative controls that meet the intent of requirements rather than following prescriptive technical specifications. This provides flexibility but requires demonstrating that your approach achieves equivalent security.

Enhanced authentication: Multi-factor authentication (MFA) is now required for all access to the CDE, not just remote access. This applies to administrators, developers, and any personnel with CDE access — including console access in data centers.

Targeted risk analysis: Many requirements now explicitly require documented risk analysis to determine control frequency, scope, or implementation details. Generic policies no longer suffice.

Encryption requirements: TLS 1.2 is the minimum acceptable version for transmitting cardholder data. TLS 1.0 and 1.1 are explicitly prohibited. Disk-level encryption alone no longer satisfies encryption-at-rest requirements for stored cardholder data — you need database-level or file-level encryption with proper key management.

Detection and response: New requirements for security monitoring, automated alerting on suspicious activity, and incident response procedures. You must detect and respond to security events, not just prevent them.

Network Segmentation Architecture

Network segmentation is technically not required by PCI DSS — you can put your entire network in scope. But practically, segmentation is essential. Without it, every server, workstation, and network device becomes subject to PCI DSS requirements, vulnerability scanning, and audit procedures.

Proper segmentation architecture:

# Conceptual network zones for PCI compliance

┌─────────────────────────────────────────────────────────────┐
│                     INTERNET                                 │
└─────────────────────────────────────────────────────────────┘
                            │
                    ┌───────▼───────┐
                    │   Edge FW     │  (DDoS protection, WAF)
                    └───────┬───────┘
                            │
┌───────────────────────────▼───────────────────────────────────┐
│                      DMZ ZONE                                  │
│  • Web servers (no cardholder data)                           │
│  • Load balancers                                              │
│  • Reverse proxies                                             │
│  • CDN origin servers                                          │
└───────────────────────────┬───────────────────────────────────┘
                            │
                    ┌───────▼───────┐
                    │  Internal FW  │  (Stateful inspection)
                    └───────┬───────┘
                            │
        ┌───────────────────┼───────────────────┐
        │                   │                   │
        ▼                   ▼                   ▼
┌───────────────┐  ┌────────────────┐  ┌───────────────────┐
│  APP ZONE     │  │   CDE ZONE     │  │  MANAGEMENT ZONE  │
│               │  │  (IN SCOPE)    │  │                   │
│ • App servers │  │ • Payment proc │  │ • Admin access    │
│ • API gateway │  │ • Card vault   │  │ • Monitoring      │
│ • Middleware  │  │ • Tokenization │  │ • Logging servers │
│               │  │ • Key mgmt     │  │ • Backup systems  │
└───────────────┘  └────────────────┘  └───────────────────┘
      │                    │                    │
      └────────────────────┼────────────────────┘
                           │
                   ┌───────▼───────┐
                   │   DB Zone FW  │
                   └───────┬───────┘
                           │
              ┌────────────▼────────────┐
              │      DATABASE ZONE      │
              │  • PostgreSQL primary   │
              │  • PostgreSQL replicas  │
              │  • Redis (non-card)     │
              └─────────────────────────┘

Firewall rules for CDE isolation:

# Example nftables rules for CDE segmentation
# /etc/nftables.conf on CDE zone firewall

table inet filter {
    chain input {
        type filter hook input priority 0; policy drop;
        
        # Allow established connections
        ct state established,related accept
        
        # Allow from management zone (specific IPs only)
        ip saddr 10.10.50.0/24 tcp dport 22 accept comment "SSH from mgmt"
        
        # Allow from app zone to payment API only
        ip saddr 10.10.20.0/24 tcp dport 8443 accept comment "Payment API"
        
        # Allow monitoring
        ip saddr 10.10.50.10 tcp dport 9100 accept comment "Node exporter"
        
        # Log and drop everything else
        log prefix "CDE-DENIED: " drop
    }
    
    chain output {
        type filter hook output priority 0; policy drop;
        
        # Allow established connections
        ct state established,related accept
        
        # Allow to database zone
        ip daddr 10.10.40.0/24 tcp dport 5432 accept comment "PostgreSQL"
        
        # Allow to HSM/key management
        ip daddr 10.10.60.5 tcp dport 9443 accept comment "Key mgmt"
        
        # Allow DNS and NTP
        udp dport { 53, 123 } accept
        
        # Allow outbound to payment processor (specific IPs)
        ip daddr { 203.0.113.10, 203.0.113.11 } tcp dport 443 accept
        
        # Log and drop
        log prefix "CDE-OUT-DENIED: " drop
    }
}

System Hardening Requirements

PCI DSS Requirement 2 mandates that you don't use vendor-supplied defaults and that systems are hardened according to industry standards. For Linux servers on Swiss dedicated servers, this means systematic configuration hardening.

CIS Benchmark compliance check:

# Install and run CIS-CAT assessment tool
# Download from CIS website (membership required for full features)

# Manual checks for critical PCI-relevant controls:

# 1. Verify no default passwords
grep -E '^[^:]+:[^!*]' /etc/shadow | grep -v root

# 2. Check SSH configuration
grep -E "^(PermitRootLogin|PasswordAuthentication|PermitEmptyPasswords|X11Forwarding)" /etc/ssh/sshd_config
# Expected output:
# PermitRootLogin no (or prohibit-password)
# PasswordAuthentication no
# PermitEmptyPasswords no
# X11Forwarding no

# 3. Verify unnecessary services disabled
systemctl list-unit-files --type=service --state=enabled | grep -E "(cups|avahi|bluetooth|rpcbind)"
# Should return nothing on hardened systems

# 4. Check file permissions on sensitive files
stat -c "%a %U %G %n" /etc/passwd /etc/shadow /etc/group /etc/gshadow
# /etc/passwd should be 644 root root
# /etc/shadow should be 640 root shadow (or 000 root root)

# 5. Verify audit daemon running
systemctl is-active auditd

# 6. Check for SUID/SGID binaries
find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -la {} \; 2>/dev/null | wc -l
# Document all results; each should be justified

Automated hardening with Ansible:

# roles/pci-hardening/tasks/main.yml
---
- name: Disable unnecessary services
  service:
    name: "{{ item }}"
    state: stopped
    enabled: no
  loop:
    - cups
    - avahi-daemon
    - bluetooth
    - rpcbind
  failed_when: false

- name: Configure SSH hardening
  template:
    src: sshd_config.j2
    dest: /etc/ssh/sshd_config
    owner: root
    group: root
    mode: '0600'
    validate: 'sshd -t -f %s'
  notify: restart sshd

- name: Set password policies
  lineinfile:
    path: /etc/login.defs
    regexp: "{{ item.regexp }}"
    line: "{{ item.line }}"
  loop:
    - { regexp: '^PASS_MAX_DAYS', line: 'PASS_MAX_DAYS 90' }
    - { regexp: '^PASS_MIN_DAYS', line: 'PASS_MIN_DAYS 1' }
    - { regexp: '^PASS_MIN_LEN', line: 'PASS_MIN_LEN 12' }
    - { regexp: '^PASS_WARN_AGE', line: 'PASS_WARN_AGE 14' }

- name: Configure audit rules for PCI DSS
  template:
    src: pci-audit.rules.j2
    dest: /etc/audit/rules.d/pci.rules
    owner: root
    mode: '0600'
  notify: restart auditd

- name: Set secure permissions on sensitive files
  file:
    path: "{{ item.path }}"
    owner: "{{ item.owner }}"
    group: "{{ item.group }}"
    mode: "{{ item.mode }}"
  loop:
    - { path: '/etc/shadow', owner: 'root', group: 'shadow', mode: '0640' }
    - { path: '/etc/gshadow', owner: 'root', group: 'shadow', mode: '0640' }
    - { path: '/boot/grub/grub.cfg', owner: 'root', group: 'root', mode: '0400' }

Encryption Requirements

PCI DSS requires encryption of cardholder data in transit (Requirement 4) and protection of stored cardholder data (Requirement 3). The 4.0 standard strengthens both requirements significantly.

Encryption in transit:

# Nginx TLS configuration for PCI DSS 4.0 compliance
# /etc/nginx/conf.d/ssl.conf

ssl_protocols TLSv1.2 TLSv1.3;  # TLS 1.0 and 1.1 prohibited

# Strong cipher suites only
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305;
ssl_prefer_server_ciphers on;

# HSTS (required for PCI DSS)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;

# Session configuration
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;

# OCSP stapling
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;

# Certificate configuration
ssl_certificate /etc/letsencrypt/live/payment.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/payment.example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/payment.example.com/chain.pem;

Database encryption for stored cardholder data:

# PostgreSQL Transparent Data Encryption with pgcrypto
# Note: Disk encryption alone is NOT sufficient for PCI DSS 4.0

-- Enable pgcrypto extension
CREATE EXTENSION IF NOT EXISTS pgcrypto;

-- Create encrypted storage for cardholder data
-- Primary Account Number (PAN) must be rendered unreadable
CREATE TABLE card_vault (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    token UUID UNIQUE NOT NULL DEFAULT gen_random_uuid(),  -- Use this in app
    encrypted_pan BYTEA NOT NULL,  -- AES-256 encrypted
    pan_last4 CHAR(4) NOT NULL,    -- Display only
    expiry_month_encrypted BYTEA,
    expiry_year_encrypted BYTEA,
    created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
    created_by VARCHAR(100) NOT NULL,
    -- Never store CVV/CVC - prohibited by PCI DSS
    CONSTRAINT pan_last4_format CHECK (pan_last4 ~ '^\d{4}$')
);

-- Function to encrypt PAN (key management handled externally)
CREATE OR REPLACE FUNCTION encrypt_pan(
    plain_pan TEXT,
    encryption_key BYTEA
) RETURNS BYTEA AS $$
BEGIN
    -- Validate PAN format before encryption
    IF NOT plain_pan ~ '^\d{13,19}$' THEN
        RAISE EXCEPTION 'Invalid PAN format';
    END IF;
    
    RETURN pgp_sym_encrypt(
        plain_pan,
        encode(encryption_key, 'base64'),
        'cipher-algo=aes256, compress-algo=0'
    );
END;
$$ LANGUAGE plpgsql SECURITY DEFINER;

-- Function to decrypt (requires explicit key)
CREATE OR REPLACE FUNCTION decrypt_pan(
    encrypted_pan BYTEA,
    encryption_key BYTEA
) RETURNS TEXT AS $$
BEGIN
    RETURN pgp_sym_decrypt(
        encrypted_pan,
        encode(encryption_key, 'base64')
    );
END;
$$ LANGUAGE plpgsql SECURITY DEFINER;

-- Restrict access to vault table
REVOKE ALL ON card_vault FROM PUBLIC;
GRANT SELECT (id, token, pan_last4, created_at) ON card_vault TO app_readonly;
GRANT INSERT ON card_vault TO payment_processor;
-- Only key custodians can decrypt

Key management requirements:

PCI DSS Requirement 3.6 mandates formal key management procedures including:
• Key generation using cryptographically strong random number generators
• Secure key storage (HSM for production environments)
• Key distribution only to authorized custodians
• Cryptoperiod limits (annual key rotation recommended)
• Key destruction procedures when keys expire or are compromised
• Split knowledge and dual control for key operations

# HashiCorp Vault configuration for PCI-compliant key management
# /etc/vault.d/vault.hcl

storage "raft" {
  path = "/opt/vault/data"
  node_id = "vault-01"
}

listener "tcp" {
  address       = "10.10.60.5:8200"
  tls_cert_file = "/opt/vault/tls/vault.crt"
  tls_key_file  = "/opt/vault/tls/vault.key"
  tls_min_version = "tls12"
}

seal "pkcs11" {
  # Use HSM for auto-unseal (PCI requirement for key protection)
  lib = "/usr/lib/softhsm/libsofthsm2.so"
  slot = "0"
  pin = "env:HSM_PIN"
  key_label = "vault-autounseal"
  hmac_key_label = "vault-hmac"
}

api_addr = "https://10.10.60.5:8200"
cluster_addr = "https://10.10.60.5:8201"

# Audit logging (PCI requirement)
audit {
  type = "file"
  options = {
    path = "/var/log/vault/audit.log"
    log_raw = "false"
  }
}

Access Control Implementation

PCI DSS Requirements 7 and 8 mandate strict access controls: need-to-know basis for data access, unique user IDs, and multi-factor authentication for CDE access.

Role-based access control:

# PostgreSQL RBAC for PCI compliance
-- Create roles with minimal privileges

-- Read-only application role (most queries)
CREATE ROLE app_readonly;
GRANT CONNECT ON DATABASE payments TO app_readonly;
GRANT USAGE ON SCHEMA public TO app_readonly;
GRANT SELECT ON transactions, customers, orders TO app_readonly;
-- No access to card_vault except token and last4

-- Payment processing role
CREATE ROLE payment_processor;
GRANT CONNECT ON DATABASE payments TO payment_processor;
GRANT USAGE ON SCHEMA public TO payment_processor;
GRANT INSERT ON card_vault TO payment_processor;
GRANT INSERT ON transactions TO payment_processor;
GRANT SELECT ON card_vault (token, pan_last4) TO payment_processor;
-- Cannot read encrypted PAN

-- Key custodian role (highly restricted, requires approval)
CREATE ROLE key_custodian;
GRANT CONNECT ON DATABASE payments TO key_custodian;
GRANT USAGE ON SCHEMA public TO key_custodian;
GRANT EXECUTE ON FUNCTION decrypt_pan TO key_custodian;
-- Subject to dual control procedures

-- Create individual users (never shared accounts)
CREATE USER payment_app_01 WITH PASSWORD 'generated_password' IN ROLE payment_processor;
CREATE USER analyst_jsmith WITH PASSWORD 'generated_password' IN ROLE app_readonly;

-- Enable connection logging
ALTER SYSTEM SET log_connections = 'on';
ALTER SYSTEM SET log_disconnections = 'on';

MFA enforcement for CDE access:

# PAM configuration for SSH with MFA
# /etc/pam.d/sshd (CDE servers only)

# Standard authentication
auth required pam_sepermit.so
auth substack password-auth

# Google Authenticator MFA (required for PCI DSS 4.0)
auth required pam_google_authenticator.so nullok secret=/home/${USER}/.google_authenticator

# Account management
account required pam_nologin.so
account include password-auth

# Session management
session required pam_loginuid.so
session include password-auth

# SSH configuration to require MFA
# /etc/ssh/sshd_config
AuthenticationMethods publickey,keyboard-interactive
ChallengeResponseAuthentication yes
UsePAM yes

# Google Authenticator setup per user
google-authenticator -t -d -f -r 3 -R 30 -w 3 -Q UTF8

Logging and Monitoring Requirements

PCI DSS Requirement 10 mandates comprehensive logging and monitoring. For 4.0 compliance, you need automated alerting on suspicious activity, not just log retention.

Audit logging configuration:

# Linux audit rules for PCI DSS
# /etc/audit/rules.d/pci.rules

# Delete all existing rules
-D

# Set buffer size
-b 8192

# Failure mode (1 = printk, 2 = panic)
-f 1

# Monitor authentication events
-w /etc/passwd -p wa -k identity
-w /etc/shadow -p wa -k identity
-w /etc/group -p wa -k identity
-w /etc/gshadow -p wa -k identity
-w /etc/security/opasswd -p wa -k identity

# Monitor sudo usage
-w /etc/sudoers -p wa -k sudoers
-w /etc/sudoers.d/ -p wa -k sudoers
-a always,exit -F arch=b64 -S execve -F euid=0 -k privileged

# Monitor SSH configuration
-w /etc/ssh/sshd_config -p wa -k sshd

# Monitor login/logout events
-w /var/log/lastlog -p wa -k logins
-w /var/log/faillog -p wa -k logins
-w /var/log/tallylog -p wa -k logins

# Monitor time changes (PCI requirement)
-a always,exit -F arch=b64 -S adjtimex -S settimeofday -k time-change
-a always,exit -F arch=b64 -S clock_settime -k time-change
-w /etc/localtime -p wa -k time-change

# Monitor network configuration changes
-a always,exit -F arch=b64 -S sethostname -S setdomainname -k system-locale
-w /etc/hosts -p wa -k system-locale
-w /etc/network/ -p wa -k system-locale

# Monitor firewall changes
-w /etc/nftables.conf -p wa -k firewall
-w /etc/iptables/ -p wa -k firewall

# Monitor CDE application directories
-w /opt/payment-app/bin/ -p wa -k cde-apps
-w /opt/payment-app/config/ -p wa -k cde-config

# Make rules immutable until reboot
-e 2

Centralized log aggregation:

# rsyslog configuration for forwarding to central SIEM
# /etc/rsyslog.d/50-pci-forwarding.conf

# Load TLS module
module(load="omrelp")

# TLS configuration
global(
    DefaultNetstreamDriver="gtls"
    DefaultNetstreamDriverCAFile="/etc/rsyslog/ca.pem"
    DefaultNetstreamDriverCertFile="/etc/rsyslog/client-cert.pem"
    DefaultNetstreamDriverKeyFile="/etc/rsyslog/client-key.pem"
)

# Forward all security-relevant logs
*.* action(
    type="omrelp"
    target="siem.internal.example.com"
    port="2514"
    tls="on"
    tls.caCert="/etc/rsyslog/ca.pem"
    tls.myCert="/etc/rsyslog/client-cert.pem"
    tls.myPrivKey="/etc/rsyslog/client-key.pem"
    tls.authMode="x509/name"
    tls.permittedPeer="siem.internal.example.com"
    queue.type="LinkedList"
    queue.size="10000"
    queue.filename="pci_fwd"
    queue.saveOnShutdown="on"
    action.resumeRetryCount="-1"
)

# Local retention (minimum 90 days per PCI DSS, 1 year recommended)
*.* action(
    type="omfile"
    file="/var/log/pci/all.log"
    rotation.interval="day"
    rotation.keepdays="365"
)

Automated alerting:

# Prometheus alerting rules for PCI compliance
# /etc/prometheus/rules/pci_alerts.yml

groups:
  - name: pci_dss_alerts
    rules:
      - alert: MultipleFailedLogins
        expr: increase(pam_auth_failures_total{host=~"cde-.*"}[5m]) > 5
        for: 1m
        labels:
          severity: critical
          pci_requirement: "10.6.1"
        annotations:
          summary: "Multiple failed logins on CDE system"
          description: "{{ $labels.host }} has {{ $value }} failed logins in 5 minutes"
      
      - alert: RootLoginDetected
        expr: increase(sshd_root_login_total{host=~"cde-.*"}[1m]) > 0
        labels:
          severity: critical
          pci_requirement: "10.2.2"
        annotations:
          summary: "Root login detected on CDE system"
          description: "Direct root login on {{ $labels.host }}"
      
      - alert: FirewallRuleChanged
        expr: increase(auditd_firewall_changes_total[5m]) > 0
        labels:
          severity: warning
          pci_requirement: "10.2.6"
        annotations:
          summary: "Firewall configuration changed"
          description: "Firewall rules modified on {{ $labels.host }}"
      
      - alert: AuditdNotRunning
        expr: up{job="auditd"} == 0
        for: 1m
        labels:
          severity: critical
          pci_requirement: "10.5.5"
        annotations:
          summary: "Audit daemon not running"
          description: "auditd is down on {{ $labels.host }}"
      
      - alert: UnauthorizedCDEAccess
        expr: increase(cde_access_denied_total[5m]) > 0
        labels:
          severity: warning
          pci_requirement: "10.2.4"
        annotations:
          summary: "Unauthorized CDE access attempt"
          description: "Access denied to CDE from {{ $labels.source_ip }}"

Vulnerability Management

PCI DSS Requirements 5 and 6 mandate anti-malware, vulnerability scanning, and secure development practices. For infrastructure, the focus is on vulnerability identification and remediation.

Internal vulnerability scanning:

# OpenVAS/GVM configuration for PCI ASV-style scanning
# Schedule weekly authenticated scans of CDE systems

# Install GVM on dedicated scanning server (not in CDE)
apt install gvm
gvm-setup

# Create scan configuration for PCI
# Target: All CDE systems
# Schedule: Weekly (minimum quarterly required, weekly recommended)
# Credentials: SSH key-based for authenticated scanning

# Example using gvm-cli
gvm-cli tls --hostname scanner.example.com --xml '
  CDE-Weekly-Scan
  10.10.30.0/24
  
'

# Results must be remediated within:
# - Critical/High: 30 days
# - Medium: 90 days
# - Low: Next scheduled maintenance window

# Track remediation in ticketing system
# Document all exceptions with compensating controls

Automated patching:

# Unattended security updates for CDE systems
# /etc/apt/apt.conf.d/50unattended-upgrades

Unattended-Upgrade::Allowed-Origins {
    "${distro_id}:${distro_codename}-security";
};

Unattended-Upgrade::Package-Blacklist {
    // Don't auto-update kernel - requires planned maintenance
    "linux-";
    // Don't auto-update database - requires coordination
    "postgresql-";
};

Unattended-Upgrade::AutoFixInterruptedDpkg "true";
Unattended-Upgrade::MinimalSteps "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Automatic-Reboot "false";

// Email notification of updates
Unattended-Upgrade::Mail "security@example.com";
Unattended-Upgrade::MailReport "only-on-error";

// Log to syslog for audit trail
Unattended-Upgrade::SyslogEnable "true";
Unattended-Upgrade::SyslogFacility "daemon";

Why Swiss Jurisdiction Matters for Payment Infrastructure

PCI DSS is jurisdiction-agnostic — it applies regardless of where you host. But the choice of hosting jurisdiction significantly affects your overall security posture and legal exposure, especially for payment infrastructure.

Swiss legal framework advantages:

• No foreign surveillance backdoors: Switzerland is not a member of Five Eyes, Nine Eyes, or Fourteen Eyes intelligence-sharing alliances. No legal mechanism forces Swiss hosting providers to install surveillance capabilities or provide bulk data access to foreign intelligence agencies.

• MLAT requirements: Foreign law enforcement requesting cardholder data from Swiss servers must go through Mutual Legal Assistance Treaty procedures — a formal diplomatic process requiring demonstration of probable cause and dual criminality (the alleged offense must be a crime in Switzerland too).

• Swiss FADP protection: The Federal Act on Data Protection provides strong baseline privacy protections that complement PCI DSS technical requirements. Personal data (including cardholder data) has explicit legal protection against unauthorized disclosure.

• Banking secrecy tradition: While not directly applicable to card data, Switzerland's culture of financial privacy means hosting providers understand the sensitivity of payment infrastructure and take confidentiality seriously.

Practical benefits for PCI compliance:

• Swiss managed infrastructure providers typically offer physical security certifications (ISO 27001, SOC 2 Type II) that satisfy PCI DSS physical security requirements

• Network infrastructure designed for financial services — low latency to European payment processors, redundant connectivity, DDoS protection included

• Data residency clarity — your cardholder data stays in Switzerland, simplifying scope documentation and audit responses

• EU adequacy decision — Swiss hosting satisfies GDPR requirements for EU customer data, relevant for companies operating in both markets

Tokenization and Scope Reduction

The most effective way to simplify PCI compliance is to minimize cardholder data in your environment. Tokenization replaces sensitive card data with non-sensitive tokens that can be used for transactions without exposing actual card numbers.

# Tokenization architecture
# Card data flows to PCI-certified token provider, never touches your servers

┌─────────────┐    Card data    ┌────────────────┐
│   Browser   │ ───────────────▶│ Token Provider │
│             │                 │  (PCI Level 1) │
│             │◀─────────────── │                │
└─────────────┘    Token        └───────┬────────┘
      │                                 │
      │ Token                           │ Token mapping
      ▼                                 ▼
┌─────────────┐                 ┌───────────────┐
│ Your Server │ ───────────────▶│ Your Database │
│  (OUT OF    │    Token only   │   (OUT OF     │
│   SCOPE)    │                 │    SCOPE)     │
└─────────────┘                 └───────────────┘
      │
      │ Token
      ▼
┌─────────────┐    Token → Card    ┌───────────────┐
│  Payment    │ ──────────────────▶│    Payment    │
│  Request    │                    │   Processor   │
└─────────────┘                    └───────────────┘

Implementation with Stripe/payment processor tokenization:

# Backend never handles raw card data
# payment_handler.py

from stripe import PaymentIntent, PaymentMethod

class PaymentService:
    """
    PCI-compliant payment processing using Stripe tokenization.
    Raw card data never touches our servers.
    """
    
    def process_payment(self, token: str, amount_cents: int, customer_id: str) -> dict:
        """
        Process payment using pre-tokenized payment method.
        
        Args:
            token: Stripe PaymentMethod ID (created client-side via Stripe.js)
            amount_cents: Payment amount in cents
            customer_id: Our internal customer identifier
            
        Returns:
            Payment result with transaction ID
        """
        # Token was created by Stripe.js in browser
        # Card data went directly to Stripe, never to our servers
        
        try:
            intent = PaymentIntent.create(
                amount=amount_cents,
                currency='chf',
                payment_method=token,
                confirm=True,
                metadata={
                    'customer_id': customer_id,
                    'source': 'web_checkout'
                }
            )
            
            # Log transaction (token only, never card data)
            self._log_transaction(
                transaction_id=intent.id,
                customer_id=customer_id,
                amount=amount_cents,
                status=intent.status,
                last4=intent.payment_method.card.last4  # Safe to store
            )
            
            return {
                'success': intent.status == 'succeeded',
                'transaction_id': intent.id,
                'amount': amount_cents
            }
            
        except Exception as e:
            self._log_error(customer_id, str(e))
            raise

Self-Assessment vs QSA Audit

Your compliance validation method depends on transaction volume and processor requirements:

Merchant levels (Visa definitions):

• Level 1: >6 million transactions/year → Requires onsite QSA audit
• Level 2: 1-6 million transactions/year → SAQ or QSA audit (depends on processor)
• Level 3: 20,000-1 million e-commerce transactions/year → SAQ
• Level 4: <20,000 e-commerce or <1 million total/year → SAQ

Service providers:

• Level 1: >300,000 transactions/year → Onsite QSA audit
• Level 2: <300,000 transactions/year → SAQ-D or QSA audit

SAQ types (most relevant for merchants):

• SAQ A: Card-not-present, fully outsourced (easiest — 22 questions)
• SAQ A-EP: E-commerce with website but no card data handling (79 questions)
• SAQ B: Imprint or standalone dial-out terminals only
• SAQ C: Payment application connected to internet but no electronic storage
• SAQ C-VT: Web-based virtual terminal only
• SAQ D: Everyone else — full self-assessment (329 questions for merchants)

Using tokenization with a PCI-certified provider can reduce your SAQ from D (full assessment) to A-EP or even A, dramatically simplifying compliance.

Documentation Requirements

PCI DSS requires extensive documentation that auditors (or self-assessment) will verify. Maintain these documents for your Swiss hosting environment:

Required documentation:

• Network diagram showing CDE boundaries, segmentation controls, and all data flows
• Data flow diagram showing where cardholder data is received, transmitted, and stored
• Inventory of all system components in scope
• Firewall and router rule sets with business justification for each rule
• Evidence of quarterly vulnerability scans (ASV scans for external, internal scans for in-scope systems)
• Penetration testing reports (annual minimum, after significant changes)
• Configuration standards for all system types (servers, databases, network devices)
• Change management procedures and evidence of implementation
• User access reviews (quarterly for privileged accounts)
• Security awareness training records
• Incident response plan and evidence of annual testing
• Key management procedures (generation, distribution, rotation, destruction)
• Service provider compliance documentation (AOCs from all third-party providers)

Common Compliance Failures

Based on QSA audit findings and breach investigations, these are the most common PCI DSS failures:

Technical failures:

• Storing CVV/CVC after authorization (explicitly prohibited, yet commonly found)
• Using outdated TLS versions (1.0, 1.1) for cardholder data transmission
• Missing network segmentation between CDE and corporate networks
• Default credentials on network devices, databases, or applications
• Incomplete logging — missing user identification, timestamp, or action details
• Encryption keys stored alongside encrypted data

Process failures:

• Shared user accounts (every user must have unique credentials)
• Missing quarterly user access reviews
• No documented change management process
• Security policies not reviewed annually
• Incident response plan never tested
• Third-party compliance not verified (AOCs not collected from service providers)

Scope definition failures:

• Underestimating scope (connected systems, network segments)
• Not recognizing cardholder data in unexpected places (logs, debug files, backups)
• Third-party service providers not included in scope analysis
• Flat networks where everything is technically in scope

Building a Compliant Environment: Implementation Checklist

For organizations building payment infrastructure on Swiss managed infrastructure, follow this implementation sequence:

Phase 1: Scope definition (Week 1-2)

• Document all cardholder data flows (where data enters, moves, and rests)
• Identify all systems that touch cardholder data
• Identify systems connected to cardholder data systems
• Evaluate tokenization/outsourcing options to reduce scope
• Create network diagram showing proposed CDE boundaries

Phase 2: Network architecture (Week 3-4)

• Implement network segmentation (VLANs, firewalls)
• Configure firewall rules (deny-by-default, explicit allow rules)
• Implement jump host for CDE administrative access
• Configure logging and forwarding to central SIEM
• Validate segmentation with penetration testing

Phase 3: System hardening (Week 5-6)

• Apply CIS benchmarks to all in-scope systems
• Configure audit logging per PCI requirements
• Implement MFA for all CDE access
• Remove unnecessary services, protocols, and accounts
• Configure automatic security patching

Phase 4: Encryption and key management (Week 7-8)

• Implement TLS 1.2+ for all cardholder data transmission
• Deploy encryption for stored cardholder data
• Implement key management solution (HSM for production)
• Document key management procedures
• Test encryption implementation

Phase 5: Monitoring and detection (Week 9-10)

• Deploy intrusion detection system
• Configure alerting rules for security events
• Implement file integrity monitoring
• Set up vulnerability scanning schedule
• Create incident response procedures

Phase 6: Documentation and validation (Week 11-12)

• Complete all required documentation
• Conduct internal assessment against PCI DSS requirements
• Remediate any gaps identified
• Schedule ASV scan for external validation
• Prepare for SAQ or QSA engagement

Conclusion

PCI DSS compliance isn't a one-time project — it's an ongoing operational requirement. The standard will evolve, your infrastructure will change, and threats will adapt. Building compliance into your infrastructure from the start is far easier than retrofitting security controls onto existing systems.

For payment infrastructure, Swiss hosting provides meaningful advantages beyond the technical requirements. The legal framework, physical security, and privacy culture create an environment where compliance is supported rather than undermined by jurisdiction. Combined with managed Swiss infrastructure that handles physical security, network protection, and baseline monitoring, you can focus on application-level security controls rather than rebuilding infrastructure from scratch.

The key to sustainable compliance: minimize scope through tokenization and outsourcing, implement strong segmentation for systems that must handle cardholder data, and automate as much monitoring and patching as possible. Manual processes fail. Automated controls scale.

Start with scope reduction. The less cardholder data you handle, the simpler everything becomes.