$ the-wire · showcase
BigQuery closes a DNS-rebinding hole in graph_server; python-genai 2.33.0 adds httpx2 opt-in
By RepoJournal · Filed · About Google · Composed from the cited sources · methodology
The day's most consequential change is a security fix in google-cloud-python, where GraphServerHandler now validates the Host header, alongside a python-genai release that keeps httpx as the default transport while making httpx2 available behind a config flag.
fix: validate Host header in graph_server request handlers googleapis/google-cloud-python
GraphServerHandler.do_GET and do_POST previously served any request that reached the loopback port, so a page in the notebook user's browser could reach the server through DNS rebinding and drive /post_query into convert_graph_params, which built a BigQuery client with the user's credentials and called list_rows against a caller-supplied API endpoint and table. Origin cannot gate this because t...
v2.33.0 googleapis/python-genai
by release-please[bot]
python-genai 2.33.0 adds `store` to GenerateContentConfig (Gemini Developer API only), adds `labels` to LiveConnectConfig, and brings Python 3.15 support. Nothing in the release changes existing call paths.
feat(client): Support httpx2 with GOOGLE_GENAI_HTTP_CLIENT configuration googleapis/python-genai
httpx2 is now available as an opt-in HTTP transport via GOOGLE_GENAI_HTTP_CLIENT=httpx2 or custom client injection, with httpx preserved as the default in minor releases for backward compatibility. The setting is additive: existing code that does not set the variable keeps its current transport.
fix(bigquery): keep the Arrow schema for empty results googleapis/google-cloud-python
`to_arrow()` used to return a table without columns when an Arrow result set had no rows; it now yields one empty RecordBatch carrying the query's schema, taken from the Arrow schema BigQuery sent, else from jobs.getQueryResults, else no columns like _EmptyRowIterator. That covers results that fit in the first page, an empty stream, and an empty destination table.
[jax] Rescale cg right-hand side by a power of two to avoid inner-product underflow and overflow google/jax
`jax.scipy.sparse.linalg.cg` now rescales the right-hand side by a power of two, because quadratic inner products in _cg_solve could underflow in float32 or float16 on a small right-hand side, such as the incoming cotangent in reverse-mode autodiff under a small-scale loss. With a preconditioner M that shrinks the residual, the preconditioned inner product gamma could underflow to exact zero wh...
feat(bigquery): add column data policies to SchemaField googleapis/google-cloud-python
SchemaField gains data_policies, so callers can read and set column data policy names without reaching into _properties. Names serialize as dataPolicies entries, and equality and hashing account for them regardless of order.
Action items
- → Upgrade google-cloud-bigquery to a version containing the graph_server Host header validation if you run notebook gra... googleapis/google-cloud-python [immediate]