How brenesrm/devsecops-nyit-van works
Main Components
• Application Code: Highlight the Flask-based Python web application (app.py) along with the vulnerable variant (app_vulnerable.py) to illustrate secure coding contrasts.
• Frontend Assets: Include the static directory (for CSS) and templates directory (HTML) which comprise the user interface.
• Containerization: Represent the Docker components – the primary Dockerfile and the Dockerfile-hardened variant – used for containerizing the application.
• Infrastructure as Code: Emphasize the Kubernetes (k8s folder) configurations including both standard and hardened cluster definitions, and the Argo CD setup from the argo folder for GitOps-based deployment.
• CI/CD Pipeline and Security Workflows: Show the GitHub workflows within the .github directory and note additional test scripts from the Documentation/tests directory along with security scanning configurations (e.g., CodeQL, Dependabot, Trivy, secret analysis).
Relationships and Interactions
• CI/CD process feeding into the Containerization stage, where the Docker images are built.
• Deployment flows from Docker images into the Kubernetes clusters. Connect these clusters to the Argo CD configurations that manage and monitor deployments.
• Interaction between the web application container and the database (init_db.py and test.db) as a backend service.
Architectural Patterns and Design Principles
• Separation of Concerns: Clearly separate the frontend (static assets, HTML templates) from the backend logic (Flask in app.py) and database management.
• CI/CD and GitOps: Emphasize the role of automated workflows (located in .github and Documentation/old-workflows) and the use of Argo CD for deploying in Kubernetes.
• Security Integration: Illustrate embedded security practices at every stage—code analysis, container hardening, and runtime security—demonstrating the DevSecOps approach.
With Relevant Technologies and Tools
• Mention Flask as the web framework.
• Docker for containerization, alongside dedicated Docker hardening strategies.
• Kubernetes as the orchestrator, with Argo CD for deployment management.
• GitHub Actions for CI/CD automation, supported by tools like CodeQL, Dependabot, and Trivy for security scanning.
• Use of LaTeX (project.tex) for generating documentation and reports.