انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهJNR-035-L04

أقل الصلاحيات والدفاع المتعمق

  • الدرس 4 من 6
  • Junior
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

apply two core design rules.

الموضوعات المخطط لها

  • Least privilege: give each user, service, and database account only the access it needs.
  • Defense in depth: several layers, so one failure is not a breach.
  • Example layers: authentication, authorization check, validation, database permissions, logging.
  • Do not rely on a single check, such as a hidden button in the UI.
  • Review defaults: new accounts start with the lowest role.
تفاصيل المخطط المبدئي

عرض عملي

the Shop database user has only SELECT/INSERT/UPDATE/DELETE on its own schema, not admin rights.

اختبر فهمك

Why have both an API check and limited database rights?

أظهر الإجابة

If one fails, the other still limits the damage.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.