Track
Security & Identity lessons
42 short lessons on Security & Identity. Each one starts from a real situation, shows how it works, and ends with a quiz. Free to read.
All 42 lessons
- Hardening SSH: key-only login, bastion hosts and fail2banIntermediate · 6 min
Ten minutes after a VM gets a public IP, thousands of password guesses arrive. Keys, one config detail about file order, and a single entry point turn that noise into…
- Secrets Manager, Parameter Store and KMSIntermediate · 5 min
A database password sits in a user-data script and in Git history, readable by anyone who can describe the instance. AWS has two places to keep it, one key service…
- Secret rotationIntermediate · 5 min
The orders database password is 14 months old and appears in three CI logs. Rotation replaces it on a schedule in two places at once, and the app has to keep up or the…
- External SecretsBeginner · 4 min
External Secrets syncs values from external secret managers.
- Envelope encryptionBeginner · 4 min
Envelope encryption encrypts data keys under master keys.
- KMS key policyBeginner · 4 min
KMS key policy governs access to cryptographic keys.
- Workload identityBeginner · 4 min
Workload identity binds runtime workload to a scoped identity.
- SPIFFE IDBeginner · 4 min
SPIFFE ID identifies workloads through a standard identity URI.
- mTLS policyBeginner · 4 min
mTLS policy requires mutually authenticated service connections.
- Network segmentationBeginner · 4 min
Network segmentation restricts lateral traffic between workloads.
- Scanning images for known vulnerabilitiesIntermediate · 6 min
A base image pulled six months ago carries a library with a fixed critical flaw, and the pipeline passed because nothing reads the image's package list. A scanner reads…
- Admission controlBeginner · 4 min
Admission control validates workloads at cluster entry.
- Signed provenanceBeginner · 4 min
Signed provenance records how build artifacts were produced.
- Runtime detectionBeginner · 4 min
Runtime detection detects suspicious execution patterns.
- Threat modelBeginner · 4 min
Threat model documents assets adversaries and attack paths.
- STRIDEBeginner · 4 min
STRIDE categorizes common threat classes.
- Least-privilege reviewBeginner · 4 min
Least-privilege review audits granted permissions against usage.
- Authentication versus authorizationBeginner · 4 min
Authentication establishes who the caller is, and authorization decides what that caller may do with a specific resource. A valid token passes the first check and still…
- IAM least privilegeIntermediate · 4 min
Least privilege gives a principal only the actions, resources and conditions a task needs. Activity data shows which grants are unused, so broad roles can be narrowed…
- Policy evaluationIntermediate · 4 min
AWS policy evaluation starts with an implicit deny. Allows from identity and resource policies combine, but an explicit deny in any applicable layer overrides them all.
- RBAC permissionsIntermediate · 4 min
Kubernetes RBAC grants rules through roles and bindings, and it has no deny rule. A subject holds the union of every rule it is bound to, so wide bindings must be found…
- ABAC attributesIntermediate · 4 min
Attribute-based access control decides from attributes of the subject, object and environment. Rules can follow the data more precisely than roles, but each attribute…
- OIDC flowsIntermediate · 4 min
OpenID Connect adds identity to OAuth 2.0. The authorization code flow with PKCE keeps tokens on the back end, while the implicit flow exposes them in the browser.
- JWT validationIntermediate · 4 min
A JWT can be read by anyone, so a service must verify the signature, algorithm, issuer, audience and expiry before it trusts any claim. Decoding alone is not validation.
- OAuth scopesIntermediate · 4 min
OAuth scopes name the permissions a client requests, and the server may grant less. The resource server must check the granted scope on every request, because a valid…
- PKI chain of trustIntermediate · 4 min
A certificate chain links a leaf certificate to a trusted root through intermediates. Each link must verify, and clients that cannot fetch missing intermediates fail…
- Certificate rotationAdvanced · 4 min
Certificate rotation replaces a credential before it expires, with overlap so clients can move. Many outages come from a renewed file that the service never reloads.
- mTLSAdvanced · 4 min
Mutual TLS proves that a client holds a trusted key. The handshake does not decide what the client may do, so the application must map the identity to permissions.
- KMS envelopesAdvanced · 4 min
Envelope encryption wraps a data key with a KMS key, and the data key encrypts the bulk data locally. Only the encrypted data key is stored with the data, which keeps…
- Supply chain signingAdvanced · 4 min
Signing binds an artifact's digest to an identity, and verification checks the signature against the identity the pipeline should use. Deploy by digest so that a moved…
- SBOM vulnerabilitiesAdvanced · 4 min
An SBOM lists the components in a build, and scanners match that list against advisories. Its gaps and version quirks decide what the scanner can see, so a clean scan…
- Runtime securityAdvanced · 4 min
Runtime security watches what a workload does after it starts, such as process starts and connections. Detection reports those events, and prevention stops them, so the…
- Seccomp filtersAdvanced · 4 min
Seccomp lets the kernel check each system call against a filter and refuse the ones a workload does not need. The filter sees call numbers and argument values, not the…
- Linux capabilitiesAdvanced · 4 min
Linux capabilities split root's power into named parts, so a workload can get one privilege without the rest. The effective set is what counts at the moment of a…
- Pod security admissionAdvanced · 4 min
Pod Security Admission applies the Pod Security Standards to a namespace through labels, and it can warn, audit or enforce. Enforce blocks new pods, so a safe rollout…
- Kubernetes network policiesAdvanced · 4 min
A NetworkPolicy selects pods and lists the traffic they may use. Once a pod is selected, only matching allow rules pass, and the rules add up across policies.
- Audit loggingAdvanced · 4 min
Kubernetes audit logs record API requests at a level set by an ordered policy file. The first matching rule decides the level, so rule order decides what gets recorded.
- Incident forensicsAdvanced · 4 min
Forensics collects evidence in order of volatility and preserves it with hashes and timestamps. Work from copies, not originals, and capture fragile state before any…
- Threat modelingAdvanced · 4 min
Threat modeling maps a system's parts, data flows and trust boundaries, then asks STRIDE questions at each one. The model is useful only when it changes with the design.
- KMS envelopes: operational verificationAdvanced · 4 min
Envelope encryption stores data under a data key, and stores that key encrypted under a KMS key. Checking the bucket setting is not enough, so verify the key ID stored…
- Workload identity: failure analysisAdvanced · 4 min
IRSA lets a pod assume an IAM role through a projected OIDC token, with no stored keys. Failures usually sit in the identity variables, the trust policy subject, or the…
- Supply chain signing: operational verificationAdvanced · 4 min
A signature binds a digest to a trusted identity, and verification checks both. Verify the digest the cluster runs, not a tag, and pin the expected signer identity and…