Repository navigation
Commit 01999fa
fix(kernel): guard a JWT that is foreign to the _connection_uri host
The OAuth origin guard judged a JWT's issuer only against
server_hostname. The kernel judges it against its connection host, so a
token issued by server_hostname with a _connection_uri on another host
was treated as a PAT here but exchanged by the kernel at that other host.
A token foreign to either host now counts as exchanged, so the mismatched
origin is rejected. Added the h.io issuer + other.io URI case.
Tests:
- The loopback realkernel tests skip when the installed wheel has no
port kwarg, and re-raise NotSupportedError instead of swallowing it
and timing out. They pass on a wheel built from the kernel PR and skip
on the published 1.4.0 wheel.
- The old-wheel port test uses a fixed-signature fake Session, so the
real signature introspection decides, as in the geospatial test.
Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com>
Co-authored-by: Isaac <no-reply@databricks.com>1 parent 6272ae0 commit 01999fa
3 files changed
Lines changed: 73 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
604 | 621 | | |
605 | 622 | | |
606 | 623 | | |
| |||
609 | 626 | | |
610 | 627 | | |
611 | 628 | | |
612 | | - | |
| 629 | + | |
613 | 630 | | |
614 | | - | |
| 631 | + | |
615 | 632 | | |
616 | 633 | | |
617 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
1446 | 1447 | | |
1447 | 1448 | | |
1448 | 1449 | | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1449 | 1453 | | |
1450 | 1454 | | |
1451 | 1455 | | |
| |||
1652 | 1656 | | |
1653 | 1657 | | |
1654 | 1658 | | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
1655 | 1674 | | |
1656 | 1675 | | |
1657 | | - | |
| 1676 | + | |
1658 | 1677 | | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
1665 | 1690 | | |
1666 | 1691 | | |
1667 | 1692 | | |
1668 | | - | |
| 1693 | + | |
1669 | 1694 | | |
1670 | 1695 | | |
1671 | 1696 | | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
| 1697 | + | |
1676 | 1698 | | |
1677 | 1699 | | |
1678 | 1700 | | |
| |||
1701 | 1723 | | |
1702 | 1724 | | |
1703 | 1725 | | |
| 1726 | + | |
| 1727 | + | |
1704 | 1728 | | |
1705 | 1729 | | |
1706 | 1730 | | |
| |||
1712 | 1736 | | |
1713 | 1737 | | |
1714 | 1738 | | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
| 1739 | + | |
1719 | 1740 | | |
1720 | 1741 | | |
1721 | 1742 | | |
| |||
1756 | 1777 | | |
1757 | 1778 | | |
1758 | 1779 | | |
| 1780 | + | |
| 1781 | + | |
1759 | 1782 | | |
1760 | 1783 | | |
1761 | 1784 | | |
| |||
0 commit comments