Skip to content

Security

A request crosses a network, reaches a service, carries some proof of who sent it, and asks for something. Each of those steps has a control, and each control answers one question and no other. This module separates the questions: who is calling, may they do this, can anyone on the wire read it, can anyone who steals a disk read it, and what does a leaked credential reach.

You will follow a first request message by message with a session cookie, a JWT and an opaque token, and see what each check costs in milliseconds. You will sort controls by the question they answer, check your reasoning with two short quizzes, and finish with a quiz over the whole module. Every claim is tied to an RFC, an OWASP cheat sheet or NIST’s zero trust document, and every model simplification is marked.

  1. Authentication and authorization (18 min). Who is calling and what they may do, where each is asked along a request, and what a 401 and a 403 mean.
  2. Sessions and tokens (22 min). A session cookie, a JWT checked locally and an opaque token that is introspected: the messages each needs, and what none can take back.
  3. TLS and encryption (20 min). What TLS gives and where it ends, what encryption at rest stops, and why the key’s place decides everything.
  4. Secrets and least privilege (18 min). Where secrets live, how rotation shortens a leak, and how least privilege shrinks what it reaches.
  5. Zero trust (20 min). Why being inside the network is no credential, and what asking on every request costs.
  6. Recap and quiz (12 min). The module in one page, a review checklist, and a quiz.
  • Say which of authentication, authorization and encryption a given control is, and what it does not protect against.
  • Predict how the first-request time changes between a session cookie, a JWT and an opaque token, and name the window in which a cancelled token still works.
  • Explain what TLS covers, where its protection ends, and which threats encryption at rest does and does not stop.
  • Keep secrets out of code, limit how long and how far a leaked credential works, and respond when one leaks.
  • Describe zero trust as principles, and say what it bounds and what it does not prevent.

The times in the flow are the floor that round trips set, not measurements of any product. This module gives the vocabulary and the cost of each control. It does not promise that a system built from it is secure.

Built by GhaziAlibi.

© ShardCraft. All rights reserved.