Preserve the existing Chapter 4 Jenkinsfile and tests.
Do not commit credentials, tokens, or private SSH keys.
Do not deploy untested changes directly to production.
Do not remove existing Docker volumes or services.
Do not claim prepared configurations have been deployed or verified.
Merge only after review and authorization.
Completion Criteria
Preparation is complete when T1–T13 are committed and documented.
The assignment is complete only after Sergio verifies S1–S22 and the final PDF is successfully generated and submitted.
# Chapter 6 — Secure Delivery and Rollback
## Objective
Implement a secure, reproducible CI/CD pipeline using Jenkins, Docker, Ansible, and the existing DigitalOcean infrastructure.
The pipeline must test, scan, build, publish, deploy, verify, promote, and roll back the Startup Pricing Service.
Preserve all existing Chapter 4 and Chapter 5 infrastructure, configurations, and data.
## Team Responsibilities
### Turan — Preparation (T1–T13)
- [ ] T1: Create tracking issue and feature branch.
- [ ] T2: Import the instructor-provided v1/v2 application.
- [ ] T3: Prepare application tests.
- [ ] T4: Prepare reproducible dependency and build inputs.
- [ ] T5: Prepare Ansible deployment configuration.
- [ ] T6: Develop the Jenkins delivery pipeline.
- [ ] T7: Prepare security gates and test fixtures.
- [ ] T8: Prepare release traceability templates.
- [ ] T9: Prepare rollback and recovery procedures.
- [ ] T10: Prepare monitoring integration.
- [ ] T11: Prepare architecture and operational runbooks.
- [ ] T12: Prepare Chapter 6 LaTeX documentation.
- [ ] T13: Perform preparation audit and handoff.
### Sergio — Implementation and Verification (S1–S22)
- [ ] S1–S4: Review prepared files, verify infrastructure, configure trusted agent and credentials.
- [ ] S5–S6: Configure OCI registry and staging/production HTTPS.
- [ ] S7–S9: Validate application, pipeline, and security enforcement.
- [ ] S10–S15: Build, publish, deploy, approve, and verify v1/v2 releases.
- [ ] S16–S17: Execute both rollback and recovery scenarios.
- [ ] S18–S19: Integrate monitoring and collect actual evidence.
- [ ] S20–S22: Finalize LaTeX documentation, generate PDF, audit, and submit.
## Required Deliverables
- Working v1/v2 Flask pricing service with unit tests.
- Reproducible Docker images and immutable image digests.
- Security scanning with a demonstrated blocked pipeline.
- Jenkins pipeline with authorized production approval.
- Ansible staging and production deployment with idempotence.
- HTTPS endpoints with version, commit, health, and pricing verification.
- Healthy production rollback from v2 to v1.
- Failed staging deployment and recovery demonstration.
- Production availability monitoring through Prometheus/Grafana.
- Updated team IT manual PDF with verified evidence.
## Repository and Branch
Repository: group10-startup/startup-product
Planned feature branch: chapter6-secure-delivery
## Safety Requirements
- Do not modify main during preparation.
- Preserve the existing Chapter 4 Jenkinsfile and tests.
- Do not commit credentials, tokens, or private SSH keys.
- Do not deploy untested changes directly to production.
- Do not remove existing Docker volumes or services.
- Do not claim prepared configurations have been deployed or verified.
- Merge only after review and authorization.
## Completion Criteria
Preparation is complete when T1–T13 are committed and documented.
The assignment is complete only after Sergio verifies S1–S22 and the final PDF is successfully generated and submitted.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Chapter 6 — Secure Delivery and Rollback
Objective
Implement a secure, reproducible CI/CD pipeline using Jenkins, Docker, Ansible, and the existing DigitalOcean infrastructure.
The pipeline must test, scan, build, publish, deploy, verify, promote, and roll back the Startup Pricing Service.
Preserve all existing Chapter 4 and Chapter 5 infrastructure, configurations, and data.
Team Responsibilities
Turan — Preparation (T1–T13)
Sergio — Implementation and Verification (S1–S22)
Required Deliverables
Repository and Branch
Repository: group10-startup/startup-product
Planned feature branch: chapter6-secure-delivery
Safety Requirements
Completion Criteria
Preparation is complete when T1–T13 are committed and documented.
The assignment is complete only after Sergio verifies S1–S22 and the final PDF is successfully generated and submitted.