Writing / Article

Mastering Cloud Security: Practical Principles for Public Cloud Adoption

A guide on designing a public cloud environment securely across identity, data isolation, network egress, keys, logs, and SaaS restrictions.

Contents

Public cloud is not insecure by default. It becomes risky when teams treat it like rented infrastructure without understanding the control boundaries.

The main security question is not:

“Is the cloud provider secure?”

The better question is:

“Have we designed our part of the cloud environment securely?”

Cloud security depends on shared responsibility. The cloud provider secures the underlying cloud platform. The customer remains responsible for identity, data, workload configuration, network exposure, logging, key management, and application security.

This post covers practical principles for reviewing public cloud adoption, which should be assessed alongside the selected modernizing application architecture paths for your workloads.

Secure Public Cloud Workload: Conceptual Control Model

Management Plane

Controlled admin access

  • SSO
  • MFA
  • PAM
  • IaC
  • Private Admin Path

Edge Security

Ingress reaches Edge first

  • CDN
  • DDoS
  • WAF
  • Bot Control
  • Rate Limits

Private Application Zone

Workload execution & traffic routing

  • LB
  • API Gateway
  • Workload
  • IAM
  • Secrets

Private Data Zone

Isolated data storage & protection

  • Database
  • Object Storage
  • Backup
  • KMS

Approved Egress Zone

Controlled outbound paths

  • Firewall
  • NAT
  • Proxy
  • Private Endpoint

Security Monitoring Plane

Logs & monitoring from all zones

  • Logs
  • SIEM
  • CSPM
  • CIEM
  • CDR
  • Policy-as-Code

Internet ingress is controlled at the edge, workloads remain private, data is isolated, egress is restricted, administration is governed, and security events are monitored centrally.

Key Architecture Principles

A secure cloud workload should separate ingress, workload execution, data, egress, administration, and monitoring. Each plane should have a clear control point.

Architecture planePrincipleKey controls
Edge security zoneInternet traffic reaches the control layer before the workload.Approved DNS, CDN or edge service, DDoS protection, WAF, bot control, rate limiting, origin allow-listing
Private application zoneWorkloads run privately and use short-lived identity-based access.Private subnets, no public IPs, dedicated workload identity or IAM role, runtime secret retrieval
Private data zoneData services are isolated from public access and encrypted with controlled keys.Private endpoints, no public storage or database access, separate backup vaults, encryption at rest, customer-managed keys where required
Approved egress zoneOutbound traffic uses approved and logged paths only.Cloud firewall, NAT with restrictions, proxy, private endpoints, service allow-lists, egress logging
Management planeAdministration uses controlled private access, not public management ports.Corporate SSO, MFA, PAM, JIT access, disabled public SSH/RDP, admin activity logging
Security monitoring planeLogs and posture signals are centralized for detection and assurance.SIEM or security data lake, audit logs, network logs, key logs, data access logs, CSPM, CIEM, CDR, IaC scanning, policy-as-code, drift detection

The design rule is simple: every path into, out of, or across the workload must pass through an approved control point and produce useful logs.

Edge Controls

DNS, CDN, DDoS, WAF

Private Workload

No public IP, Workload identity

Private Data

Private endpoints, Encryption, Isolated backups

Approved Egress

Firewall, NAT, Proxy

Management & Monitoring

SSO, MFA, Logs, SIEM, CSPM

Ingress, egress, administration, data access, and monitoring each have a defined control path.


1. Start With Clear Ownership

Cloud security fails when responsibility is unclear.

Define ownership before design approval.

At minimum, clarify:

  • Who owns the cloud account, subscription, or project?
  • Who approves privileged access?
  • Who manages encryption keys?
  • Who reviews firewall and security group changes?
  • Who monitors cloud security alerts?
  • Who responds to incidents?
  • Who pays for logging, retention, backup, and security tools?

Do not rely on the vendor’s certification alone. Certifications show that controls exist at a point in time. They do not prove that your workload is configured securely.

Use shared responsibility as the baseline. Then map every major control to either:

  • Cloud provider
  • SaaS provider
  • System integrator
  • Internal IT
  • Application team
  • Security team

No critical control should be ownerless.


2. Isolate Data by Design

Public cloud uses shared infrastructure. That is normal. The security goal is to make sure your data, workloads, logs, and keys are isolated from other tenants and from unrelated internal environments.

For normal IaaS/PaaS workloads
  • Separate accounts/subscriptions/projects
  • Separate environments (Dev, UAT, SIT, Prod)
  • Separate networks (VPCs or VNETs)
  • Separate IAM roles
  • Separate encryption keys
  • Separate logs, backups, and recovery vaults
For SaaS vendor review
Common Models:
  • Silo: dedicated database per tenant
  • Bridge: dedicated schema per tenant
  • Pool: shared database with tenant row-level controls
Checklist:

Review application, API, database, cache, backups, and logs.

