LightMySky
به انگلیسی

Authentication, Authorisation and Secure Defaults

Proving who someone is and deciding what they may do are two questions, and confusing them is a common source of holes. Storing credentials with a slow hash, giving each part the least access it needs, and failing closed are the defaults that hold up when something else goes wrong.

شروع یادگیری این موضوعبه حساب کاربری نیازی نیست. پیشرفت در همین مرورگر ذخیره می‌شود.

کارهایی که یادگیرنده بعد از این درس می‌تواند انجام دهد

  • Separate an authentication decision from an authorisation decision in a stated design
  • Say why passwords are stored with a deliberately slow hash and a per-user salt
  • Apply least privilege to a service and name what it no longer needs

۱ · بخوان

Two questions guard every system, and mixing them opens holes. Authentication asks who you are, checking a password or fingerprint. Authorisation asks what you may do now that you are known, like Sam may read a file but not delete it.

Try it together

Maya proves she is Maya with her password, which is authentication. The list then says she may read the rota but not edit pay, which is authorisation. If the login server is down, a new request that needs the check stays at no until the check returns.

Passwords are stored as salted hashes made with a deliberately slow method. A stolen list hides passwords but an attacker can still guess and check each try. Salt gives each person a unique hash so one calculation cannot be reused, and slowness raises the cost of guessing without making recovery impossible. Give every part the least access it needs, and fail closed when unsure.

To apply least privilege, list what a service touches today and strip what it never needs. Name each removal aloud, like the rota reader no longer needs pay files or the master key.

who are youauthorisation sets limitsno proof means no
Authentication names the visitor, authorisation sets limits, and no proof keeps the door shut.

Slow hashing prices each guess. A stolen list invites guessing, fast hashes keep it cheap, and a slow method makes every try cost time without making weak passwords safe.

A signed-in owner opening a pay record outside their permitted scope shows failed authorisation. Sign-in already worked, so identity is not the gap; the missing limit on what follows is.

Prove who, then limit what, store secrets slowly and salted, and shut rather than wave through when in doubt.

Wholly original in-repo reading.

۲ · ببین

به انگلیسی

دور از صفحه‌نمایش

چاپ کاربرگکاغذ A4، با یک صفحهٔ جواب‌ها برای بزرگ‌ترها. بدون صفحه‌نمایش، بدون اینترنت.

جایگاه این موضوع

اول این‌ها را یاد بگیر

پیوندهای اختیاری

این موضوع راه این‌ها را باز می‌کند

هنوز چیزی بر آن بنا نمی‌شود.

سپس تمرین

۸ سؤال پشت این درس منتظرند، هر کدام با پاسخ توضیح‌داده‌شده. هر پاسخ آسمان را پر می‌کند: ستاره‌ها هنگام یادگیری روشن می‌شوند و وقتی زمان برگشتن است کمرنگ می‌شوند.

شروع یادگیری این موضوع