Skip to content

Commit 8049d6c

Browse files
rustyconoverclaude
andcommitted
Release 0.53.0: Orchard hosted mode; vgi-rpc 0.54.0
- VGI_ORCHARD_HOSTED=1 (5cb6ed3) now also requires a single-audience Pass (jwt_authenticate single_audience); test for a multi-audience aud list. - vgi-rpc floor 0.54.0 (JWT hardening, strict auth, OAuth delegation). - vgi-python and vgi-fixtures 0.53.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5cb6ed3 commit 8049d6c

5 files changed

Lines changed: 24 additions & 11 deletions

File tree

‎packages/vgi-fixtures/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# and the conformance suite import it by its normal `vgi._test_fixtures` path.
99
[project]
1010
name = "vgi-fixtures"
11-
version = "0.52.2"
11+
version = "0.53.0"
1212
description = "Example/test VGI worker modules and entry points (not for production use)"
1313
readme = "README.md"
1414
# Local copy of the repo-root LICENSE (kept in sync): the build can't reach

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vgi-python"
3-
version = "0.52.2"
3+
version = "0.53.0"
44
description = "Vector Gateway Interface - Connect DuckDB to external programs via Apache Arrow"
55
readme = "README.md"
66
keywords = [
@@ -40,7 +40,7 @@ dependencies = [
4040
"pyarrow",
4141
"typer>=0.9",
4242
"platformdirs",
43-
"vgi-rpc>=0.52.3",
43+
"vgi-rpc>=0.54.0",
4444
"httpx2>=2.12.0",
4545
# vgi.query_execution seals execution handles with vgi_rpc.crypto, which
4646
# imports pycryptodome. vgi-rpc only pulls it in under its `http` extra, but

‎tests/test_orchard_hosted.py‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,18 @@ def test_no_pass_401(self, worker: _Worker, method: str, path: str) -> None:
299299

300300
@pytest.mark.parametrize(
301301
"case",
302-
["garbage", "tampered", "wrong_aud", "expired", "wrong_typ", "rs256", "hs256", "wrong_iss", "no_exp"],
302+
[
303+
"garbage",
304+
"tampered",
305+
"wrong_aud",
306+
"multi_aud",
307+
"expired",
308+
"wrong_typ",
309+
"rs256",
310+
"hs256",
311+
"wrong_iss",
312+
"no_exp",
313+
],
303314
)
304315
def test_bad_pass_401(self, worker: _Worker, case: str) -> None:
305316
"""Every invalid Pass gets the same 401."""
@@ -308,6 +319,7 @@ def test_bad_pass_401(self, worker: _Worker, case: str) -> None:
308319
"garbage": lambda: "not-a-jwt",
309320
"tampered": lambda: _tamper(_pass(), org_id="org_EVIL"),
310321
"wrong_aud": lambda: _pass(aud="https://desk.orchard.test/d/dep_other"),
322+
"multi_aud": lambda: _pass(aud=[AUDIENCE, "https://desk.orchard.test/d/dep_other"]),
311323
"expired": lambda: _pass(iat=now - 1200, nbf=now - 1200, exp=now - 120),
312324
"wrong_typ": lambda: _pass(typ="JWT"),
313325
"rs256": lambda: _pass(RSA, alg="RS256"),

‎uv.lock‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎vgi/hosted.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def hosted_authenticate(config: HostedConfig) -> Callable[[falcon.Request], Auth
199199
algorithms=config.algorithms,
200200
required_typ=REQUIRED_TYP,
201201
require_exp=True,
202+
single_audience=True,
202203
leeway=LEEWAY_SECONDS,
203204
jwks_max_age=JWKS_MAX_AGE_SECONDS,
204205
jwks_refresh_min_interval=JWKS_REFRESH_MIN_INTERVAL_SECONDS,

0 commit comments

Comments
 (0)