For highly confidential/regulated workloads
  • Dedicated accounts
  • Private endpoints
  • Customer-managed keys (CMK)
  • HSM-backed keys where justified
  • Field-level encryption
  • Separate administrative roles
  • Isolated backups & restore testing

Dedicated tenancy or physical segregation should be exceptional, not the default. Require it only when justified by regulation, contract, or threat model.


3. Control Ingress Like a Production Perimeter

Internet-facing cloud workloads should never be exposed directly without layered controls.

Control areaWhat to require
Entry pointApproved DNS, CDN or edge protection where appropriate, DDoS protection
Application protectionWAF for web apps, API gateway for APIs, bot protection for public login, search, registration, and transaction flows
Transport securityTLS 1.2 or higher, strong certificate lifecycle management
Origin protectionOnly allow traffic from approved WAF, CDN, or gateway paths
Network controlSecurity groups, firewall rules, and routing limited to approved paths

Do not expose cloud load balancers, storage buckets, databases, Kubernetes APIs, or management endpoints directly to the internet unless there is a documented exception.

Good origin protection patterns include private load balancers, WAF/CDN source allow-listing, mTLS for sensitive service paths, blocked public storage access, and signed URLs or cookies for controlled content.

The rule is simple: the internet should reach your control layer first, not your workload directly.


4. Restrict Egress, But Do It Practically

Cloud workloads should not have unrestricted outbound internet access.

Egress PatternCore Purpose & Use Case
Cloud-native firewallFQDN filtering and TLS inspection
Secure web gatewayControlled egress proxying for enterprise workloads
NAT gatewayBasic outbound internet translation with restrictive routing and logs
Private endpoints / PrivateLinkDirect, private access to internal or managed cloud services
Service endpointsPlatform resource network access policies
On-premises tunnelCentralized inspection or legacy integrations (avoid default routing if it causes latency)

All egress must pass through an approved control point and be logged. Prefer private endpoints over public paths for sensitive managed services (storage, databases, secrets, container registries, logs).


5. Treat Identity as the Main Security Boundary

In the cloud, identity is the primary boundary. A flawed IAM policy exposes more than a misconfigured firewall rule.

Access TargetRequired Security Controls
User AccessCorporate SSO integration, MFA (phishing-resistant for admins), regular access reviews
Privileged AccessJust-In-Time (JIT) approvals, separate break-glass accounts, no shared admins or long-lived user keys
Workload AccessService accounts with least privilege, workload identities instead of static secrets
SaaS VendorsReview administrator SSO bypass, local account disablement, logs, session recordings, and customer data access policies

Avoid broad wildcard permissions (e.g., Owner, AdministratorAccess, unrestricted key/IAM permissions). Identity is your control plane: protect it first.


6. Encrypt Data, But Focus on Key Control

Encryption requires knowing what is encrypted, who controls/uses the keys, and how rotation, deletion, and backups are handled.

Data ClassificationEncryption & Key Controls
Low / InternalPlatform-managed encryption (if supported by risk assessment)
ConfidentialCustomer-managed keys (CMK)
Highly ConfidentialCMKs with HSM backup, environment separation, separated key administrators, rotation, usage logs, key destruction plans, and backup encryption checks
ExtremeDouble encryption, external key management, or application-level encryption

Never assume Bring Your Own Key (BYOK) solves all isolation problems. If cloud administrators can bypass key policies, read data, and disable logs, the control is ineffective. Separating key administration from workload administration is vital.


7. Build Logging Before Go-Live

Cloud logging must be designed before production. Do not wait for an incident to discover that logs were disabled, overwritten, or retained for too short a period.

Log sourceWhat to collect
Cloud platformControl plane logs, IAM sign-ins, privileged activity, key management logs
NetworkFlow logs, DNS logs, load balancer logs, WAF logs, API gateway logs
Data servicesDatabase audit logs, storage access logs, backup and restore events
SaaSAdministrator logs, user access logs, support access logs where available
WorkloadsEndpoint, server, container, and workload security logs

For databases, audit sensitive administrative and data access activity, including schema changes, permission changes, failed logins, privileged queries, and bulk exports.

Send important logs to a central SIEM or security data lake in near real time.

Protect logs from tampering. Store them separately, restrict delete permissions, use immutable storage where possible, monitor logging disablement, and alert on policy changes.

A cloud system without usable logs is not production-ready.


8. Use CSPM, But Do Not Depend on It Alone

CSPM is useful for detecting cloud misconfigurations and drift from baseline.

CSPM helps detectCSPM does not fully solve
Public storagePoor application logic
Overly permissive security groupsBad business authorization
Weak IAM policiesInsecure APIs
Missing encryptionWeak SaaS tenant isolation
Disabled loggingOver-permissioned SaaS administrators
Exposed databasesData leakage through approved channels
Non-compliant configurationsPoor incident response or vendor operations

Use CSPM as a continuous control monitor, not as a replacement for secure architecture, threat modelling, penetration testing, vendor due diligence, or application security review.

