Add protected Ansible recovery transaction and verified simulation evidence
startup-product-gitea-ci/pipeline/pr-main This commit looks good
startup-product-gitea-ci/pipeline/pr-main This commit looks good
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
Thu Nov 26 07:13:31 UTC 2026
|
||||
PASS: Complete V2 -> V1 -> V2 transaction
|
||||
PRODUCTION_LOCK_ACQUIRED
|
||||
Configuration commit: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
ROLLBACK_DECISION
|
||||
Original V2 container: original-v2
|
||||
ROLLBACK_STARTED
|
||||
ROLLBACK_RECOVERED
|
||||
RESTORATION_STARTED
|
||||
RESTORATION_RECOVERED
|
||||
Preserved V1: startup-pricing-production-drill-v1-20261126-071331
|
||||
Restored original V2: original-v2
|
||||
RECOVERY_TRANSACTION_SUCCESS
|
||||
PRODUCTION_LOCK_RELEASED
|
||||
PASS: Original V2 identity preserved
|
||||
PASS: Both containers preserved
|
||||
PASS: Failed V1 triggers original V2 restoration
|
||||
PRODUCTION_LOCK_ACQUIRED
|
||||
Configuration commit: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
ROLLBACK_DECISION
|
||||
Original V2 container: original-v2
|
||||
ROLLBACK_STARTED
|
||||
RECOVERY_TRANSACTION_FAILED: Injected V1 verification failure
|
||||
Attempting original V2 restoration
|
||||
EMERGENCY_V2_RESTORATION_VERIFIED
|
||||
PRODUCTION_LOCK_RELEASED
|
||||
PASS: Original V2 identity preserved
|
||||
PASS: Both containers preserved
|
||||
SUCCESS: Both simulated recovery scenarios passed
|
||||
No real Docker, SSH or HTTPS operations executed
|
||||
Thu Nov 26 07:13:31 UTC 2026
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
=== RECOVERY RUNTIME VALIDATION ===
|
||||
Thu Nov 26 07:00:37 UTC 2026
|
||||
|
||||
PLAY [Validate recovery inputs without deployment] *****************************
|
||||
|
||||
TASK [Validate immutable release records] **************************************
|
||||
ok: [localhost] => {
|
||||
"changed": false,
|
||||
"msg": "All assertions passed"
|
||||
}
|
||||
|
||||
TASK [Verify external production HTTPS health] *********************************
|
||||
ok: [localhost]
|
||||
|
||||
TASK [Verify external production pricing] **************************************
|
||||
ok: [localhost]
|
||||
|
||||
TASK [Validate actual V2 behavior] *********************************************
|
||||
ok: [localhost] => {
|
||||
"changed": false,
|
||||
"msg": "All assertions passed"
|
||||
}
|
||||
|
||||
TASK [Report verified release inputs] ******************************************
|
||||
ok: [localhost] => {
|
||||
"msg": [
|
||||
"V1 image: git.nageshwaran.dev/ssw590-startup/startup-pricing@sha256:d0d0a2c2052b01a33ce12fd2b278e906552ea9797b5b918f44e5065f444d3027",
|
||||
"V2 image: git.nageshwaran.dev/ssw590-startup/startup-pricing@sha256:14d520f6fbe60c9cc5e661551a03e944de3a2ad777a64c316ec397ee765db22d",
|
||||
"Production health: {'status': 'healthy', 'version': 'v2'}",
|
||||
"Production pricing: {'plans': [{'name': 'Starter', 'price': 5}, {'name': 'Basic', 'price': 12}, {'name': 'Pro', 'price': 30}, {'name': 'Enterprise', 'price': 60}], 'service': 'Startup Pricing Service', 'version': 'v2'}",
|
||||
"SUCCESS: Recovery inputs validated"
|
||||
]
|
||||
}
|
||||
|
||||
PLAY RECAP *********************************************************************
|
||||
localhost : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
|
||||
|
||||
=== EXTERNAL HTTPS MONITORING TEST ===
|
||||
timestamp_utc,http_status,healthy,version,latency_ms
|
||||
2026-11-26T07:00:39.570+00:00,200,true,v2,101
|
||||
2026-11-26T07:00:40.575+00:00,200,true,v2,153
|
||||
2026-11-26T07:00:41.580+00:00,200,true,v2,328
|
||||
2026-11-26T07:00:42.585+00:00,200,true,v2,104
|
||||
2026-11-26T07:00:43.590+00:00,200,true,v2,112
|
||||
SUCCESS: Five healthy external HTTPS probes
|
||||
SUCCESS: Recovery runtime validation completed
|
||||
Thu Nov 26 07:00:43 UTC 2026
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
Thu Nov 26 07:12:39 UTC 2026
|
||||
PASS: Correct release accepted
|
||||
PASS: Incorrect pricing rejected
|
||||
PASS: Incorrect image ID rejected
|
||||
PASS: Incorrect registry reference rejected
|
||||
PASS: Unhealthy application rejected
|
||||
PASS: Stopped container rejected
|
||||
PASS: Incorrect release version rejected
|
||||
SUCCESS: All seven verification tests passed
|
||||
No real Docker or HTTPS operations executed
|
||||
Thu Nov 26 07:12:39 UTC 2026
|
||||
Reference in New Issue
Block a user