Skip to content

💫 Add pure Rust Databricks SDK, replace Python auth interop#78

Merged
renardeinside merged 10 commits intomainfrom
feat/native-sdk
Feb 16, 2026
Merged

💫 Add pure Rust Databricks SDK, replace Python auth interop#78
renardeinside merged 10 commits intomainfrom
feat/native-sdk

Conversation

@renardeinside
Copy link
Copy Markdown
Collaborator

Summary

  • Introduces crates/databricks_sdk — a standalone pure Rust crate for Databricks authentication and API access, replacing the Python SDK dependency for auth operations
  • Token acquisition via databricks auth token --profile <name> CLI with automatic caching and expiry-aware refresh (40s staleness buffer)
  • Removes get_token(), validate_credentials(), and get_forwarded_user_header() from Python interop, eliminating the databricks-sdk Python dependency for dev server auth
  • Simplifies TokenManager in proxy.rs to delegate to DatabricksClient instead of manual Instant-based refresh tracking

Test plan

  • just check passes (cargo check, clippy, fmt, ruff, prettier, type check)
  • databricks auth login --profile DEFAULT then apx dev start — verify token acquired via CLI
  • API proxy forwards auth headers correctly (check /api/* requests)
  • Let token expire (~1 hour) — verify automatic re-acquisition

🤖 Generated with Claude Code

@renardeinside renardeinside changed the title Add pure Rust Databricks SDK, replace Python auth interop 💫 Add pure Rust Databricks SDK, replace Python auth interop Feb 16, 2026
@renardeinside renardeinside merged commit 70edeb1 into main Feb 16, 2026
3 checks passed
@renardeinside renardeinside deleted the feat/native-sdk branch February 16, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant