|
17 | 17 | - [Column could not be encrypted](#encrypt-column-could-not-be-encrypted) |
18 | 18 | - [Column could not be encrypted](#encrypt-column-could-not-be-encrypted) |
19 | 19 | - [Could not decrypt data for keyset](#encrypt-encrypt-could-not-decrypt-data-for-keyset) |
| 20 | + - [KeysetId could not be parsed](#encrypt-keyset-id-could-not-be-parsed) |
20 | 21 | - [KeysetId could not be set](#encrypt-keyset-id-could-not-be-set) |
| 22 | + - [KeysetName could not be set](#encrypt-keyset-name-could-not-be-set) |
21 | 23 | - [Plaintext could not be encoded](#encrypt-plaintext-could-not-be-encoded) |
22 | 24 | - [Unknown column](#encrypt-unknown-column) |
23 | 25 | - [Unknown table](#encrypt-unknown-table) |
@@ -276,31 +278,81 @@ The most likely cause is network access to the ZeroKMS service. |
276 | 278 |
|
277 | 279 |
|
278 | 280 |
|
| 281 | +<!-- ---------------------------------------------------------------------------------------------------- --> |
| 282 | + |
| 283 | + |
| 284 | +## KeysetId could not be parsed <a id='encrypt-keyset-id-could-not-be-parsed'></a> |
| 285 | + |
| 286 | +A keyset_id could not be parsed using the `SET CIPHERSTASH.KEYSET_ID` command. |
| 287 | + |
| 288 | +### Error message |
| 289 | + |
| 290 | +``` |
| 291 | +KeysetId `{id}` could not be parsed using `SET CIPHERSTASH.KEYSET_ID`. KeysetId should be a valid UUID. |
| 292 | +``` |
| 293 | + |
| 294 | +### How to Fix |
| 295 | + |
| 296 | +1. Check that the `KeysetId` is a valid UUID. |
| 297 | + |
| 298 | + |
| 299 | +``` |
| 300 | + SET [ SESSION ] CIPHERSTASH.KEYSET_ID { TO | = } '{KeysetId}' |
| 301 | +``` |
| 302 | + |
279 | 303 | <!-- ---------------------------------------------------------------------------------------------------- --> |
280 | 304 |
|
281 | 305 |
|
282 | 306 | ## KeysetId could not be set <a id='encrypt-keyset-id-could-not-be-set'></a> |
283 | 307 |
|
284 | | -A keyset_id could not be set using the `SET CIPHERSTASH.KEYSET_ID` command. |
| 308 | +A KeysetId could not be set using the `SET CIPHERSTASH.KEYSET_ID` command. |
285 | 309 |
|
286 | 310 |
|
287 | 311 | ### Error message |
288 | 312 |
|
289 | 313 | ``` |
290 | | -A keyset_id could not be set using `SET CIPHERSTASH.KEYSET_ID` |
| 314 | +A KeysetId could not be set using `SET CIPHERSTASH.KEYSET_ID` |
291 | 315 | ``` |
292 | 316 |
|
293 | 317 | ### How to Fix |
294 | 318 |
|
295 | | -1. Check the syntax of the `SET CIPHERSTASH.KEYSET_ID` command. The `keyset_id` value should be in single quotes. |
296 | | -2. Check that the provided `keyset_id` is a valid UUID. |
297 | | -2. Check that the value is being set as a literal. The PostgreSQL `SET` statement does not support parameterised querying. |
| 319 | +1. Check the syntax of the `SET CIPHERSTASH.KEYSET_ID` command. The `KeysetId` value should be in single quotes. |
| 320 | +2. Check that the `KeysetId` is a valid UUID. |
| 321 | +3. Check that the value is being set as a literal. The PostgreSQL `SET` statement does not support parameterised querying. |
298 | 322 |
|
299 | 323 |
|
300 | 324 | ``` |
301 | 325 | SET [ SESSION ] CIPHERSTASH.KEYSET_ID { TO | = } '{keyset_id}' |
302 | 326 | ``` |
303 | 327 |
|
| 328 | + |
| 329 | +<!-- ---------------------------------------------------------------------------------------------------- --> |
| 330 | + |
| 331 | + |
| 332 | +## KeysetName could not be set <a id='encrypt-keyset-name-could-not-be-set'></a> |
| 333 | + |
| 334 | +KeysetName could not be set using the `SET CIPHERSTASH.KEYSET_NAME` command. |
| 335 | + |
| 336 | + |
| 337 | +### Error message |
| 338 | + |
| 339 | +``` |
| 340 | +A KeysetName could not be set using `SET CIPHERSTASH.KEYSET_NAME` |
| 341 | +``` |
| 342 | + |
| 343 | +### How to Fix |
| 344 | + |
| 345 | +1. Check the syntax of the `SET CIPHERSTASH.KEYSET_ID` command. The `KeysetName` value should be in single quotes. |
| 346 | +2. Check that the provided `KeysetName` is a valid UUID. |
| 347 | +2. Check that the value is being set as a literal. The PostgreSQL `SET` statement does not support parameterised querying. |
| 348 | + |
| 349 | + |
| 350 | +``` |
| 351 | + SET [ SESSION ] CIPHERSTASH.KEYSET_NAME { TO | = } '{KeysetName}' |
| 352 | +``` |
| 353 | + |
| 354 | + |
| 355 | + |
304 | 356 | <!-- ---------------------------------------------------------------------------------------------------- --> |
305 | 357 |
|
306 | 358 |
|
|
0 commit comments