Repository navigation
Comparing changes
Open a pull request
base repository: e6data/e6data-python-connector
base: 2.3.15
head repository: e6data/e6data-python-connector
compare: 3.0.0
- 13 commits
- 89 files changed
- 3 contributors
Commits on Aug 27, 2026
-
feat(auth): OAuth 2.0 client-credentials authentication
Adds a second way to authenticate alongside username/password: supply client_id, client_secret and token_url and the connector obtains an access token with the client-credentials grant, caches it, and presents it to the engine on authenticate. A pre-obtained token can be passed directly. Exactly one authentication method must be supplied. Mixing them raises rather than resolving by precedence, so a stale value in a config file cannot quietly win. username and password gained defaults and the new arguments are appended last, so every existing call site keeps working unchanged, positionally or by keyword. Requires an engine with OAuth enabled (e6-query-engine#779). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 1964f71 - Browse repository at this point
Copy the full SHA 1964f71View commit details -
refactor(auth): send the OAuth token as call metadata
Reworks the token onto "authorization: Bearer <token>" in gRPC metadata rather than a field on AuthenticateRequest, matching the engine. Sent as per-call metadata rather than grpc.CallCredentials on purpose: Python's call credentials must be composed onto channel credentials and are rejected on an insecure channel, and this connector defaults to plaintext. Metadata works on both. The proto message is unchanged from the shipped version; field 5 is reserved to match the engine. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for ec99233 - Browse repository at this point
Copy the full SHA ec99233View commit details
Commits on Aug 28, 2026
-
fix: surface authentication failures instead of returning None
get_session_id caught _InactiveRpcError, called _perform_auto_resume and discarded the result. The error was swallowed, _session_id stayed None, and the property returned None -- so the caller saw an opaque "TypeError: object of type 'NoneType' has no len()" rather than the RPC status explaining why authentication failed. Diagnosing anything required reading planner logs. Now follows the contract the inner strategy handlers already use: resume and retry once, or re-raise. A rejected token reports "OAuth token issuer is not trusted by this deployment" at the call site. The retry is guarded by a flag so a cluster that keeps refusing connections cannot drive the property into unbounded recursion. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 3bf1bcf - Browse repository at this point
Copy the full SHA 3bf1bcfView commit details -
feat(oauth): present the token on every call and stop asking for a se…
…ssion Completes the stateless rail against e6-query-engine's matching change. Two halves, each useless without the other. 1. The bearer now travels on every RPC, not just authenticate. This was a real gap, not a refinement. The credential was appended in _authenticate_metadata alone, so authenticate carried it and executeStatement, getNextResultBatch, status and clearOrCancelQuery all went out with none. Added Connection._call_metadata and routed the six connection-level call sites plus Cursor.metadata through it, so the header is attached in exactly one place -- Cursor.metadata feeds all ten query-path RPCs, and building its own header there is precisely how the credential got dropped on the calls that matter most. Near-free on the wire: the value is identical call to call, so HPACK indexes it after the first and later calls carry a reference rather than the token. 2. get_session_id returns '' on an OAuth connection. No authenticate round trip at all. The engine resolves the identity from the token presented on each call, so there is no session to fetch and the sessionId field carries nothing. Left empty rather than removed from the schema because an unset proto3 scalar costs zero bytes -- the credential path keeps the field without the token path paying for it. Why: on the session rail the scope is snapshotted when the session is minted, so narrowing or revoking a client's grant has no effect for the session's full 5-hour life. Authorizing from the token on the call bounds that to the token's own lifetime, and is what RFC 6750 describes. Credential connections are untouched: _uses_oauth gates both halves, and a credential connection sends no authorization metadata at all (asserted). Verified: 35 OAuth tests green, up from 31 -- 4 new covering the bearer on _call_metadata, its absence on the credential path, the empty session id, and the cursor's metadata. The 6 failures in test_strategy.py and test_cluster_manager_strategy.py are pre-existing and require a live cluster; confirmed identical on a stashed tree.
Srinath Prabhu committedAug 28, 2026 Configuration menu - View commit details
-
Copy full SHA for 59a36a5 - Browse repository at this point
Copy the full SHA 59a36a5View commit details
Commits on Sep 9, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 7edec1f - Browse repository at this point
Copy the full SHA 7edec1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48d324a - Browse repository at this point
Copy the full SHA 48d324aView commit details
Commits on Sep 10, 2026
-
Add native async connector and shared OAuth token lifecycle
Implement native async connections, cursors, pooling and SQLAlchemy integration. Share matching OAuth client credentials across connections, pools and threads with bounded refresh and cleanup while preserving query ownership and uncertainty. Include complete-suite coverage gates, real issuer sharing tests, scoped live validation and the sync/async benchmark report. Natural server-expiry and remaining fault qualification are explicitly pending.
Configuration menu - View commit details
-
Copy full SHA for 5c617c3 - Browse repository at this point
Copy the full SHA 5c617c3View commit details
Commits on Sep 11, 2026
-
Handle Thrift 0.20 native truncation error in wire contract test
Accept only the documented PY_SSIZE_T_CLEAN error for native Compact decoding on Thrift 0.20.0. Keep intact-payload validation and rejection of truncated data, unrelated SystemErrors and newer-version regressions. Preserve connector code and dependency floors.
Configuration menu - View commit details
-
Copy full SHA for c4ce228 - Browse repository at this point
Copy the full SHA c4ce228View commit details
Commits on Sep 15, 2026
-
feat(metadata): list catalogs over the same connection as everything …
…else Completes the metadata trio. A caller could already walk schemas and tables over the gRPC connection but had to reach for a management API to learn which catalogs existed — a second endpoint, a second credential, and a second thing to be down. get_catalogs returns name and isDefault, and picks up a pending strategy from the response the way its siblings do. Worth knowing about this one RPC: GetCatalogesRequest is an empty message, so unlike every other metadata call there is nowhere for a session id to go. The bearer therefore travels only as call metadata. The planner does not currently check it, which means a version that dropped the credential would pass every test and keep working right up until the engine starts requiring one — so the test asserts the header is on the wire rather than asserting the call succeeds. Three tests, where there were none: the response is unwrapped to name and isDefault, the bearer is present despite the empty request, and no catalogs is an empty list rather than a failure. 38 OAuth tests green, up from 35. test_mock_server.py was not run — it needs a live server, as it did before this change. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A9x6PRJgmELTBpTZx258qa
Configuration menu - View commit details
-
Copy full SHA for 1ed2e21 - Browse repository at this point
Copy the full SHA 1ed2e21View commit details -
Merge origin/mcp/oauth2-client-credentials into the catalog listing
No conflicts. The two changes sit in the same file and the same test module but touch different things: the async connector and shared token lifecycle on one side, get_catalogs on the other. 44 OAuth tests green — 38 from this side plus the six the merged work brings. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A9x6PRJgmELTBpTZx258qa
Configuration menu - View commit details
-
Copy full SHA for 5cef8af - Browse repository at this point
Copy the full SHA 5cef8afView commit details -
Configuration menu - View commit details
-
Copy full SHA for f94807f - Browse repository at this point
Copy the full SHA f94807fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d2bf0c - Browse repository at this point
Copy the full SHA 9d2bf0cView commit details -
Merge pull request #85 from e6data/mcp/oauth2-client-credentials
Add bearer-per-RPC OAuth authentication and bounded cluster auto-resume
Configuration menu - View commit details
-
Copy full SHA for df85f81 - Browse repository at this point
Copy the full SHA df85f81View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.3.15...3.0.0