For mature environments, combine CSPM with CIEM, CWPP, CDR, CASB or SSE, SSPM (which helps identify when software-as-a-service (SaaS) environments are leaking data), IaC scanning, and policy-as-code in deployment pipelines.

Security should be enforced before deployment, not only detected after deployment.


9. Apply Tenant Restrictions for SaaS

SaaS creates a specific risk: users may access unmanaged tenants or personal accounts from corporate devices, browsers, or networks.

Examples include personal Microsoft 365 tenants, external Entra ID tenants, personal Google accounts, unapproved Dropbox or GitHub organizations, and shadow AI workspaces.

For high-risk SaaS platforms, restrict access to approved tenants or workspaces only.

ControlPurpose
Tenant restriction headersLimit access to approved SaaS tenants
Conditional accessEnforce user, device, location, and risk conditions
CASB or secure web gateway policyControl SaaS access and uploads
Browser isolationSeparate unmanaged tenant access where needed
DLP controlsReduce leakage through approved SaaS channels
Device compliance checksBlock unmanaged or non-compliant devices
Download, upload, copy, and paste controlsLimit movement to personal or unmanaged accounts where justified

This is most important for SaaS platforms that store documents, source code, customer records, email, regulated data, or AI prompts and outputs.

The goal is simple: corporate users should access corporate data through approved tenants, not unmanaged workspaces.


10. Review Vendor Security Beyond Certifications

ISO 27001 and SOC 2 Type II are useful, but they are not enough. Review the actual scope and operating model.

AreaWhat to verify
Report scopeService, region, environment, cloud platform, data center, and production coverage
ExceptionsExclusions, unresolved findings, user entity controls, and control gaps
Data locationWhere data is stored, processed, backed up, and accessed from
SubprocessorsWho they are, where they operate, and what data they can access
Tenant isolationHow isolation is designed, tested, monitored, and evidenced
Privileged accessHow vendor support access is approved, logged, time-bound, and reviewed
AI and data useWhether customer data is used for model training or retained after termination
Incident responseNotification timelines, evidence sharing, and customer communication process

For cloud-hosted vendors, review the hyperscaler evidence, but do not stop there. The vendor’s configuration, access model, logging, tenant isolation, support process, and subcontractor chain matter more than the hyperscaler certificate.

A secure hyperscaler does not automatically make the SaaS vendor secure. Use structured third-party assessments for evaluating third-party vendor security controls and reviewing subcontractor flows.


11. Contract the Controls That Matter

Security requirements must be written into the contract, not left as verbal assurance.

Control areaWhat to include
Data locationApproved regions, data residency, backup location, data transfer limits
Third partiesSubprocessor list, notification process, approval rights where possible
Encryption and keysEncryption requirements, key ownership, key management, key rotation expectations
Logging and auditLog availability, audit access, admin activity evidence, retention expectations
Incident responseNotification timeline, breach cooperation, evidence sharing, escalation path
Vulnerability managementRemediation timelines, penetration testing obligations, retest expectations
Assurance rightsRight to audit or equivalent assurance through independent reports
Exit and deletionData deletion, backup retention, exit support, return of data, termination handling
Regulatory supportCooperation for regulator requests, audits, and investigations

Be practical with audit rights. Large hyperscalers and major SaaS providers may not allow direct customer audits. In those cases, require equivalent assurance such as SOC 2 Type II, ISO 27001, CSA CAIQ, penetration test summaries, independent assessment reports, customer audit programs, or contractual rights to request additional evidence.

The goal is not to collect documents. The goal is to prove that critical risks are controlled.


12. Define Cloud Go-Live Criteria

No production cloud workload should go live based only on project urgency. Use clear go-live criteria.

AreaMinimum go-live check
ArchitectureArchitecture reviewed, shared responsibility mapped, data classification completed
IdentityIAM reviewed, MFA enforced, privileged access controlled
NetworkIngress restricted, egress controlled, private access used where required
Data protectionEncryption enabled, key ownership defined, backup configured, restore tested
Logging and monitoringLogs enabled, SIEM integration tested, alerting confirmed
Security testingVulnerability scan completed, critical and high findings fixed or risk-accepted
OperationsIncident runbook prepared, support ownership confirmed, rollback plan documented
Vendor and contractVendor assurance reviewed, contractual security clauses agreed, exit plan documented

If a control is missing, record it as a risk. Do not hide it as a project dependency.


Key Takeaways

Cloud security is not achieved by buying cloud services. It is achieved by designing clear controls around identity, data, network paths, keys, logs, and vendor operations.

Use three rules:

  1. Isolate what matters. Separate environments, data, keys, logs, and privileges.
  2. Control every path. Review ingress, egress, admin access, support access, API access, and SaaS tenant access.
  3. Prove it continuously. Use logs, CSPM, SIEM, access reviews, testing, and vendor assurance to confirm that controls continue to work.

The cloud provider secures the foundation. You still own the risk of what you configure, expose, store, and operate.


References