Skip to content

Conversation

@coderdan
Copy link
Contributor

No description provided.

coderdan and others added 27 commits October 19, 2025 19:07
- Updated `cipherstash-client` to version 0.28.0 and `cts-common` to 0.3.1 in `Cargo.toml`.
- Added new module `eql.rs` to handle encrypted data structures and conversions.
- Refactored encryption handling in `lib.rs` to utilize the new `Encrypted` enum from `eql.rs`.
- Introduced new `query.rs` module to define query structures and serialization for `SteQueryVec` and `TokenizedSelector`.
- Added tests for query serialization in the new `query.rs` module.
- Updated various dependencies in `Cargo.lock` to their latest versions, including `serde`, `ahash`, and others.
type JsonContainsQuery,
} from '@cipherstash/protect-ffi'
import { Client, type QueryResult } from 'pg'
import { encryptQuery } from '../../lib/load.cjs'
Copy link
Contributor

Choose a reason for hiding this comment

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

The integration tests are intended to use @cipherstash/protect-ffi as a dependency through package.json (similar to an end user) instead of importing from ../../lib.

Can you please update this import to be consistent with the other imports from @cipherstash/protect-ffi?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep no problem. I hadn't noticed that.


// Import a shared encryptConfig from common.js
import { encryptConfig } from './common.js'
import { encryptQuery } from '../../lib/load.cjs'
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment here about importing from@cipherstash/protect-ffi instead of ../../lib.

default: ''
secrets:
CIPHERSTASH_SUITE_PRIVATE_SSH_KEY:
required: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the intent to revert the SSH changes before merging? Ideally we'd avoid using unpublished versions of cipherstash-client and don't need to support private GitHub dependencies.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like CI isn't running against this PR because the test workflow file is invalid (missing a secret): https://github.com/cipherstash/protectjs-ffi/actions/runs/18696048330.

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.

4 participants