docs: archive entra materials and simplify deployment docs

This commit is contained in:
defiQUG
2026-04-18 12:05:55 -07:00
parent 0f600e6a31
commit bbb6ce6a6c
256 changed files with 4188 additions and 3881 deletions
@@ -1,365 +0,0 @@
# Cloud for Sovereignty Landing Zone Architecture
**Last Updated**: 2025-01-27
**Management Group**: SOVEREIGN-ORDER-OF-HOSPITALLERS
**Framework**: Azure Well-Architected Framework + Cloud for Sovereignty
**Status**: Planning Phase
## Executive Summary
This document outlines a comprehensive Cloud for Sovereignty landing zone architecture for The Order, designed using Azure Well-Architected Framework principles. The architecture spans all non-US Azure commercial regions to ensure data sovereignty, compliance, and operational resilience.
## Management Group Hierarchy
```
SOVEREIGN-ORDER-OF-HOSPITALLERS (Root)
├── Landing Zones
│ ├── Platform (Platform team managed)
│ ├── Sandbox (Development/testing)
│ └── Workloads (Application workloads)
├── Management
│ ├── Identity (Identity and access management)
│ ├── Security (Security operations)
│ └── Monitoring (Centralized monitoring)
└── Connectivity
├── Hub Networks (Regional hubs)
└── Spoke Networks (Workload networks)
```
## Well-Architected Framework Pillars
### 1. Cost Optimization
**Principles:**
- Right-sizing resources per region
- Reserved instances for predictable workloads
- Spot instances for non-critical workloads
- Cost allocation tags for chargeback
- Budget alerts and governance
**Implementation:**
- Cost Management budgets per management group
- Azure Advisor recommendations
- Resource tagging strategy
- Reserved capacity planning
### 2. Operational Excellence
**Principles:**
- Infrastructure as Code (Terraform)
- Automated deployments (GitHub Actions)
- Centralized logging and monitoring
- Runbooks and playbooks
- Change management processes
**Implementation:**
- Terraform modules for repeatable deployments
- CI/CD pipelines for infrastructure
- Azure Monitor and Log Analytics
- Azure Automation for runbooks
### 3. Performance Efficiency
**Principles:**
- Regional proximity for low latency
- CDN for global content delivery
- Auto-scaling for dynamic workloads
- Performance monitoring and optimization
- Database query optimization
**Implementation:**
- Multi-region deployment
- Azure Front Door for global routing
- Azure CDN for static assets
- Application Insights for performance tracking
### 4. Reliability
**Principles:**
- Multi-region redundancy
- Availability Zones within regions
- Automated failover
- Disaster recovery procedures
- Health monitoring and alerting
**Implementation:**
- Primary and secondary regions
- Geo-replication for storage
- Traffic Manager for DNS failover
- RTO: 4 hours, RPO: 1 hour
### 5. Security
**Principles:**
- Zero-trust architecture
- Defense in depth
- Data encryption at rest and in transit
- Identity and access management
- Security monitoring and threat detection
**Implementation:**
- Azure AD for identity
- Key Vault for secrets management
- Network Security Groups and Azure Firewall
- Microsoft Defender for Cloud
- Azure Sentinel for SIEM
## Cloud for Sovereignty Requirements
### Data Residency
- **Requirement**: All data must remain within specified regions
- **Implementation**:
- Resource location policies
- Storage account geo-replication controls
- Database replication restrictions
### Data Protection
- **Requirement**: Encryption and access controls
- **Implementation**:
- Customer-managed keys (CMK)
- Azure Key Vault with HSM
- Private endpoints for services
### Compliance
- **Requirement**: GDPR, eIDAS, and regional compliance
- **Implementation**:
- Compliance policies and initiatives
- Audit logging and retention
- Data classification and labeling
### Operational Control
- **Requirement**: Sovereign operations and control
- **Implementation**:
- Management group hierarchy
- Policy-based governance
- Role-based access control (RBAC)
## Regional Architecture
### Supported Regions (Non-US Commercial)
1. **West Europe** (Netherlands) - Primary
2. **North Europe** (Ireland) - Secondary
3. **UK South** (London) - UK workloads
4. **Switzerland North** (Zurich) - Swiss workloads
5. **Norway East** (Oslo) - Nordic workloads
6. **France Central** (Paris) - French workloads
7. **Germany West Central** (Frankfurt) - German workloads
### Regional Deployment Pattern
Each region follows the same pattern:
```
Region
├── Hub Network (VNet)
│ ├── Gateway Subnet (VPN/ExpressRoute)
│ ├── Azure Firewall Subnet
│ └── Management Subnet
├── Spoke Networks (Workloads)
│ ├── Application Subnet
│ ├── Database Subnet
│ └── Storage Subnet
├── Key Vault (Regional)
├── Storage Account (Regional)
├── Database (Regional)
└── AKS Cluster (Regional)
```
## Landing Zone Components
### 1. Identity and Access Management
- **Azure AD Tenant**: Single tenant per sovereignty requirement
- **Management Groups**: Hierarchical organization
- **RBAC**: Role-based access control
- **Conditional Access**: Location-based policies
- **Privileged Identity Management**: Just-in-time access
### 2. Network Architecture
- **Hub-and-Spoke**: Centralized connectivity
- **Azure Firewall**: Centralized security
- **Private Endpoints**: Secure service access
- **VPN/ExpressRoute**: Hybrid connectivity
- **Network Watcher**: Monitoring and diagnostics
### 3. Security and Compliance
- **Microsoft Defender for Cloud**: Security posture management
- **Azure Sentinel**: SIEM and SOAR
- **Key Vault**: Secrets and certificate management
- **Azure Policy**: Governance and compliance
- **Azure Blueprints**: Standardized deployments
### 4. Monitoring and Logging
- **Log Analytics Workspaces**: Regional workspaces
- **Application Insights**: Application monitoring
- **Azure Monitor**: Infrastructure monitoring
- **Azure Service Health**: Service status
- **Azure Advisor**: Best practice recommendations
### 5. Backup and Disaster Recovery
- **Azure Backup**: Centralized backup
- **Azure Site Recovery**: DR orchestration
- **Geo-replication**: Cross-region replication
- **Backup Vault**: Regional backup storage
### 6. Governance
- **Azure Policy**: Resource compliance
- **Azure Blueprints**: Standardized environments
- **Cost Management**: Budget and cost tracking
- **Resource Tags**: Organization and chargeback
- **Management Groups**: Hierarchical governance
## Resource Organization
### Naming Convention
```
{provider}-{region}-{resource}-{env}-{purpose}
Examples:
- az-we-rg-dev-main (Resource Group)
- azwesadevdata (Storage Account)
- az-we-kv-dev-main (Key Vault)
- az-we-aks-dev-main (AKS Cluster)
```
### Tagging Strategy
Required tags for all resources:
- `Environment`: dev, stage, prod
- `Project`: the-order
- `Region`: westeurope, northeurope, etc.
- `ManagedBy`: terraform
- `CostCenter`: engineering
- `Owner`: platform-team
- `DataClassification`: public, internal, confidential, restricted
- `Compliance`: gdpr, eidas, regional
## Deployment Strategy
### Phase 1: Foundation (Weeks 1-2)
- Management group hierarchy
- Identity and access management
- Core networking (hub networks)
- Key Vault setup
- Log Analytics workspaces
### Phase 2: Regional Deployment (Weeks 3-6)
- Deploy to primary region (West Europe)
- Deploy to secondary region (North Europe)
- Set up geo-replication
- Configure monitoring
### Phase 3: Multi-Region Expansion (Weeks 7-10)
- Deploy to remaining regions
- Configure regional failover
- Set up CDN endpoints
- Implement traffic routing
### Phase 4: Workload Migration (Weeks 11-14)
- Migrate applications
- Configure application networking
- Set up application monitoring
- Performance optimization
### Phase 5: Optimization (Weeks 15-16)
- Cost optimization
- Performance tuning
- Security hardening
- Documentation and runbooks
## Cost Estimation
### Per Region (Monthly)
- **Networking**: $500-1,000
- **Compute (AKS)**: $1,000-3,000
- **Storage**: $200-500
- **Database**: $500-2,000
- **Monitoring**: $200-500
- **Security**: $300-800
- **Backup**: $100-300
**Total per region**: $2,800-8,100/month
### Multi-Region (7 regions)
- **Development**: ~$20,000/month
- **Production**: ~$50,000/month
## Security Considerations
### Data Sovereignty
- All data stored within specified regions
- No cross-region data transfer without encryption
- Customer-managed keys for encryption
- Private endpoints for all services
### Access Control
- Zero-trust network architecture
- Conditional access policies
- Multi-factor authentication
- Just-in-time access
- Privileged access management
### Compliance
- GDPR compliance
- eIDAS compliance
- Regional data protection laws
- Audit logging (90 days retention)
- Data classification and handling
## Monitoring and Alerting
### Key Metrics
- Resource health
- Cost trends
- Security alerts
- Performance metrics
- Compliance status
### Alert Channels
- Email notifications
- Azure Monitor alerts
- Microsoft Teams integration
- PagerDuty (for critical alerts)
## Disaster Recovery
### RTO/RPO Targets
- **RTO**: 4 hours
- **RPO**: 1 hour
### DR Strategy
- Primary region: West Europe
- Secondary region: North Europe
- Backup regions: Other regional hubs
- Automated failover for critical services
- Manual failover for non-critical services
## Next Steps
1. **Review and Approve Architecture**
2. **Set Up Management Group Hierarchy**
3. **Deploy Foundation Infrastructure**
4. **Configure Regional Networks**
5. **Deploy Regional Resources**
6. **Set Up Monitoring and Alerting**
7. **Implement Security Controls**
8. **Migrate Workloads**
9. **Optimize and Tune**
---
**Last Updated**: 2025-01-27
**Next Review**: After Phase 1 completion
+7 -278
View File
@@ -1,283 +1,12 @@
# Architecture Documentation
# Architecture Overview
**Last Updated**: 2025-01-27
**Status**: Comprehensive Architecture Guide
The current operational architecture for The Order is centered on Sankofa Phoenix / Proxmox deployment targets, with service and portal delivery routed through the Sankofa runtime.
## Overview
For active operator work, start with:
This directory contains comprehensive architecture documentation for The Order platform, including system design, data models, deployment architecture, and architectural decision records (ADRs).
- `docs/deployment/overview.md`
- `docs/deployment/DEPLOYMENT_QUICK_REFERENCE.md`
## Documentation Index
Historical provider-era architecture documents have been quarantined under:
### Core Architecture
- [Cloud for Sovereignty Landing Zone](CLOUD_FOR_SOVEREIGNTY_LANDING_ZONE.md) - Complete multi-region architecture
- [Sovereignty Landing Zone Summary](SOVEREIGNTY_LANDING_ZONE_SUMMARY.md) - Executive summary
### System Design
- **Microservices Architecture**: See service documentation in `services/*/README.md`
- **Data Models**: Entity relationships and database schema
- **API Design**: RESTful APIs with OpenAPI/Swagger documentation
- **Security Architecture**: Zero-trust, defense in depth
## Architecture Principles
### Well-Architected Framework
The Order follows Azure Well-Architected Framework principles:
1. **Cost Optimization**
- Right-sized resources
- Reserved instances
- Cost allocation tags
- Budget alerts
2. **Operational Excellence**
- Infrastructure as Code
- Automated deployments
- Centralized logging
- Runbooks and playbooks
3. **Performance Efficiency**
- Regional proximity
- CDN for global delivery
- Auto-scaling
- Performance monitoring
4. **Reliability**
- Multi-region redundancy
- Availability Zones
- Automated failover
- RTO: 4 hours, RPO: 1 hour
5. **Security**
- Zero-trust architecture
- Defense in depth
- Data encryption
- Identity and access management
### Cloud for Sovereignty
- **Data Residency**: All data within specified regions
- **Data Protection**: Customer-managed keys, private endpoints
- **Compliance**: GDPR, eIDAS, regional requirements
- **Operational Control**: Management groups, policy governance
## System Architecture
### High-Level Overview
```
┌─────────────────────────────────────────────────────────────┐
│ Frontend Applications │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ MCP Legal │ │ Portal Public│ │Portal Internal│ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ API Gateway / Load Balancer │
└─────────────────────────────────────────────────────────────┘
┌───────────────────┼───────────────────┐
▼ ▼ ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Identity │ │ Intake │ │ Finance │
│ Service │ │ Service │ │ Service │
└──────────────┘ └──────────────┘ └──────────────┘
│ │ │
▼ ▼ ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Dataroom │ │Legal Docs │ │ e-Residency │
│ Service │ │ Service │ │ Service │
└──────────────┘ └──────────────┘ └──────────────┘
┌─────────────────────────────────────────────────────────────┐
│ Shared Infrastructure │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │PostgreSQL│ │ Redis │ │OpenSearch│ │ Azure │ │
│ │ │ │ │ │ │ │ Storage │ │
│ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────────┘
```
### Service Architecture
Each service follows a consistent architecture:
```
Service
├── API Layer (Fastify)
│ ├── Routes
│ ├── Middleware
│ └── Validation
├── Service Layer
│ ├── Business Logic
│ ├── External Integrations
│ └── Error Handling
├── Data Layer
│ ├── Database Queries
│ ├── Caching
│ └── Storage
└── Infrastructure
├── Health Checks
├── Metrics
└── Logging
```
## Data Models
### Core Entities
- **User**: Member of The Order
- **Identity**: Digital identity (eIDAS/DID)
- **Credential**: Verifiable credential
- **Document**: Legal document
- **Matter**: Legal matter
- **Deal**: Business transaction
- **Payment**: Financial transaction
### Relationships
See entity relationship diagrams in service-specific documentation.
## Deployment Architecture
### Regional Deployment
The Order is deployed across 7 non-US commercial Azure regions:
1. **West Europe** (Netherlands) - Primary
2. **North Europe** (Ireland) - Secondary
3. **UK South** (London)
4. **Switzerland North** (Zurich)
5. **Norway East** (Oslo)
6. **France Central** (Paris)
7. **Germany West Central** (Frankfurt)
### Per-Region Architecture
Each region includes:
- Hub Virtual Network (gateway, firewall, management)
- Spoke Virtual Network (application, database, storage)
- Azure Firewall
- Key Vault (with private endpoint)
- Storage Account (with private endpoint)
- Log Analytics Workspace
- AKS Cluster (optional)
### Network Architecture
- **Hub-and-Spoke**: Centralized connectivity
- **Private Endpoints**: Secure service access
- **Azure Firewall**: Centralized security
- **VNet Peering**: Hub-to-spoke connectivity
## Security Architecture
### Zero-Trust Principles
- **Identity Verification**: Always verify identity
- **Least Privilege**: Minimum required access
- **Network Segmentation**: Isolated networks
- **Encryption**: At rest and in transit
- **Monitoring**: Continuous security monitoring
### Defense in Depth
1. **Perimeter**: Azure Firewall, WAF
2. **Network**: NSGs, Private Endpoints
3. **Application**: Authentication, Authorization
4. **Data**: Encryption, Access Controls
5. **Identity**: MFA, RBAC, PIM
## Monitoring & Observability
### Metrics
- Application metrics (Prometheus)
- Infrastructure metrics (Azure Monitor)
- Business metrics (Custom dashboards)
### Logging
- Structured logging (JSON)
- Centralized log aggregation (Log Analytics)
- Log retention (90 days production)
### Tracing
- Distributed tracing (OpenTelemetry)
- Request flow visualization
- Performance analysis
## Disaster Recovery
### Strategy
- **RTO**: 4 hours
- **RPO**: 1 hour
- **Primary Region**: West Europe
- **Secondary Region**: North Europe
- **Backup Regions**: Other 5 regions
### Backup Strategy
- Database: Daily full, hourly incremental
- Storage: Cross-region replication
- Configuration: Version controlled
## Technology Stack
### Frontend
- React 18+
- Next.js 14+
- TypeScript
- Tailwind CSS
- Material-UI
### Backend
- Node.js 18+
- TypeScript
- Fastify
- PostgreSQL
- Redis
### Infrastructure
- Azure (non-US commercial)
- Kubernetes
- Terraform
- Docker
### Monitoring
- Prometheus
- Grafana
- OpenTelemetry
- Log Analytics
## Design Decisions
### Why Microservices?
- Independent scaling
- Technology diversity
- Team autonomy
- Fault isolation
### Why Azure (Non-US)?
- Data sovereignty requirements
- GDPR compliance
- Regional data residency
- Cloud for Sovereignty
### Why Kubernetes?
- Container orchestration
- Auto-scaling
- Rolling updates
- Service discovery
## Related Documentation
- [Cloud for Sovereignty Landing Zone](CLOUD_FOR_SOVEREIGNTY_LANDING_ZONE.md)
- [Deployment Guides](../deployment/README.md)
- [Service Documentation](../../services/*/README.md)
- [Infrastructure Documentation](../../infra/README.md)
---
**Last Updated**: 2025-01-27
- `archive/quarantined-legacy-stack/docs/architecture/`
-359
View File
@@ -1,359 +0,0 @@
# Cloud for Sovereignty Compliance Guide
**Last Updated**: 2025-01-27
**Status**: Comprehensive Compliance Framework
**Standard**: Microsoft Cloud for Sovereignty
## Overview
This document outlines how The Order project achieves and maintains compliance with Microsoft Cloud for Sovereignty requirements, ensuring data residency, operational control, and regulatory compliance.
## Compliance Requirements
### 1. Data Residency
**Requirement**: All data must remain within specified geographic regions and never be replicated to non-approved regions.
**Implementation**:
- ✅ Azure Policy enforcement for region restrictions
- ✅ Regional resource groups and storage accounts
- ✅ Database geo-restrictions
- ✅ CDN regional restrictions
- ✅ No cross-region data replication (except for DR)
**Verification**:
```bash
# Check resource locations
az resource list --query "[].{Name:name, Location:location}" --output table
# Verify policy compliance
az policy state list --filter "complianceState eq 'NonCompliant'"
```
### 2. Operational Sovereignty
**Requirement**: Customer maintains control over operations with limited Microsoft access.
**Implementation**:
- ✅ Customer-managed encryption keys (CMK)
- ✅ Azure Lighthouse for customer control
- ✅ Independent logging and monitoring
- ✅ Customer-managed backups
- ✅ Audit trail independence
**Key Vault Configuration**:
- Premium SKU with HSM-backed keys
- Soft delete and purge protection enabled
- Private endpoints only
- Customer-managed keys for all services
### 3. Regulatory Compliance
**Requirement**: Compliance with local regulations, data protection laws, and industry standards.
**Implementation**:
- ✅ GDPR compliance (EU data protection)
- ✅ eIDAS compliance (electronic identification)
- ✅ ISO 27001 alignment
- ✅ SOC 2 Type II readiness
- ✅ Industry-specific compliance
**Compliance Dashboards**:
- Azure Policy compliance dashboard
- Microsoft Defender for Cloud compliance
- Regulatory compliance reporting
- Audit log retention (90 days production, 30 days dev)
## Architecture Components
### Management Group Hierarchy
```
Root Management Group
├── Landing Zones
│ ├── Platform (shared services)
│ ├── Production
│ ├── Staging
│ └── Development
├── Identity
├── Connectivity
└── Management
```
### Regional Deployment
Each region includes:
- Hub virtual network with Azure Firewall
- Spoke virtual networks for workloads
- Private endpoints for all PaaS services
- Regional Key Vault with CMK
- Regional Log Analytics workspace
- Regional backup vault
### Network Architecture
**Hub-and-Spoke Model**:
- Centralized security (Azure Firewall)
- Private connectivity (VPN/ExpressRoute)
- Network segmentation
- DDoS protection
- WAF for public endpoints
**Private Endpoints**:
- All PaaS services use private endpoints
- No public internet exposure
- DNS resolution via Private DNS zones
- Network security groups for additional isolation
## Policy Framework
### Data Residency Policies
**Policy**: Enforce data residency restrictions
```json
{
"if": {
"allOf": [
{
"field": "location",
"notIn": ["westeurope", "northeurope", "uksouth", ...]
}
]
},
"then": {
"effect": "deny"
}
}
```
**Policy**: Require customer-managed encryption
```json
{
"if": {
"allOf": [
{
"field": "Microsoft.Storage/storageAccounts/encryption.keySource",
"notEquals": "Microsoft.Keyvault"
}
]
},
"then": {
"effect": "deny"
}
}
```
### Security Policies
**Policy**: Require private endpoints
**Policy**: Enforce TLS 1.3 minimum
**Policy**: Require MFA for all users
**Policy**: Enforce RBAC assignments
**Policy**: Require security monitoring
### Compliance Policies
**Policy**: Enable Defender for Cloud
**Policy**: Enable diagnostic logging
**Policy**: Require backup configuration
**Policy**: Enforce tag requirements
**Policy**: Require cost management
## Monitoring and Compliance
### Compliance Monitoring
**Azure Policy Compliance**:
- Daily compliance scans
- Non-compliance alerts
- Compliance dashboard
- Remediation automation
**Microsoft Defender for Cloud**:
- Security posture assessment
- Regulatory compliance dashboard
- Security recommendations
- Threat protection
**Cost Management**:
- Budget alerts
- Cost anomaly detection
- Resource utilization tracking
- Reserved capacity optimization
### Audit and Logging
**Audit Logs**:
- Activity logs (90 days retention)
- Diagnostic logs (30-90 days)
- Security logs (1 year retention)
- Compliance logs (7 years for legal)
**Log Storage**:
- Regional Log Analytics workspaces
- Customer-managed encryption
- Private endpoints only
- Immutable storage for compliance
## Data Protection
### Encryption
**At Rest**:
- Customer-managed keys (CMK)
- Azure Key Vault Premium with HSM
- Double encryption where available
- Key rotation policies
**In Transit**:
- TLS 1.3 minimum
- Certificate management via Key Vault
- Perfect Forward Secrecy
- Certificate pinning for APIs
### Data Classification
**Classification Levels**:
- Public
- Internal
- Confidential
- Highly Confidential
**Classification Tags**:
- Applied to all resources
- Enforced via Azure Policy
- Used for access control
- Monitored for compliance
## Access Control
### Identity Management
**Azure AD**:
- Centralized identity management
- Conditional access policies
- MFA enforcement
- Privileged Identity Management (PIM)
**RBAC**:
- Least privilege principle
- Role-based access control
- Regular access reviews
- Just-in-time access
### Network Access
**Private Endpoints**:
- All PaaS services
- No public internet access
- DNS resolution via Private DNS
- Network security groups
**Azure Firewall**:
- Centralized network security
- Application rules
- Network rules
- Threat intelligence
## Backup and Disaster Recovery
### Backup Strategy
**Database Backups**:
- Daily full backups
- Hourly incremental backups
- Point-in-time restore
- Geo-redundant storage (within region)
**Storage Backups**:
- Blob versioning
- Soft delete enabled
- Immutable storage for compliance
- Cross-region backup (DR only)
**Configuration Backups**:
- Terraform state backups
- Infrastructure as Code
- Configuration versioning
- Disaster recovery documentation
### Disaster Recovery
**RTO/RPO Targets**:
- RTO: 4 hours
- RPO: 1 hour
- DR regions: Secondary region per primary
- Failover procedures: Automated and manual
**DR Testing**:
- Quarterly DR tests
- Failover procedures documented
- Recovery validation
- Lessons learned documentation
## Compliance Reporting
### Regular Reports
**Monthly**:
- Compliance status report
- Security posture assessment
- Cost optimization report
- Policy compliance summary
**Quarterly**:
- Regulatory compliance review
- Access review completion
- DR test results
- Security audit findings
**Annually**:
- Comprehensive compliance audit
- Third-party security assessment
- Regulatory certification renewal
- Architecture review
## Compliance Checklist
### Data Residency
- [ ] All resources in approved regions
- [ ] No cross-region replication (except DR)
- [ ] Regional resource groups
- [ ] Policy enforcement active
### Operational Sovereignty
- [ ] Customer-managed keys for all services
- [ ] Independent logging and monitoring
- [ ] Customer-managed backups
- [ ] Audit trail independence
### Security
- [ ] Zero Trust architecture
- [ ] Encryption at rest and in transit
- [ ] Private endpoints for all services
- [ ] Threat protection enabled
### Compliance
- [ ] GDPR compliance verified
- [ ] eIDAS compliance verified
- [ ] Audit logs retained
- [ ] Compliance dashboards active
### Monitoring
- [ ] Compliance monitoring active
- [ ] Security monitoring active
- [ ] Cost monitoring active
- [ ] Alerting configured
## References
- [Microsoft Cloud for Sovereignty](https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/sovereignty/)
- [Azure Well-Architected Framework](https://learn.microsoft.com/en-us/azure/architecture/framework/)
- [Azure Security Benchmark](https://learn.microsoft.com/en-us/azure/security/benchmarks/)
- [GDPR Compliance](https://learn.microsoft.com/en-us/compliance/regulatory/gdpr)
- [eIDAS Compliance](https://learn.microsoft.com/en-us/compliance/regulatory/offering-eidas)
---
**Last Updated**: 2025-01-27
@@ -1,189 +0,0 @@
# Cloud for Sovereignty Landing Zone - Executive Summary
**Date**: 2025-01-27
**Management Group**: SOVEREIGN-ORDER-OF-HOSPITALLERS
**Status**: Architecture Complete - Ready for Deployment
## Overview
A comprehensive Cloud for Sovereignty landing zone architecture designed using Azure Well-Architected Framework principles, spanning all non-US commercial Azure regions to ensure data sovereignty, compliance, and operational resilience.
## Key Metrics
- **Regions**: 7 non-US commercial Azure regions
- **Management Groups**: 11 hierarchical groups
- **Policies**: 5 compliance policies + 1 initiative
- **Virtual Networks**: 14 (7 hub + 7 spoke)
- **Subnets**: 42 total
- **Security**: 7 Azure Firewalls, 14 private endpoints
- **Estimated Cost**: $10,850-20,000/month (depending on environment)
## Well-Architected Framework Compliance
### ✅ Cost Optimization
- Right-sized resources per region
- Reserved instance planning
- Cost allocation tags
- Budget alerts and governance
### ✅ Operational Excellence
- Infrastructure as Code (Terraform)
- Automated deployments
- Centralized logging
- Runbooks and playbooks
### ✅ Performance Efficiency
- Regional proximity for low latency
- CDN for global content delivery
- Auto-scaling capabilities
- Performance monitoring
### ✅ Reliability
- Multi-region redundancy
- Availability Zones
- Automated failover
- RTO: 4 hours, RPO: 1 hour
### ✅ Security
- Zero-trust architecture
- Defense in depth
- Data encryption (at rest and in transit)
- Identity and access management
- Security monitoring
## Cloud for Sovereignty Features
### Data Residency
- All data remains within specified regions
- Resource location policies enforced
- Storage geo-replication controls
### Data Protection
- Customer-managed keys (CMK)
- Azure Key Vault with HSM
- Private endpoints for all services
### Compliance
- GDPR compliance
- eIDAS compliance
- Regional compliance requirements
- Audit logging (90 days retention)
### Operational Control
- Management group hierarchy
- Policy-based governance
- Role-based access control (RBAC)
## Regional Deployment
### Supported Regions
1. **West Europe** (Netherlands) - Primary region
2. **North Europe** (Ireland) - Secondary region
3. **UK South** (London) - UK workloads
4. **Switzerland North** (Zurich) - Swiss workloads
5. **Norway East** (Oslo) - Nordic workloads
6. **France Central** (Paris) - French workloads
7. **Germany West Central** (Frankfurt) - German workloads
### Per-Region Components
- Hub Virtual Network (gateway, firewall, management subnets)
- Spoke Virtual Network (application, database, storage subnets)
- Azure Firewall (Standard SKU)
- Key Vault (Premium SKU with private endpoint)
- Storage Account (with private endpoint)
- Log Analytics Workspace
## Management Group Hierarchy
```
SOVEREIGN-ORDER-OF-HOSPITALLERS
├── Landing Zones
│ ├── Platform
│ ├── Sandbox
│ └── Workloads
├── Management
│ ├── Identity
│ ├── Security
│ └── Monitoring
└── Connectivity
├── Hub Networks
└── Spoke Networks
```
## Compliance Policies
1. **Allowed Locations**: Restricts to non-US commercial regions
2. **Deny US Regions**: Explicitly denies US regions
3. **Require Data Residency Tag**: Tracks data residency
4. **Require Encryption at Rest**: Customer-managed keys
5. **Require Resource Tags**: Governance and cost management
## Deployment Phases
### Phase 1: Foundation (Weeks 1-2)
- Management group hierarchy
- Identity and access management
- Core networking
- Key Vault setup
- Log Analytics workspaces
### Phase 2: Regional Deployment (Weeks 3-6)
- Primary region (West Europe)
- Secondary region (North Europe)
- Geo-replication
- Monitoring setup
### Phase 3: Multi-Region Expansion (Weeks 7-10)
- Remaining 5 regions
- Regional failover
- CDN endpoints
- Traffic routing
### Phase 4: Workload Migration (Weeks 11-14)
- Application migration
- Application networking
- Application monitoring
- Performance optimization
### Phase 5: Optimization (Weeks 15-16)
- Cost optimization
- Performance tuning
- Security hardening
- Documentation
## Quick Start
```bash
# 1. Load environment
source infra/scripts/azure-load-env.sh
# 2. Deploy landing zone
./infra/scripts/deploy-sovereignty-landing-zone.sh
# 3. Verify deployment
az group list --query "[?contains(name, 'az-')]"
```
## Documentation
- **Architecture**: `docs/architecture/CLOUD_FOR_SOVEREIGNTY_LANDING_ZONE.md`
- **Deployment Guide**: `docs/deployment/azure/SOVEREIGNTY_LANDING_ZONE_DEPLOYMENT.md`
- **Module Docs**: `infra/terraform/modules/regional-landing-zone/README.md`
## Success Criteria
- ✅ All 7 regions deployed
- ✅ Management group hierarchy established
- ✅ Compliance policies enforced
- ✅ Private endpoints configured
- ✅ Monitoring active
- ✅ Cost tracking enabled
- ✅ Security hardened
---
**Last Updated**: 2025-01-27
**Next Review**: After Phase 1 deployment
@@ -1,411 +0,0 @@
# Microsoft Well-Architected Framework Implementation
**Last Updated**: 2025-01-27
**Status**: Comprehensive Implementation Guide
**Framework**: Microsoft Azure Well-Architected Framework
**Sovereignty**: Cloud for Sovereignty Compliant
## Overview
This document outlines how The Order project implements all five pillars of the Microsoft Well-Architected Framework within a Cloud for Sovereignty context, ensuring data residency, operational control, and regulatory compliance.
## Framework Pillars
### 1. Cost Optimization
#### Principles
- **Right-sizing**: Match resources to actual workload requirements
- **Reserved capacity**: Use Azure Reservations for predictable workloads
- **Spot instances**: Leverage Azure Spot VMs for non-critical workloads
- **Auto-scaling**: Implement horizontal and vertical scaling based on demand
- **Resource tagging**: Comprehensive tagging strategy for cost allocation
#### Implementation
**Resource Tagging Strategy**:
```hcl
# Standard tags for all resources
tags = {
Environment = var.environment
Project = "the-order"
CostCenter = "legal-services"
Owner = "legal-team"
DataClassification = "confidential"
Sovereignty = "required"
Region = var.azure_region
ManagedBy = "terraform"
}
```
**Cost Management**:
- Azure Cost Management + Billing integration
- Budget alerts and spending limits
- Resource group-level cost tracking
- Service-level cost allocation
- Reserved capacity for production workloads
**Optimization Strategies**:
- Use Azure Container Instances for burst workloads
- Implement Azure Functions for serverless compute
- Leverage Azure Database for PostgreSQL Flexible Server with auto-scaling
- Use Azure Blob Storage lifecycle management
- Implement CDN caching to reduce compute costs
**Monitoring**:
- Daily cost reports via Azure Cost Management
- Budget alerts at 50%, 75%, 90%, and 100%
- Cost anomaly detection
- Resource utilization tracking
### 2. Operational Excellence
#### Principles
- **Automation**: Infrastructure as Code (Terraform)
- **Monitoring**: Comprehensive observability
- **Documentation**: Living documentation
- **Incident response**: Automated runbooks
- **Change management**: Version-controlled deployments
#### Implementation
**Infrastructure as Code**:
- Terraform for all infrastructure provisioning
- GitOps for Kubernetes deployments
- Automated CI/CD pipelines
- Environment promotion (dev → staging → prod)
**Observability Stack**:
- **Metrics**: Prometheus + Azure Monitor
- **Logging**: OpenSearch/ELK stack
- **Tracing**: Application Insights
- **Dashboards**: Grafana + Azure Dashboards
- **Alerts**: Prometheus AlertManager + Azure Alerts
**Operational Runbooks**:
- Service restart procedures
- Database backup/restore
- Disaster recovery procedures
- Security incident response
- Performance troubleshooting
**Change Management**:
- Pull request reviews for all changes
- Automated testing before deployment
- Blue-green deployments
- Rollback procedures
- Change approval workflows
**Documentation**:
- Architecture decision records (ADRs)
- API documentation (OpenAPI/Swagger)
- Deployment guides
- Troubleshooting guides
- Runbooks
### 3. Performance Efficiency
#### Principles
- **Scalability**: Horizontal and vertical scaling
- **Caching**: Multi-layer caching strategy
- **CDN**: Content delivery optimization
- **Database optimization**: Query optimization and indexing
- **Async processing**: Background job processing
#### Implementation
**Scaling Strategies**:
- **Horizontal Pod Autoscalers (HPA)**: CPU and memory-based scaling
- **Vertical Pod Autoscalers (VPA)**: Right-sizing recommendations
- **Cluster Autoscaler**: Node pool scaling
- **Azure App Service scaling**: Automatic scaling rules
**Caching Layers**:
1. **Application-level**: In-memory caching (Redis)
2. **CDN**: Azure CDN for static assets
3. **Database**: Query result caching
4. **API Gateway**: Response caching
**Database Optimization**:
- Connection pooling
- Read replicas for read-heavy workloads
- Partitioning for large tables
- Index optimization
- Query performance monitoring
**Performance Monitoring**:
- Application Performance Monitoring (APM)
- Database query performance
- API response times
- End-to-end latency tracking
- Resource utilization metrics
**Load Testing**:
- Regular performance testing
- Stress testing for capacity planning
- Bottleneck identification
- Performance baselines
### 4. Reliability
#### Principles
- **Resilience**: Failure recovery
- **Redundancy**: Multi-region deployment
- **Backup**: Automated backups
- **Disaster recovery**: RTO/RPO targets
- **Health monitoring**: Proactive issue detection
#### Implementation
**High Availability**:
- Multi-AZ deployment within regions
- Multi-region deployment (7 non-US regions)
- Load balancing across instances
- Database replication (primary + read replicas)
- Storage redundancy (GRS for production)
**Resilience Patterns**:
- **Circuit breakers**: Prevent cascade failures
- **Retry logic**: Exponential backoff
- **Timeout handling**: Request timeouts
- **Bulkhead pattern**: Resource isolation
- **Graceful degradation**: Fallback mechanisms
**Backup Strategy**:
- **Database**: Daily full backups, hourly incremental
- **Storage**: Point-in-time restore enabled
- **Configuration**: Infrastructure state backups
- **Secrets**: Azure Key Vault backup
- **Retention**: 30 days (dev), 90 days (prod)
**Disaster Recovery**:
- **RTO**: 4 hours (Recovery Time Objective)
- **RPO**: 1 hour (Recovery Point Objective)
- **DR Regions**: Secondary region per primary
- **Failover procedures**: Automated and manual
- **DR Testing**: Quarterly tests
**Health Monitoring**:
- Health check endpoints on all services
- Liveness probes (Kubernetes)
- Readiness probes (Kubernetes)
- Startup probes (Kubernetes)
- Dependency health checks
**SLA Targets**:
- **Uptime**: 99.9% (production)
- **API Response Time**: P95 < 500ms
- **Database Query Time**: P95 < 100ms
- **Error Rate**: < 0.1%
### 5. Security
#### Principles
- **Zero Trust**: Never trust, always verify
- **Defense in depth**: Multiple security layers
- **Least privilege**: Minimal access rights
- **Encryption**: Data at rest and in transit
- **Compliance**: GDPR, eIDAS, sovereignty requirements
#### Implementation
**Identity and Access Management**:
- **Azure AD**: Centralized identity management
- **RBAC**: Role-based access control
- **Managed Identities**: Service-to-service authentication
- **MFA**: Multi-factor authentication required
- **Conditional Access**: Location and device-based policies
**Network Security**:
- **Private Endpoints**: All PaaS services use private endpoints
- **Azure Firewall**: Centralized network security
- **NSGs**: Network Security Groups for subnet isolation
- **DDoS Protection**: Azure DDoS Protection Standard
- **WAF**: Web Application Firewall for public endpoints
**Data Protection**:
- **Encryption at Rest**: Customer-managed keys (CMK)
- **Encryption in Transit**: TLS 1.3 minimum
- **Key Management**: Azure Key Vault with HSM
- **Data Classification**: Automatic classification
- **Data Loss Prevention**: DLP policies
**Threat Protection**:
- **Microsoft Defender for Cloud**: Unified security management
- **Microsoft Sentinel**: SIEM and SOAR
- **Threat Intelligence**: Azure Threat Intelligence
- **Vulnerability Scanning**: Regular security scans
- **Penetration Testing**: Annual external audits
**Compliance**:
- **GDPR**: Data protection and privacy compliance
- **eIDAS**: Electronic identification compliance
- **ISO 27001**: Information security management
- **SOC 2**: Security, availability, processing integrity
- **Cloud for Sovereignty**: Data residency and operational control
**Security Monitoring**:
- **Security alerts**: Real-time threat detection
- **Audit logging**: Comprehensive audit trails
- **Anomaly detection**: Behavioral analytics
- **Incident response**: Automated playbooks
- **Security dashboards**: Centralized visibility
## Cloud for Sovereignty Requirements
### Data Residency
**Requirements**:
- All data stored in specified regions only
- No data replication to non-approved regions
- Customer-managed encryption keys
- Data sovereignty policies enforced
**Implementation**:
- Azure Policy for data residency enforcement
- Regional resource groups
- Region-specific storage accounts
- Database geo-restrictions
- CDN regional restrictions
### Operational Sovereignty
**Requirements**:
- Customer control over operations
- Limited Microsoft access
- Customer-managed encryption
- Independent audit capabilities
**Implementation**:
- Customer-managed keys (CMK) for all services
- Azure Lighthouse for customer control
- Independent logging and monitoring
- Customer-managed backups
- Audit trail independence
### Regulatory Compliance
**Requirements**:
- Compliance with local regulations
- Data protection compliance
- Industry-specific compliance
- Audit readiness
**Implementation**:
- Compliance policies via Azure Policy
- Regulatory compliance dashboards
- Automated compliance reporting
- Audit log retention
- Compliance documentation
## Implementation Roadmap
### Phase 1: Foundation (Completed)
- ✅ Multi-region landing zone architecture
- ✅ Management group hierarchy
- ✅ Core networking infrastructure
- ✅ Basic monitoring and logging
### Phase 2: Security Hardening (In Progress)
- ⏳ Complete Zero Trust implementation
- ⏳ Advanced threat protection
- ⏳ Compliance automation
- ⏳ Security monitoring enhancement
### Phase 3: Operational Excellence (In Progress)
- ⏳ Complete observability stack
- ⏳ Automated runbooks
- ⏳ Advanced monitoring dashboards
- ⏳ Incident response automation
### Phase 4: Performance Optimization (Pending)
- ⏳ Performance baseline establishment
- ⏳ Caching strategy implementation
- ⏳ Database optimization
- ⏳ Load testing and tuning
### Phase 5: Cost Optimization (Pending)
- ⏳ Cost baseline establishment
- ⏳ Reserved capacity planning
- ⏳ Resource right-sizing
- ⏳ Cost optimization automation
## Metrics and KPIs
### Cost Optimization
- Monthly cost per service
- Cost per transaction
- Reserved capacity utilization
- Budget adherence
### Operational Excellence
- Deployment frequency
- Mean time to recovery (MTTR)
- Change failure rate
- Lead time for changes
### Performance Efficiency
- API response time (P50, P95, P99)
- Database query performance
- Resource utilization
- Cache hit rates
### Reliability
- Uptime percentage
- Error rate
- Mean time between failures (MTBF)
- Recovery time objective (RTO)
### Security
- Security incidents
- Vulnerability remediation time
- Compliance score
- Access review completion
## Best Practices Checklist
### Cost Optimization
- [ ] All resources tagged appropriately
- [ ] Budget alerts configured
- [ ] Reserved capacity for predictable workloads
- [ ] Auto-scaling enabled
- [ ] Unused resources identified and removed
### Operational Excellence
- [ ] Infrastructure as Code (Terraform)
- [ ] CI/CD pipelines automated
- [ ] Monitoring and alerting comprehensive
- [ ] Runbooks documented
- [ ] Change management process defined
### Performance Efficiency
- [ ] Scaling policies configured
- [ ] Caching strategy implemented
- [ ] CDN configured
- [ ] Database optimized
- [ ] Performance baselines established
### Reliability
- [ ] Multi-region deployment
- [ ] Backup strategy implemented
- [ ] DR procedures documented
- [ ] Health checks configured
- [ ] SLA targets defined
### Security
- [ ] Zero Trust architecture
- [ ] Encryption at rest and in transit
- [ ] Access controls implemented
- [ ] Threat protection enabled
- [ ] Compliance requirements met
## References
- [Microsoft Azure Well-Architected Framework](https://learn.microsoft.com/en-us/azure/architecture/framework/)
- [Cloud for Sovereignty](https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/sovereignty/)
- [Azure Architecture Center](https://learn.microsoft.com/en-us/azure/architecture/)
- [Azure Security Benchmark](https://learn.microsoft.com/en-us/azure/security/benchmarks/)
---
**Last Updated**: 2025-01-27