Commit 0104c80
committed
refactor(server)!: remove legacy URL redirect subsystem (Phase-3 cutover done)
The /p/, /__zp/, /sw.js -> /zp/ compatibility redirects existed only to keep
pre-cutover URLs working during the Phase-3 migration (PHASE3_PLAN.md:66 --
"may exist during migration only to redirect... not accepted steady-state
surfaces"). No instance was deployed under the old scheme (confirmed by the
operator), and no live code generates those spellings: the SW registers
/zp/sw.js and shareurl emits /zp/p/. The redirects served no real consumers.
Removed the 3 route entries, the redirectLegacyPage/redirectLegacySW/
redirectLegacy/legacyZP handlers, and the legacyControlRedirects/
legacyAssetNames allowlists. Legacy paths now fail closed (POLICY_BLOCKED 403)
through the existing handle() default-deny -- a STRONGER posture than the prior
redirect, with the security boundary fully preserved. routing_test now pins the
new contract (legacy paths denied, not redirected). Build + go test ./... +
golangci native+wasm all clean; no orphaned symbols, imports, or generators.
BREAKING CHANGE: /p/*, /__zp/*, and root /sw.js now return 403 instead of a
307 redirect to the canonical /zp/ path.
Op: compress1 parent d194d2f commit 0104c80
2 files changed
Lines changed: 7 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
| |||
129 | 126 | | |
130 | 127 | | |
131 | 128 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 129 | | |
183 | 130 | | |
184 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments