Skip to content

Cast literals and params to eql_v1_encrypted#229

Merged
tobyhede merged 4 commits into
feat/proxy-eql-v2-integrationfrom
cast-to-encrypted
May 14, 2025
Merged

Cast literals and params to eql_v1_encrypted#229
tobyhede merged 4 commits into
feat/proxy-eql-v2-integrationfrom
cast-to-encrypted

Conversation

@tobyhede
Copy link
Copy Markdown
Contributor

Fix for SQL error when using ore or unique index terms:

  operator is not unique: eql_v1_encrypted > record

Encrypted parameters and literals are currently being wrapped into a ROW which create a value of type record.

This explicitly casts literals and params as ::jsonb::eql_v1_encrypted

@tobyhede tobyhede changed the base branch from main to feat/proxy-eql-v2-integration May 13, 2025 23:27
Copy link
Copy Markdown
Contributor

@freshtonic freshtonic left a comment

Choose a reason for hiding this comment

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

Nice!

@tobyhede tobyhede force-pushed the cast-to-encrypted branch from 5170629 to 64b9ea7 Compare May 13, 2025 23:36
@tobyhede tobyhede force-pushed the cast-to-encrypted branch from 5eb1500 to f5be624 Compare May 14, 2025 01:06
@tobyhede tobyhede merged commit 3f77dc5 into feat/proxy-eql-v2-integration May 14, 2025
1 check failed
@tobyhede tobyhede deleted the cast-to-encrypted branch May 14, 2025 01: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.

2 participants