Interview Prep/DevSecOps/Cloud Security Posture

What is your S3 security baseline?

BeginnerProductionCloud Security Posture
Answer
  • Account-level Block Public Access on; public content served through CloudFront with origin access control instead.
  • Object Ownership BucketOwnerEnforced (ACLs disabled).
  • Default encryption (SSE-S3 or SSE-KMS with a CMK for sensitive data, with S3 Bucket Keys to cut KMS cost).
  • Bucket policy denying non-TLS requests:
{"Effect": "Deny", "Principal": "*", "Action": "s3:*",
 "Resource": ["arn:aws:s3:::prod-data", "arn:aws:s3:::prod-data/*"],
 "Condition": {"Bool": {"aws:SecureTransport": "false"}}}
  • Versioning on, Object Lock for backups and logs, lifecycle rules for old versions.
  • Access logging or CloudTrail data events for buckets holding customer data.
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Cloud Security Posture