This repository is dedicated to showcasing effective strategies for implementing Organizational Policies (OPCs) and Service Control Policies (SCPs) in cloud environments to achieve a holistic security posture.
This includes detailed code snippets, configuration files, and real-world use cases to help you secure your cloud infrastructure.
- /policies: Contains sample Organizational Policies and Service Control Policies.
-
Top 5 Organizational Policies (OPCs):
- Restrict VMs from having external IPs (
compute.vmExternalIpAccess
) - Enforce HTTPS communication for GCS (
storage.requireTls
) - Disable OS Login for SSH access (
compute.disableOsLogin
) - Require Uniform Bucket-Level Access on GCS (
storage.uniformBucketLevelAccess
) - Restrict Public IPs for SQL Instances (
sql.restrictPublicIp
)
- Restrict VMs from having external IPs (
-
Top 5 Service Control Policies (SCPs):
- Deny Disablement of Security Monitoring (
ec2:DisableVpcClassicLink
) - Prevent Deletion of Logging Buckets (
s3:DeleteBucket
) - Deny IAM Policies with Wildcards (
iam:PassRole
) - Require MFA for IAM Actions (
iam:ChangePassword
) - Enforce KMS Key Usage for Encryption (
kms:Decrypt
)
- Deny Disablement of Security Monitoring (
Implementing these policies enhances your cloud environment's security by reducing exposure to potential threats, ensuring compliance with industry standards, and automating security enforcement across your organization.
-
Clone the repository:
git clone https://github.com/TanishkaMarrott/Secure-Cloud-Architecture-with-SCPs-and-OPCs.git
-
Navigate to the repository:
cd Secure-Cloud-Architecture-with-SCPs-and-OPCs
-
Review the policies:
- Browse the
/policies
directory to see the Organizational Policies and Service Control Policies.
- Browse the
-
Apply the policies:
- Use the scripts in
/scripts
to apply the policies in your cloud environment.
- Use the scripts in
We welcome contributions from the community! If you have additional policies, use cases, or enhancements, please feel free to submit a pull request.
This repository is licensed under the MIT License. See LICENSE
for more information.