aCyberSec Logo
Skip to article
Inside this article · 08 sections
Cloud ProtectionField Guide

Best Practices for Securing Your Cloud Infrastructure

Scoped cloud security implementation and verification steps, including Pod Security Admission (not PodSecurityPolicy).

Suman Lama1 min read08 sectionsMay 20, 2024 · Updated November 16, 2026
100%
Best Practices for Securing Your Cloud Infrastructure

Scope for this guide: a single cloud account/subscription hosting a containerized web app and managed database. Each practice includes implement → verify. Deep data-object flows live in the cloud data article.

1. Identity and access

Implement: MFA for humans; SSO; least-privilege roles; no shared admin users; short-lived cloud shell credentials.

Verify: identity report shows MFA=100% for admins; access review ticket closed this quarter; aws iam generate-credential-report / Azure AD sign-in logs / GCP Cloud Audit sampled.

2. Network segmentation

Implement: private subnets for data stores; security groups/NSGs deny-by-default; only reverse proxy publicly exposed.

Verify: port scan from internet shows only 443 on edge; database has no public IP.

3. Encryption

Implement: encrypt disks and object storage; TLS to database; manage keys in KMS/Key Vault/Cloud KMS.

Verify: policy check shows unencrypted volumes = 0; ssl connection required on DB parameter group.

4. Logging and monitoring

Implement: cloud trail/activity logs immutable to a log account; alert on root/admin usage and public share events.

Verify: disable a test trail in staging and confirm detection; restore trail.

5. Infrastructure as code

Implement: Terraform/CloudFormation only for prod; PR reviews; scanner for open security groups.

Verify: manual console change in staging triggers drift alert.

6. Containers and Kubernetes (Pod Security Admission)

Implement: image scanning in CI; non-root containers; NetworkPolicies as needed.

Kubernetes admission: use Pod Security Admission (PSA) with Pod Security Standards (privileged / baseline / restricted) at namespace level. Do not rely on the removed PodSecurityPolicy (PSP) API.

Verify: kubectl get ns --show-labels includes PSA labels (for example pod-security.kubernetes.io/enforce=restricted); test pod requesting hostPath is rejected in enforce mode.

Primary docs: Kubernetes Pod Security Admission and Pod Security Standards documentation.

7. Backup and recovery

Implement: automated DB snapshots; cross-region copy; documented RTO/RPO.

Verify: restore snapshot to isolated instance monthly; record time-to-ready.

Conclusion

Best practices only count when verification exists. Prefer PSA over legacy PSP, keep scope tight, and prove each control with a repeatable check.

About the author

Suman Lama

Founder of ACyberSec. Writes practical guides on secure development, data protection, and privacy-conscious cybersecurity workflows.

View author profile

Your next read

Keep building your knowledge.

All articles

AI in Security

How AI is Transforming Cybersecurity

2 min read

Read guide

Cybersecurity Basics

Understanding Zero-Day Vulnerabilities, Risks and Defenses

2 min read

Read guide

Back to top