Commit e9ee666
committed
Drop the token-host fallback from the DCR reuse lookup
dcrCandidatesForIssuer previously matched a null-origin_issuer row by comparing
registrable token hosts. Now a candidate matches only via dcrIssuerMatches on a
non-null, canonicalized stored issuer. The GC migration backfills origin_issuer
on every surviving DCR row, so post-migration the token-host fallback is dead
code; in the brief deploy->migration window a missed lookup just mints one
duplicate that the migration immediately GCs, which is safer than reusing on a
fuzzy token-host guess. Drops the now-unused tokenUrl parameter and the
registrableHostOfUrl import.
register-dynamic tests: the old null-issuer-token-host reuse test becomes two
cases: a null-issuer legacy row is NOT reused (mints fresh), and a backfilled
row (origin_issuer set) IS reused with no duplicate.1 parent 69b9bc6 commit e9ee666
3 files changed
Lines changed: 79 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
| |||
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
282 | 345 | | |
283 | 346 | | |
284 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 73 | + | |
80 | 74 | | |
81 | 75 | | |
82 | 76 | | |
| |||
677 | 671 | | |
678 | 672 | | |
679 | 673 | | |
680 | | - | |
681 | 674 | | |
682 | 675 | | |
683 | 676 | | |
| |||
687 | 680 | | |
688 | 681 | | |
689 | 682 | | |
690 | | - | |
691 | 683 | | |
692 | 684 | | |
693 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
694 | 692 | | |
695 | 693 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
| 694 | + | |
701 | 695 | | |
702 | 696 | | |
703 | 697 | | |
| |||
733 | 727 | | |
734 | 728 | | |
735 | 729 | | |
736 | | - | |
| 730 | + | |
737 | 731 | | |
738 | 732 | | |
739 | 733 | | |
| |||
0 commit comments