Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: e6data/e6data-python-connector
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.3.15
Choose a base ref
...
head repository: e6data/e6data-python-connector
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.0.0
Choose a head ref
  • 13 commits
  • 89 files changed
  • 3 contributors

Commits on Aug 27, 2026

  1. 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>
    Srinath Prabhu and claude committed Aug 27, 2026
    Configuration menu
    Copy the full SHA
    1964f71 View commit details
    Browse the repository at this point in the history
  2. 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>
    Srinath Prabhu and claude committed Aug 27, 2026
    Configuration menu
    Copy the full SHA
    ec99233 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2026

  1. 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>
    Srinath Prabhu and claude committed Aug 28, 2026
    Configuration menu
    Copy the full SHA
    3bf1bcf View commit details
    Browse the repository at this point in the history
  2. 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
    Srinath Prabhu committed Aug 28, 2026
    Configuration menu
    Copy the full SHA
    59a36a5 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2026

  1. Configuration menu
    Copy the full SHA
    7edec1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48d324a View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2026

  1. 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.
    vishale6x committed Sep 10, 2026
    Configuration menu
    Copy the full SHA
    5c617c3 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2026

  1. 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.
    vishale6x committed Sep 11, 2026
    Configuration menu
    Copy the full SHA
    c4ce228 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2026

  1. 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
    Srinath Prabhu and claude committed Sep 15, 2026
    Configuration menu
    Copy the full SHA
    1ed2e21 View commit details
    Browse the repository at this point in the history
  2. 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
    Srinath Prabhu and claude committed Sep 15, 2026
    Configuration menu
    Copy the full SHA
    5cef8af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f94807f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9d2bf0c View commit details
    Browse the repository at this point in the history
  5. Merge pull request #85 from e6data/mcp/oauth2-client-credentials

    Add bearer-per-RPC OAuth authentication and bounded cluster auto-resume
    vishale6x authored Sep 15, 2026
    Configuration menu
    Copy the full SHA
    df85f81 View commit details
    Browse the repository at this point in the history
Loading