Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Chore/update cs client#364

Merged
coderdan merged 4 commits into
mainfrom
chore/update-cs-client
Feb 3, 2026
Merged

Chore/update cs client#364
coderdan merged 4 commits into
mainfrom
chore/update-cs-client

Conversation

@coderdan

@coderdan coderdan commented Feb 3, 2026

Copy link
Copy Markdown
Contributor
  • Updates cipherstash-client to 0.33
  • Introduces the array index mode for JSON indexing (from latest cipherstash-client) and sets a non-breaking default (all array indexing on)
  • Updated docs
  • Updated CHANGELOG

Acknowledgment

By submitting this pull request, I confirm that CipherStash can use, modify, copy, and redistribute this contribution, under the terms of CipherStash's choice.

Summary by CodeRabbit

  • New Features

    • Added array indexing mode for encrypted searchable columns, letting you choose preset ("all" or "none") or fine-grained indexing; default behavior preserves existing indexing.
  • Chores

    • Bumped cipherstash-client to v0.33.0.
  • Documentation

    • Added detailed configuration guide and examples for array indexing modes in searchable JSON docs.

Update encrypt_config to handle new ArrayIndexMode field in
IndexType::SteVec. Defaults to ArrayIndexMode::ALL for backwards
compatibility.
Add documentation for the new array_index_mode configuration option
in the searchable JSON reference guide, including preset values and
object form for fine-grained control over array indexing behavior.
Copilot AI review requested due to automatic review settings February 3, 2026 23:09
@coderabbitai

coderabbitai Bot commented Feb 3, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Updates cipherstash-client to v0.33.0 and adds an array_index_mode option for STE-VEC indexes, with default ALL; documentation, config parsing, construction, and tests updated accordingly.

Changes

Cohort / File(s) Summary
Version Management
CHANGELOG.md, Cargo.toml
Bumped cipherstash-client to v0.33.0 and documented the new array_index_mode feature in the changelog.
Documentation
docs/reference/searchable-json.md
Added STE-VEC configuration docs: array_index_mode (presets all/none and object form with item/wildcard/position), examples, and SQL fenced blocks.
Proxy config implementation
packages/cipherstash-proxy/src/proxy/encrypt_config/config.rs
Added array_index_mode: ArrayIndexMode to SteVecIndexOpts with serde default ArrayIndexMode::ALL; forwarded field into IndexType::SteVec and updated tests.
Integration/test generation
packages/cipherstash-proxy-integration/src/generate.rs
Imported ArrayIndexMode and extended IndexType::SteVec initializer to include term_filters and array_index_mode (set to ArrayIndexMode::ALL in updated tests).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 I hopped through code and docs today,
Found arrays hidden in JSON clay,
I taught them modes—both wide and slim,
From ALL to NONE, or picky whim,
Indexing now leaps out to play. 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Chore/update cs client' is partially related to the changeset. It refers to a real aspect of the changes (updating cipherstash-client from 0.32.2 to 0.33.0), but is vague and does not capture the main point of the PR, which is introducing array_index_mode support for STE-VEC indexes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/update-cs-client

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the CipherStash Proxy to use cipherstash-client v0.33.0 and exposes the new array_index_mode configuration for STE-VEC JSON indexes, with a backwards-compatible default. It also updates the searchable JSON documentation and the changelog to describe the new behavior.

Changes:

  • Bumped cipherstash-client to 0.33.0 (and associated transitive dependencies in Cargo.lock).
  • Extended SteVec index configuration to include array_index_mode in the proxy’s encrypt config, defaulting to ALL and wiring it through to ColumnConfig / IndexType::SteVec.
  • Documented the STE-VEC JSON array_index_mode option in docs/reference/searchable-json.md and recorded the change in CHANGELOG.md.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/cipherstash-proxy/src/proxy/encrypt_config/config.rs Imports ArrayIndexMode, adds array_index_mode to SteVecIndexOpts with a default of ArrayIndexMode::ALL, passes it into IndexType::SteVec, and updates tests to assert the new default.
docs/reference/searchable-json.md Clarifies the example SQL fence and documents ste_vec configuration options, including array_index_mode with preset and object forms plus usage examples.
Cargo.toml Updates the workspace dependency on cipherstash-client from 0.32.2 to 0.33.0.
Cargo.lock Refreshes lockfile to reflect cipherstash-client 0.33.0 and related dependency/version changes (e.g., cipherstash-config, cllw-ore, reqwest-retry, retry-policies, and new DNS-related crates).
CHANGELOG.md Adds an “Unreleased” entry noting the upgrade to cipherstash-client v0.33.0 and the new array_index_mode behavior for STE-VEC JSONB indexes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/cipherstash-proxy/src/proxy/encrypt_config/config.rs
Add term_filters and array_index_mode fields required by the updated
cipherstash-client API.

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In `@CHANGELOG.md`:
- Around line 7-12: The [Unreleased] section in CHANGELOG.md is missing the
canonical Keep a Changelog subsections; add the following subsection headings
under the existing "## [Unreleased]" block: "### Added", "### Changed" (keep
existing entries), "### Deprecated", "### Removed", "### Fixed", and "###
Security" — include any existing "Changed" content under "### Changed" and leave
other subsections present but empty (with a placeholder or a short "No changes."
line) so the file conforms to the required structure and is ready for future
entries.

In `@packages/cipherstash-proxy/src/proxy/encrypt_config/config.rs`:
- Around line 193-203: The code is constructing IndexType::SteVec with a
non-existent field `array_index_mode`; update both the pattern match and the
Index::new call to remove `array_index_mode` so the SteVec variant only uses
`prefix` and `term_filters`. Locate the match on `self.indexes.ste_vec_index`
(the SteVecIndexOpts destructuring) and the call
`config.add_index(Index::new(IndexType::SteVec { ... }))` and delete
`array_index_mode` from the destructure and the struct literal so it becomes
`prefix` and `term_filters` only.

Comment thread CHANGELOG.md
Comment thread packages/cipherstash-proxy/src/proxy/encrypt_config/config.rs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@coderdan coderdan merged commit 367c30f into main Feb 3, 2026
6 checks passed
@coderdan coderdan deleted the chore/update-cs-client branch February 3, 2026 23:36
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.

3 participants