Chapter 6 — Secure Delivery and Rollback #10

Open
opened 2026-11-11 01:09:52 +00:00 by turanisl · 0 comments
Collaborator

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.

# 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.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: group10-startup/startup-product#10