Skip to content

Conversation

@suchapalaver
Copy link
Contributor

@suchapalaver suchapalaver commented Apr 30, 2024

Issue

As work takes place to add support for SQL queries the Gateway should invalidate such queries in the meantime.

Solution

The Gateway should reject queries containing SQL fields.

We want to reuse this code in the sql-gateway. Therefore we use the SqlFieldBehavior enum to inject the desired behavior.


Signed-off-by: Joseph Livesey [email protected]

@suchapalaver suchapalaver force-pushed the joseph/sql-238-create-a-pr-for-the-en-gateway-to-deny-sql-queries branch 4 times, most recently from 2176b65 to 60b1af7 Compare May 1, 2024 21:26
@suchapalaver suchapalaver marked this pull request as ready for review May 2, 2024 15:11
@suchapalaver suchapalaver force-pushed the joseph/sql-238-create-a-pr-for-the-en-gateway-to-deny-sql-queries branch from 60b1af7 to fbf4364 Compare May 2, 2024 19:11
@gusinacio gusinacio requested a review from Theodus May 2, 2024 19:50
fix: add selection set to query validation

Fixes STU-218

Signed-off-by: Gustavo Inacio <[email protected]>

feat: share functionality across sql- and non-sql gateways

test: ensure nested sql fields are not rejected
@suchapalaver suchapalaver force-pushed the joseph/sql-238-create-a-pr-for-the-en-gateway-to-deny-sql-queries branch from fbf4364 to 6dcae77 Compare May 2, 2024 20:18
Copy link
Member

@Theodus Theodus left a comment

Choose a reason for hiding this comment

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

LGTM

@Theodus Theodus merged commit 9c0d4e1 into edgeandnode:main May 15, 2024
@Theodus Theodus mentioned this pull request May 17, 2024
Theodus added a commit that referenced this pull request May 17, 2024
# Release Notes
- feat: add support for gateway to reject SQL queries (#712)
- fix: disable Nagle's algorithm (#742)
- fix: remove retry loop (#744)
@suchapalaver suchapalaver deleted the joseph/sql-238-create-a-pr-for-the-en-gateway-to-deny-sql-queries branch September 30, 2024 20:47
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.

3 participants