Interview Prep/DevSecOps/Cloud Security Posture

What is a data perimeter in AWS, and how do resource control policies help build it?

AdvancedProductionCloud Security Posture
Answer

A data perimeter ensures that only trusted identities access trusted resources from expected networks. Three building blocks:

  • Identity perimeter: resources accept only principals from our organisation (aws:PrincipalOrgID).
  • Resource perimeter: our identities can only access resources in our organisation (aws:ResourceOrgID), stopping exfiltration to an attacker's bucket.
  • Network perimeter: access only from our VPCs or IP ranges (aws:SourceVpc, aws:SourceIp), with exceptions for AWS services acting on our behalf.

SCPs restrict what our principals can do. RCPs (introduced late 2024) restrict what can be done to our resources, regardless of who calls, for supported services such as S3, KMS, STS, SQS and Secrets Manager. With an RCP denying access from outside the org, one bad bucket policy no longer exposes data.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Cloud Security Posture