Commit 677599f
committed
refactor(dstack-ingress): remove what the delegation rework left behind
Publishing the CAA from inside the container made a chain of things dead
without anything failing, which is how they survived. A review found:
- delegation_verify_caa, and with it the only caller of ALLOW_MISSING_CAA
and of dnsguide's --caa-required / --caa-advisory. Wildcards were the
last user; once the container published their CAA too, the whole path
was unreachable. The README still advertised ALLOW_MISSING_CAA.
- check_caa's require_present parameter and its three tests. The
semantics it existed for -- "an absent CAA must block, because we
cannot create it" -- stopped being true when we started creating it.
Absence now just means "not published yet", and the next pass fixes it.
- Two test classes defined twice over. Python shadows the earlier
definition silently, unittest counts the later one, and the total still
goes up, so duplicated blocks look like passing tests. A guard now
walks the file's AST and fails on any repeated class or method name;
it was checked against a deliberately duplicated block.
- Stale naming: --challenge-alias and args.challenge_alias outlived the
variable rename, and ACME_CHALLENGE_PROPAGATION_SECONDS with them. Both
now say delegation. The README still claimed ACME_CHALLENGE_ALIAS
"still works", which had not been true since it was removed.
Also reject contradictory --include values. `delegated` is a shape rather
than a record kind -- it replaces the per-kind records instead of adding
to them -- so `--include cname,delegated` would emit two CNAMEs claiming
the same name. Unknown values are now rejected too, instead of being
silently ignored.1 parent 1d58942 commit 677599f
5 files changed
Lines changed: 51 additions & 115 deletions
File tree
- custom-domain/dstack-ingress
- scripts
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
196 | 196 | | |
197 | | - | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 223 | | |
248 | 224 | | |
249 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 281 | + | |
| 282 | + | |
290 | 283 | | |
291 | 284 | | |
292 | 285 | | |
| |||
320 | 313 | | |
321 | 314 | | |
322 | 315 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | 316 | | |
329 | 317 | | |
330 | 318 | | |
| |||
357 | 345 | | |
358 | 346 | | |
359 | 347 | | |
360 | | - | |
361 | | - | |
362 | 348 | | |
363 | 349 | | |
364 | 350 | | |
| |||
371 | 357 | | |
372 | 358 | | |
373 | 359 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 360 | + | |
| 361 | + | |
381 | 362 | | |
382 | 363 | | |
383 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
384 | 371 | | |
385 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
386 | 381 | | |
387 | 382 | | |
388 | 383 | | |
| |||
402 | 397 | | |
403 | 398 | | |
404 | 399 | | |
405 | | - | |
| 400 | + | |
406 | 401 | | |
407 | 402 | | |
408 | 403 | | |
| |||
412 | 407 | | |
413 | 408 | | |
414 | 409 | | |
415 | | - | |
| 410 | + | |
416 | 411 | | |
417 | 412 | | |
418 | 413 | | |
| |||
438 | 433 | | |
439 | 434 | | |
440 | 435 | | |
441 | | - | |
| 436 | + | |
442 | 437 | | |
443 | 438 | | |
444 | 439 | | |
| |||
448 | 443 | | |
449 | 444 | | |
450 | 445 | | |
451 | | - | |
| 446 | + | |
452 | 447 | | |
453 | 448 | | |
454 | 449 | | |
| |||
480 | 475 | | |
481 | 476 | | |
482 | 477 | | |
483 | | - | |
| 478 | + | |
484 | 479 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
| 480 | + | |
497 | 481 | | |
498 | 482 | | |
499 | 483 | | |
| |||
566 | 550 | | |
567 | 551 | | |
568 | 552 | | |
569 | | - | |
570 | | - | |
| 553 | + | |
571 | 554 | | |
572 | 555 | | |
573 | 556 | | |
| |||
Lines changed: 22 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 202 | | |
245 | 203 | | |
246 | 204 | | |
| |||
283 | 241 | | |
284 | 242 | | |
285 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
286 | 264 | | |
287 | 265 | | |
0 commit comments