Repository navigation
Closed as not planned
Description
Summary
Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-kernel. Each finding is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT (post-fix) behavior and stays red until THIS driver (databricks/databricks-sql-kernel) is fixed, then flips green as a tripwire.
Findings
- AUTH-012 [sea]: a configured identity_federation_client_id is silently ignored for a PAT (non-JWT) base credential: FederationProvider gates mandatory token exchange solely on the inner token's
issclaim, so no POST /oidc/v1/token is made and SP-wide workload-identity federation never engages, defeating the shape-independent forwarding contract- failing test:
identity_federation_client_id_honored_across_auth_shapes(see the coverage PR diff undertests/)
- failing test:
- AUTH-012: a configured identity_federation_client_id is silently ignored for a PAT (non-JWT) base credential: FederationProvider gates mandatory token exchange solely on the inner token's
issclaim, so no POST /oidc/v1/token is made and SP-wide workload-identity federation never engages, defeating the shape-independent forwarding contract (a secondary latent defect: exchange() matches Some(client_id) with no is-empty check, so an EMPTY value would be forwarded verbatim as identity_federation_client_id= rather than dropped)
Reproduce & Expected
AUTH-012 — Verifies that a configured service-principal identity federation client id selects MANDATORY SP-wide workload-identity token exchange regardless of which base credential the connection resolves to (P…
Reproduce:
SELECT CURRENT_USER() AS user
SELECT CURRENT_USER() AS userExpected (per the shared spec):
{'thrift_call_count': {'method': 'OpenSession', 'expected': 1}}- GET /oauth/token/calls -> at least one recorded call whose form body contains identity_federation_client_id=.
{'not_null': 'batch', 'label': 'federation_on'}{'row_count': 1, 'label': 'federation_on'}{'not_null': 'batch.Column(0)', 'label': 'federation_on'}- After the reset, GET /oauth/token/calls -> NO recorded call's form body contains an identity_federation_client_id parameter (an empty value is dropped, not forwarded as identity_federation_client_id=).
{'not_null': 'batch', 'label': 'federation_empty'}{'row_count': 1, 'label': 'federation_empty'}{'not_null': 'batch.Column(0)', 'label': 'federation_empty'}
Context
- The behavior was first fixed in a DIFFERENT driver — reference PR: feat(kernel): forward identity federation client ID databricks-sql-python#910 — which seeded the shared language-neutral spec. This issue tracks the same conformance gap in databricks/databricks-sql-kernel; the reference PR is for cross-referencing the intended behavior, NOT a change to this repo.
- Coverage PR carrying the reproducing xfail test(s): https://github.com/databricks/databricks-driver-test/pull/1295
Metadata
Metadata
Assignees
Labels
No labels
Activity
eric-wang-1990 commentedon Aug 17, 2026
Closing as invalid — this is a false-positive conformance finding, not a driver bug.
AUTH-012 (identity federation) asserts that a configured
identity_federation_client_idmust trigger a mandatoryPOST /oidc/v1/tokenexchange even for a PAT base credential. That premise is wrong:dapi…) is an opaque token with noissclaim; it cannot be the subject of a token exchange. The kernel'sFederationProvidercorrectly gates the exchange on the inner token being a JWT with a foreign issuer, so a PAT passes straight through with zero exchanges — this is correct, secure behavior.identity_federation_client_idthrough the auth bridge to the kernel Session (plumbing); its own unit test asserts merely that the kwarg is present when supplied / absent when empty. It establishes no requirement that a PAT produce a token exchange.The driver conforms. The spec (AUTH-012) is being corrected in the driver-test repo. No kernel change is warranted.