π‘οΈ Identity, Security & Governance
Security in the cloud is not just about strong passwordsβit is about architectural discipline, least privilege, and knowing who is responsible for what.
Let's explore the fundamental security frameworks that keep billions of users safe every single day!
π€ 1. The Shared Responsibility Modelβ
A common beginner misconception is thinking: "Because I moved to AWS/Azure/GCP, the cloud provider will automatically protect all my data from hackers!"
That is only half true! Security in the cloud is a partnership:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π€ THE SHARED RESPONSIBILITY MODEL β
ββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ€
β βοΈ SECURITY OF THE CLOUD β π€ SECURITY IN THE CLOUD β
β (The Cloud Provider's Job) β (YOUR Job as the Customer) β
ββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββ€
β β’ Physical datacenter perimeter β β’ Customer Data & Database tables β
β β’ Armed guards & cameras β β’ User Passwords & MFA Keys β
β β’ Hypervisor firmware isolation β β’ IAM Permission Policies β
β β’ Power, AC & Fiber Cables β β’ Operating System Security Fixes β
β β’ Hardware shredding of dead disks β β’ Firewall (NSG) Port Rules β
ββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββ
π‘ The Hotel Room Analogy: The hotel management is responsible for the building foundation, fire alarms, lobby security, and elevator maintenance (Security OF the Hotel). But if you leave your hotel room door wide open with your wallet sitting on the pillow, that is your mistake (Security IN the Hotel)!
πͺͺ 2. Identity & Access Management (IAM)β
IAM is the digital bouncer of your cloud account. It answers two critical questions:
βββββββββββββββββββββββββββββββββββββββββββ
β πͺͺ IAM β
ββββββββββββββββββββββ¬βββββββββββββββββββββ€
β 1. Authentication β 2. Authorization β
β (AuthN) β (AuthZ) β
β "Who are you?" β "What are you β
β (Username/Password β allowed to do?" β
β + MFA Token) β (Read, Write, Del) β
ββββββββββββββββββββββ΄βββββββββββββββββββββ
ποΈ The Principle of Least Privilegeβ
Always grant users, developers, and applications the bare minimum permissions needed to perform their job, and nothing more!
- A junior intern needs read-only access to view logsβnever grant them administrator permissions to delete the entire production database!
π 3. Role-Based Access Control (RBAC)β
Instead of manually assigning permissions to 500 individual employees, you assign permissions to Roles, and add employees to the appropriate Group:
ββββββββββββββββ βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
β π€ Alice β βββΊ β π Role: "Billing Admin"β βββΊ β π³ View & Download β
β (Accountant) β β β β Monthly Invoices β
ββββββββββββββββ βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
ββββββββββββββββ βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
β π€ Bob β βββΊ β π Role: "DevOps Lead" β βββΊ β π Launch & Restart β
β (Engineer) β β β β Virtual Machines β
ββββββββββββββββ βββββββββββββββββββββββββββ βββββββββββββββββββββββββββ
π 4. Resource Locks: Preventing Accidental Disastersβ
Have you ever accidentally deleted an important file and panicked? In cloud architecture, a developer running a script with a typo could accidentally delete a live production database serving 10 million customers!
To prevent this, cloud platforms offer Resource Locks:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π RESOURCE LOCK TIERS β
ββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ€
β π‘ Read-Only Lock β π΄ CanNotDelete Lock (Delete Lock)β
ββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββ€
β Authorized users can read and view β Authorized users can read and β
β resources, but CANNOT modify or β modify resources, but NOBODY can β
β delete anything! β delete it until lock is removed. β
ββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββ
:::tip π― Top 3 Cloud Security Rules
- Never use the Root Account for everyday tasksβcreate named IAM users.
- Enable Multi-Factor Authentication (MFA) on every single account.
- Never hardcode passwords or API keys in GitHub code repositories! :::