إحكام إغلاق Actuator
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
expose only the safe operational endpoints.
الموضوعات المخطط لها
- Actuator exposes health, metrics, environment, and more; some endpoints reveal secrets or allow actions.
- Expose only what is needed:
management.endpoints.web.exposure.include=health,info. - Never expose
env,heapdump,beans, orshutdownpublicly. - Protect the rest with authentication and a role, or run them on a separate management port.
- Hide health details from anonymous callers.
تفاصيل المخطط المبدئي
عرض عملي
management:
endpoints.web.exposure.include: health,info
endpoint.health.show-details: neverاختبر فهمك
Which endpoint can leak configuration values?
أظهر الإجابة
/actuator/env.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.