How jseb37/devsecops-project works
Main Components Identification
• Frontend Application: Represented by React components (files under src/components, src/pages, etc.) that comprise the user interface (e.g., HomePage, WatchPage).
• Containerization: Illustrate the Docker build process which generates the container image (Dockerfile, .dockerignore, etc.). Include the TMDB API key build arg integration.
• Source code checkout,
• Code quality and security scanning via SonarQube, Trivy, and OWASP Dependency-Check,
• Dependency installation,
• Docker build and push,
• Deployment to a container.
• Deployment Infrastructure:
• AWS EC2: The host where Docker and CI/CD tools reside.
• Kubernetes: Shown with deployment YAML files under the Kubernetes directory, used for orchestrated container deployment.
• Monitoring Stack:
• Prometheus: For scraping metrics (with associated Node Exporter running on nodes).
• Grafana: For visualizing these metrics.
• Notification & Security Tools: Include not only the static analysis and scanning tools (SonarQube, Trivy, Dependency-Check) but also the integration with external sources like the TMDB API.
Architectural Patterns and Design Principles
• Component Separation: Clearly show the distinction between the frontend (React application) and the underlying infrastructure (CI/CD, container orchestration, security, and monitoring).
• Containerization & Orchestration: Emphasize design principles such as container immutability and the role of Kubernetes in scaling and managing the services.
• DevSecOps Integration: Highlight how security (via SonarQube, Trivy, and Dependency-Check) is tightly coupled in the CI/CD flow, ensuring quality releases.
Relevant Technologies, Frameworks, and Libraries
• Frontend: React with TypeScript, Material UI components (e.g., MUI since image assets hint at Netflix-like UI).
• Containerization: Docker.
• CI/CD: Jenkins (with configuration for Java, Node.js, and plugins like SonarQube Scanner).
• Security: SonarQube, Trivy, OWASP Dependency-Check.
• Monitoring: Prometheus (with node exporter), Grafana.
• Orchestration: Kubernetes (YAML deployments, services, node-service configurations) and ArgoCD for deployment synchronization.
• Cloud: AWS EC2, with additional usage of AWS EKS for Kubernetes if needed.
Detailing the DevSecOps Pipeline
• Clean workspace
• Checkout from Git
• Code Quality Analysis using SonarQube
• Quality Gate confirmation
• Dependency installation via npm
• Security scans (OWASP Dependency-Check and Trivy)
• Docker Build & Push (including DockerHub credential steps)
• Deployment to container and image scan confirmation post-push.
• Integrations such as Jenkins credentials (Sonar token, Docker credentials) and external API integrations.