Skip to content

fix(http): identify direct kernel traffic as SQL Kernel - #309

Merged
vikrantpuppala merged 1 commit into
mainfrom
fix/sql-kernel-user-agent
Sep 2, 2026
Merged

vikrantpuppala merged 1 commit into
mainfrom
fix/sql-kernel-user-agent

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Collaborator

What

  • Change the kernel's default User-Agent from DatabricksJDBCDriverOSS/<version> to DatabricksSQLKernel/<version>.
  • Add a regression assertion for the default UA.
  • Update HTTP and Node binding documentation to describe the existing caller-UA replacement semantics accurately.

Caller-provided connector UAs continue to replace the kernel base verbatim, so Python and Node connectors retain their own server-side identities.

Why

databricks-eng/universe#2453565 is merged and recognizes DatabricksSQLKernel in the server-side attribution parsers, including the SEA-appended DatabricksSqlExecApi/<version> suffix. The databricks.sqlexecapi.known_driver_prefixes SAFE flag is fully ramped with this prefix.

Direct kernel traffic can therefore identify itself accurately instead of masquerading as OSS JDBC.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --no-default-features --features tls-rustls --lib --tests -- -D warnings
  • cargo test --no-default-features --features tls-rustls --lib client::http::tests (63 passed)
  • git diff --check

This PR was created with GitHub MCP.

Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@vuanhphung vuanhphung left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's Direct kernel traffic? Is it a forward looking thing? I thought Python, Node, Go all override base UA today

@vikrantpuppala

Copy link
Copy Markdown
Collaborator Author

What's Direct kernel traffic? Is it a forward looking thing? I thought Python, Node, Go all override base UA today

yes, for future.

@vikrantpuppala
vikrantpuppala added this pull request to the merge queue Sep 2, 2026
Merged via the queue into main with commit 3200ff0 Sep 2, 2026
24 checks passed

This branch was previously deployed

1 inactive deployment
azure-prod — 0b35f7a2 Deployed Sep 2, 2026 by vikrantpuppala via review #516
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants