Skip to content

bindings/c: Don't forward empty encryption key string#2162

Merged
penberg merged 1 commit intomainfrom
c-bindings-encryption-key
Sep 23, 2025
Merged

bindings/c: Don't forward empty encryption key string#2162
penberg merged 1 commit intomainfrom
c-bindings-encryption-key

Conversation

@penberg
Copy link
Copy Markdown
Collaborator

@penberg penberg commented Sep 23, 2025

op-sqlite, for example, always passes the remote encryption key:

DB opsqlite_libsql_open_sync(std::string const &name,
                             std::string const &base_path,
                             std::string const &url,
                             std::string const &auth_token, int sync_interval,
                             bool offline, std::string const &encryption_key,
                             std::string const &remote_encryption_key) {

Therefore, ensure that remote encryption key is not null and non-empty before passing it as part of HTTP requests.

op-sqlite, for example, always passes the remote encryption key:

```
DB opsqlite_libsql_open_sync(std::string const &name,
                             std::string const &base_path,
                             std::string const &url,
                             std::string const &auth_token, int sync_interval,
                             bool offline, std::string const &encryption_key,
                             std::string const &remote_encryption_key) {
```

Therefore, ensure that remote encryption key is not null and non-empty
before passing it as part of HTTP requests.
@penberg penberg added this pull request to the merge queue Sep 23, 2025
Merged via the queue into main with commit 76e5772 Sep 23, 2025
19 checks passed
@penberg penberg deleted the c-bindings-encryption-key branch September 23, 2025 07:08
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.

2 participants