عرض عملي: تحصين ملف prod
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
apply all controls in one profile. Prepares JNR-042-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Create
application-prod.yml; replace secrets with environment variables. - Restrict Actuator to
health,info. - Add security headers and HSTS; set forwarded-header handling for the proxy.
- Add the dependency scanner to the build and run it; read the report.
- Planned mistake: leaving
management.endpoints.web.exposure.include=*from development;/actuator/envshows config. Fix: restrict it and re-test. - Grep the logs for passwords and tokens.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.