Skip to content

Commit ca5a4f6

Browse files
committed
chore: merge with main'
2 parents 6c745a6 + 22f6ae5 commit ca5a4f6

File tree

9 files changed

+510
-109
lines changed

9 files changed

+510
-109
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ CipherStash Proxy refreshes the configuration every 60 seconds. To force an imme
112112
SELECT cs_refresh_encrypt_config();
113113
```
114114

115-
>Note: This statement must be executed when connected to CipherStash Proxy.
116-
When connected to the PostgreSQL database directly, it is a no-op.
115+
> Note: This statement must be executed when connected to CipherStash Proxy.
116+
> When connected to the database directly, it is a no-op.
117117
118118
## Storing data
119119

@@ -175,14 +175,14 @@ Data is returned as:
175175
}
176176
```
177177

178-
>Note: If you execute this query directly on the PostgreSQL database, you will not see any plaintext data but rather the `jsonb` payload with the ciphertext.
178+
> Note: If you execute this query directly on the database, you will not see any plaintext data but rather the `jsonb` payload with the ciphertext.
179179
180180
## Configuring indexes for searching data
181181

182182
In order to perform searchable operations on encrypted data, you must configure indexes for the encrypted columns.
183183

184184
> **IMPORTANT:** If you have existing data that's encrypted and you add or modify an index, all the data will need to be re-encrypted.
185-
This is due to the way CipherStash Proxy handles searchable encryption operations.
185+
> This is due to the way CipherStash Proxy handles searchable encryption operations.
186186
187187
### Adding an index (`cs_add_index_v1`)
188188

@@ -205,9 +205,9 @@ You can read more about the index configuration options [here](docs/reference/IN
205205

206206
```sql
207207
SELECT cs_add_index_v1(
208-
'users',
209-
'encrypted_email',
210-
'unique',
208+
'users',
209+
'encrypted_email',
210+
'unique',
211211
'text'
212212
);
213213
```
@@ -233,9 +233,9 @@ Enable equality search on encrypted data.
233233

234234
```sql
235235
SELECT cs_add_index_v1(
236-
'users',
237-
'encrypted_email',
238-
'unique',
236+
'users',
237+
'encrypted_email',
238+
'unique',
239239
'text'
240240
);
241241
```
@@ -263,10 +263,10 @@ Enables basic full-text search on encrypted data.
263263

264264
```sql
265265
SELECT cs_add_index_v1(
266-
'users',
267-
'encrypted_email',
268-
'match',
269-
'text',
266+
'users',
267+
'encrypted_email',
268+
'match',
269+
'text',
270270
'{"token_filters": [{"kind": "downcase"}], "tokenizer": { "kind": "ngram", "token_length": 3 }}'
271271
);
272272
```

0 commit comments

Comments
 (0)