Skip to content

Feature/cluster#102

Merged
jamals86 merged 4 commits intomainfrom
feature/cluster
Jan 24, 2026
Merged

Feature/cluster#102
jamals86 merged 4 commits intomainfrom
feature/cluster

Conversation

@jamals86
Copy link
Copy Markdown
Collaborator

This pull request introduces several dependency updates and project structure documentation improvements, as well as minor code changes to simplify username handling in authentication endpoints. The most significant changes are the expansion of the workspace/project structure, new and updated dependencies (notably for multipart HTTP support and cryptography), and simplification of username conversion logic in the API.

Dependency and Feature Additions:

  • Added new crates to the workspace for modularization and expanded features, including kalamdb-filestore, kalamdb-session, and kalamdb-configs. [1] [2]
  • Enabled the multipart feature in reqwest and added the actix-multipart crate to support multipart HTTP requests (e.g., file uploads). [1] [2] [3]
  • Switched the jsonwebtoken crate to use the aws_lc_rs feature for cryptography, likely for better compatibility or security.
  • Added the sha2 crate for hashing needs and updated several other dependencies to newer versions. [1] [2]

Project Structure and Documentation:

  • Updated the AGENTS.md project structure section to reflect the expanded modular architecture and clarify the responsibilities of each crate.

Authentication Endpoint Simplification:

  • Simplified username extraction in login_handler, refresh_handler, and me_handler by using the username string directly, rather than converting it to a typed UserName. [1] [2] [3]

Notes and Planning:

  • Added new planning notes in Notes.md for upcoming features and bug fixes, including system columns options, SQL error handling, and file permission checks.

Introduces a SegmentStatus enum to track segment lifecycle (InProgress, Committed, Tombstone) in manifest metadata, replacing the previous tombstone boolean. Updates segment creation and flush logic to use the new status, adds helper methods for lifecycle transitions, and extends tests for segment status and serde. Also adds a ManifestPendingWriteIdx partition, improves ScalarValue handling, and updates manifest service and flush helpers for the new model.
Updated all integration and scenario tests to generate unique usernames by prefixing them with the test namespace. This prevents data collisions and interference when tests are run in parallel, especially for USER tables partitioned by user_id. Also improved test reliability by adding retries for inserts during flushes and made minor test infrastructure improvements.
Introduces multipart/form-data handling for SQL endpoints, enabling file uploads via FILE("name") placeholders. Adds file download handler with user impersonation and permission checks, updates dependencies, and provides utility functions for file staging and SQL placeholder substitution. Includes new tests and documentation for file datatype support.
Replaces basic auth with JWT bearer tokens in file permission tests, ensuring user IDs are used consistently. Updates test setup to use unique user and namespace IDs, adds retries and delays for cluster propagation, and improves CLI config test robustness. Also prevents auto-starting the test server inside an existing tokio runtime to avoid runtime conflicts.
@jamals86 jamals86 merged commit 21cd185 into main Jan 24, 2026
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