فحص الصور (Image Scanning)
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
scan container images and keep base images current.
الموضوعات المخطط لها
- Images carry operating-system packages as well as Java libraries; scan both (Trivy, Grype, or the registry's scanner).
- Pin the base image by version, ideally by digest, and rebuild regularly to get patches.
- Prefer small, maintained bases (distroless or slim); fewer packages means fewer findings.
- Run as a non-root user; keep build tools out of the final image with a multi-stage build.
تفاصيل المخطط المبدئي
عرض عملي
trivy image --severity HIGH,CRITICAL --exit-code 1 shop/orders:1.4.2 failing the build on findings.
اختبر فهمك
Why pin the base image?
أظهر الإجابة
So builds are reproducible and updates are deliberate, not accidental.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.