Repository navigation
Security/reduce cves - #4
Conversation
- Purge $PHPIZE_DEPS (gcc, g++, make, libc6-dev, linux-libc-dev...) after installing PHP extensions, protecting runtime libs detected via ldd - Build-time checks: no missing libs, identical php -m, no linux-libc-dev, valid Apache config - Pin mlocati/php-extension-installer to 2.12.0 instead of latest - Add Trivy scan workflow (build without push, action pinned by SHA)
…y compiler remains
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughLes Dockerfiles épinglent l’installateur PHP, suppriment les outils de compilation et ajoutent des contrôles de bibliothèques, de modules PHP et de configuration Apache. Un workflow construit l’image localement, publie un rapport Trivy et échoue si une vulnérabilité critique corrigible subsiste. ChangesDurcissement et analyse de l’image
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant Buildx
participant Trivy
participant JobSummary
GitHubActions->>Buildx: Construit l'image webapp:scan
Buildx->>Trivy: Transmet l'image locale à analyser
Trivy->>GitHubActions: Produit le rapport et le résultat du contrôle critique
GitHubActions->>JobSummary: Ajoute le rapport au résumé du job
Merge Risk: ⚪ Minimal · up to The scan builds the intended hardened image, and no actionable merge risk was identified. Normal build and CI checks remain appropriate. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Un lapin suit l’image au jardin, Comment |
This pull request introduces significant improvements to the Docker build process and CI security scanning for the project. The main focus is on enhancing security by removing unnecessary build tools from the final image, improving build reproducibility, and adding automated vulnerability scanning in CI.
Docker image hardening and reproducibility:
dockerfileanddockerfile.template) now pin the version ofmlocati/php-extension-installerinstead of usinglatest, ensuring reproducible builds. [1] [2]Continuous Integration security improvements:
.github/workflows/security-scan.ymlis introduced, which builds the Docker image locally (without publishing) and scans it for vulnerabilities using Trivy. The workflow blocks merges if fixable CRITICAL CVEs are found and publishes a summary report in the job output. The Trivy action is pinned by commit SHA for security.Summary by CodeRabbit