본문으로 건너뛰기

Edge & Security

CloudFront Distributions

DistributionDomainOrigin
Main (Frontend)mall.atomai.clickS3 (Static Assets) + API (api-internal.*)
ArgoCDargocd.atomai.clickNLB (ArgoCD server)
Grafanagrafana.atomai.clickNLB (Grafana server)

WAF: 현재 비활성화 — Bot Control이 curl/headless 브라우저를 차단하여 임시 해제. ArgoCD/Grafana는 자체 인증으로 보호.

Route53 Records

RecordTypeRouting PolicyTarget
api-internal.atomai.clickA (Alias)Latency-based리전별 NLB
mall.atomai.clickA (Alias)SimpleCloudFront
argocd.atomai.clickA (Alias)SimpleCloudFront (ArgoCD)
grafana.atomai.clickA (Alias)SimpleCloudFront (Grafana)
argocd-internal.atomai.clickA (Alias)Latency-based리전별 NLB

Security Groups Strategy

Zero Public Exposure

모든 보안 그룹은 Terraform으로 관리됩니다. K8s ALB Controller가 자동 생성하는 SG를 방지하기 위해 manage-backend-security-group-rules: "false"필수 설정합니다.

SGus-east-1us-west-2Inbound Source
ALB SGsg-0123456789abcdef0sg-0abcdef1234567890CloudFront Prefix List (80-443)
NLB SGTF managedTF managedCloudFront Prefix List
EKS SGTF managedTF managedVPC CIDR only
Data SGsTF managedTF managedEKS Node SG only

K8s Ingress 필수 어노테이션

# ALB Ingress
alb.ingress.kubernetes.io/security-groups: sg-0123456789abcdef0
alb.ingress.kubernetes.io/manage-backend-security-group-rules: "false"

# Service type: LoadBalancer
service.beta.kubernetes.io/aws-load-balancer-security-groups: sg-0123456789abcdef0

Amazon Cognito

Status: In Progress

Cognito User Pool을 통한 이메일 기반 인증.

  • Terraform Module: terraform/modules/security/cognito/
  • Go Middleware: src/shared/go/pkg/auth/ — Gin 미들웨어로 JWT 검증
    • JWKS 캐싱
    • COGNITO_USER_POOL_ID 미설정 시 graceful degradation

IAM / IRSA

IRSA Role서비스권한
production-otel-collector-*OTel CollectorX-Ray PutTraceSegments, CloudWatch Logs
production-dsql-access-*Go ServicesDSQL token generation
production-tempo-*TempoS3 read/write
EBS CSI IRSAEBS CSI DriverEBS volume management
EFS CSI IRSAEFS CSI DriverEFS access point management
ALB Controller IRSAALB ControllerEC2, ELB, WAF management

KMS Encryption

리전별 서비스 전용 KMS CMK(Customer Managed Key):

Key Alias용도
auroraAurora/DocumentDB 클러스터 암호화
elasticacheElastiCache at-rest 암호화
mskMSK 브로커 디스크 암호화
s3S3 버킷 SSE-KMS + CloudFront OAC Decrypt
documentdbDocumentDB 클러스터 암호화