Infrastructure Security Architecture
Effective Date: October 2026 | Version 1.0
Container Hardening Parameters
All Enclave Swarm agent nodes execute within hardened AWS Fargate containers configured with defense-in-depth security controls. The following baseline security posture is enforced across all production deployments:
Non-Root Execution Policy
Container processes execute under a dedicated non-privileged user account (UID 10001) with no shell access and restricted filesystem permissions. This configuration prevents privilege escalation attacks and limits the blast radius of any potential container compromise.
securityContext:
runAsUser: 10001
runAsGroup: 10001
runAsNonRoot: true
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
Read-Only Root Filesystem
The container root filesystem is mounted in read-only mode, preventing any runtime modification of system binaries, libraries, or configuration files. Ephemeral write operations are restricted to dedicated tmpfs volumes that are cryptographically wiped upon container termination.
Linux Kernel Capability Stripping
All Linux kernel capabilities are explicitly dropped from the container security context. This includes:
- CAP_NET_RAW: Prevents raw socket access and network-level attacks
- CAP_SYS_ADMIN: Blocks administrative system calls and mount operations
- CAP_SETUID/CAP_SETGID: Prevents user/group identity manipulation
- CAP_NET_BIND_SERVICE: Restricts binding to privileged ports
- CAP_CHOWN: Prevents file ownership modifications
The complete capability drop policy ensures that even if application code is compromised, the attacker cannot escalate privileges or pivot to adjacent infrastructure components.
Amazon S3 Object Lock Audit Architecture
All operational audit logs are written to Amazon S3 buckets configured with Object Lock in Compliance Mode. This configuration provides immutable, tamper-proof audit trails with the following parameters:
- Retention Period: 7 years (2,555 days) minimum
- Lock Mode: COMPLIANCE (cannot be overridden by any user, including root)
- Encryption: AES-256 server-side encryption with AWS KMS
- Versioning: Enabled with MFA Delete protection
- Replication: Cross-region replication to secondary audit bucket
ObjectLockConfiguration:
ObjectLockEnabled: Enabled
Rule:
DefaultRetention:
Mode: COMPLIANCE
Days: 2555
ServerSideEncryptionConfiguration:
Rules:
- ApplyServerSideEncryptionByDefault:
SSEAlgorithm: aws:kms
KMSMasterKeyID: alias/enclave-audit-key
Network Security Controls
Network traffic is restricted through defense-in-depth controls including VPC security groups, network ACLs, and AWS PrivateLink endpoints. All inter-service communication occurs over TLS 1.3 with certificate pinning enabled.
- Ingress restricted to Application Load Balancer on ports 443 only
- Egress limited to AWS Bedrock endpoints via VPC PrivateLink
- No direct internet access from agent containers
- All DNS queries routed through Route 53 Resolver with logging
Vulnerability Management
Container images are scanned continuously using Amazon ECR image scanning with automatic blocking of images containing critical CVEs. Base images are rebuilt weekly from verified upstream sources with all security patches applied.
Incident Response
Security incidents trigger automated containment workflows including immediate container isolation, credential rotation, and forensic snapshot capture. The security operations team maintains a 15-minute response SLA for critical severity events.