Commit 67c78d9
Harden issuer-path scope and fix review nits
Follow-up to the OIDC device-flow review, four minor items:
- isEndpointUnderIssuerPath now scans for an encoded path separator at
every decode level, not just the raw string, and rejects a literal
backslash. A split encoding such as %2%66 (which resolves to %2f then
'/') and a backslash folded to '/' by decodePathSegments previously
passed the single-pass pre-scan and could make a deeper endpoint
masquerade as being under the pinned issuer path while a different raw
path travelled on the wire. The origin pin already kept credentials on
the trusted host, so this closes a defense-in-depth gap, not an exploit.
- close()'s Javadoc no longer claims a hard one-HTTP-timeout bound: a
DeviceCodePrompt that blocks in promptUser (the default browser launch)
holds the lock while it runs, so a racing close() waits it out too.
- testOutOfRangePollIntervalAndExpiryAreClamped now asserts the exact
clamped values (60s interval, 1800s device-code lifetime) instead of
bounds 5x and 2x looser than the real maxima.
- Move the JsonLexer hasEscape field to its alphabetical position.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 15067f7 commit 67c78d9
3 files changed
Lines changed: 74 additions & 19 deletions
File tree
- core/src
- main/java/io/questdb/client/cutlass
- auth
- json
- test/java/io/questdb/client/test/cutlass/auth
Lines changed: 45 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
383 | | - | |
384 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
| |||
574 | 580 | | |
575 | 581 | | |
576 | 582 | | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
577 | 614 | | |
578 | 615 | | |
579 | 616 | | |
| |||
661 | 698 | | |
662 | 699 | | |
663 | 700 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
676 | 706 | | |
677 | 707 | | |
678 | 708 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
1921 | 1936 | | |
1922 | 1937 | | |
1923 | 1938 | | |
| |||
2230 | 2245 | | |
2231 | 2246 | | |
2232 | 2247 | | |
2233 | | - | |
2234 | | - | |
2235 | | - | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2236 | 2252 | | |
2237 | 2253 | | |
2238 | 2254 | | |
| |||
3180 | 3196 | | |
3181 | 3197 | | |
3182 | 3198 | | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
3183 | 3208 | | |
3184 | 3209 | | |
3185 | 3210 | | |
| |||
0 commit comments