Chapter 6: Secure Delivery and Rollback Preparation #11

Open
turanisl wants to merge 27 commits from chapter6-secure-delivery into main
Showing only changes of commit d9a9668e43 - Show all commits
@@ -0,0 +1,89 @@
# Chapter 6 — Release Traceability
## Purpose
Track the relationship between application source, build inputs,
security results, immutable container images, deployment configuration,
approval, and observed application behavior.
All release values must come from actual Jenkins, Docker, Ansible,
and HTTPS verification results.
Do not replace missing evidence with assumed values.
## Release Records
| Field | v1 | v2 |
|---|---|---|
| Application version | v1 | v2 |
| Expected total for quantity 3 | USD 30 | USD 36 |
| Application source commit | PENDING | PENDING |
| Deployment configuration commit | PENDING | PENDING |
| Jenkins build number | PENDING | PENDING |
| Jenkins build URL | PENDING | PENDING |
| Python base-image digest | PENDING | PENDING |
| Image architecture | PENDING | PENDING |
| Published registry image | PENDING | PENDING |
| Immutable repository digest | PENDING | PENDING |
| Dependency scan result | PENDING | PENDING |
| Secret scan result | PENDING | PENDING |
| Image vulnerability scan result | PENDING | PENDING |
| Staging deployment time | PENDING | PENDING |
| Staging verification result | PENDING | PENDING |
| Production approver | PENDING | PENDING |
| Production approval time | PENDING | PENDING |
| Production deployment time | PENDING | PENDING |
| Production verification result | PENDING | PENDING |
| Evidence links | PENDING | PENDING |
## Immutable Promotion Verification
For each release:
1. Record the immutable repository digest produced by the approved build.
2. Deploy that digest to staging.
3. Verify the application version, source commit, health, and price.
4. Obtain authorized production approval.
5. Deploy the identical digest to production without rebuilding.
6. Verify the production application over HTTPS.
7. Record both deployment results and their timestamps.
The staging and production image digests must match exactly.
## Rollback Traceability
Record the following for each recovery demonstration:
| Field | Healthy v2-to-v1 rollback | Failed staging deployment |
|---|---|---|
| Initial release/configuration | PENDING | PENDING |
| Failure or rollback trigger | PENDING | PENDING |
| Decision timestamp | PENDING | PENDING |
| Recovery start timestamp | PENDING | PENDING |
| Recovery completion timestamp | PENDING | PENDING |
| Restored image digest | PENDING | PENDING |
| Restored configuration commit | PENDING | PENDING |
| Final HTTPS health | PENDING | PENDING |
| Final application version | PENDING | PENDING |
| Final pricing result | PENDING | PENDING |
| Measured recovery duration | PENDING | PENDING |
| Measured service interruption | PENDING | PENDING |
| Evidence links | PENDING | PENDING |
## Evidence Requirements
Each release must be supported by:
- Jenkins build and security scan logs.
- Registry publication and digest evidence.
- Ansible deployment output.
- Staging and production HTTPS verification.
- Authorized production approval evidence.
- Relevant monitoring screenshots and timestamps.
## Status
Traceability template prepared.
All actual release records and verification evidence remain pending
Sergio's implementation and execution.