Commit 16da0f1
0.9: revert Lambda@Edge auth changes to dodge cross-region export deadlock
The auth Lambda hardening (timing-safe compare, Max-Age 30d, safeRedirectPath, security headers on 403) is sound, but ANY code change to the Lambda@Edge function publishes a new version, which forces the CDK CrossRegionExportWriter to update an SSM export that's still in use by GoodHabitTracker. The export update is rejected and the cert stack rolls back to UPDATE_ROLLBACK_FAILED.
Recovered the cert stack with: aws cloudformation continue-update-rollback --stack-name GoodHabitTrackerCert --region us-east-1 --resources-to-skip ExportsWriteruswest209BD44F0A7CF058B
All other v0.9 hardening (CloudFront response headers, /api/* query-forwarding off, 64KB body cap, generic errors, sprint numeric validation, escapeHtml on data-id, log retention, memorySize 256, DDB PITR, S3 versioning, backup scripts rewritten, UX/a11y) is unchanged and will ship on the next attempt. The auth Lambda work is documented as deferred to v0.10 - it needs a re-architecture of the cross-region reference (Lambda alias ARN with stable cross-region SSM key, or a 2-step deploy workflow that handles the in-use export gracefully).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fdf8609 commit 16da0f1
2 files changed
Lines changed: 19 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 6 | | |
28 | 7 | | |
29 | 8 | | |
| |||
66 | 45 | | |
67 | 46 | | |
68 | 47 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 48 | | |
74 | 49 | | |
75 | 50 | | |
76 | 51 | | |
77 | | - | |
78 | | - | |
| 52 | + | |
| 53 | + | |
79 | 54 | | |
80 | 55 | | |
81 | 56 | | |
| |||
86 | 61 | | |
87 | 62 | | |
88 | 63 | | |
89 | | - | |
| 64 | + | |
90 | 65 | | |
91 | | - | |
| 66 | + | |
92 | 67 | | |
93 | 68 | | |
94 | 69 | | |
| |||
97 | 72 | | |
98 | 73 | | |
99 | 74 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 75 | + | |
106 | 76 | | |
107 | 77 | | |
108 | 78 | | |
| |||
117 | 87 | | |
118 | 88 | | |
119 | 89 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 90 | | |
124 | 91 | | |
125 | 92 | | |
| |||
0 commit comments