Skip to content

Releases: gatewayd-io/gatewayd-plugin-sql-ids-ips

v0.4.5

21 Feb 23:14
7d68c5f

Choose a tag to compare

What's Changed

Bug Fixes

  • Fix prepareResponse using hardcoded constants: ErrorNumber and ErrorDetail were package-level constants instead of the user-configured p.ErrorNumber / p.ErrorDetail from the plugin config. Custom error responses now work as intended.
  • Fix release workflow name: Corrected copy-paste error that referenced gatewayd-plugin-cache instead of gatewayd-plugin-sql-ids-ips.
  • Fix test function name typos: Test_OnTrafficFromClinetTest_OnTrafficFromClient.

Improvements

  • Add HTTP timeout for prediction API calls: The plugin now propagates context with a configurable timeout (default 10s) to the DeepSQLi prediction API call, preventing indefinite blocking if the service is slow or unresponsive. Configurable via predictionTimeout (in seconds).
  • Handle encode errors in prepareResponse: Errors from EmptyQueryResponse.Encode() and ReadyForQuery.Encode() are now logged instead of silently discarded.
  • Update CI action versions: actions/checkout v3→v4, actions/setup-go v3→v5, softprops/action-gh-release v1→v2.

Test Coverage

  • Added Test_emptyResponse for the ResponseType == "empty" branch.
  • Added Test_GetPluginConfig for plugin config retrieval.
  • Added Test_OnTrafficFromClientBelowThreshold for legitimate query pass-through.
  • Added Test_OnTrafficFromClientEmptyQuery for empty request handling.
  • Removed duplicate Test_OnTrafficFromClientFailedPrediction.

Full Changelog: v0.4.4...v0.4.5

v0.4.4

07 Aug 16:04
b7e0a7c

Choose a tag to compare

What's Changed

Full Changelog: v0.4.3...v0.4.4

v0.4.3

18 May 12:58
93aeb90

Choose a tag to compare

Full Changelog: v0.4.2...v0.4.3

v0.4.2

18 May 12:45
ced9ffa

Choose a tag to compare

Full Changelog: v0.4.1...v0.4.2

v0.4.1

09 Nov 12:11
7a331cd

Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.4.1

v0.4.0

28 Oct 16:03
9865e83

Choose a tag to compare

What's Changed

Full Changelog: v0.3.1...v0.4.0

v0.3.1

29 Sep 19:56
51e5fec

Choose a tag to compare

Full Changelog: v0.3.0...v0.3.1

v0.3.0

19 May 11:24
90898df

Choose a tag to compare

What's Changed

Full Changelog: v0.2.11...v0.3.0

v0.2.11

19 May 10:57
9589aa0

Choose a tag to compare

This release includes three changes:

  1. The plugin can now return an empty query response to the client instead of an error response.
  2. The error response (including code, severity, message and details) and the log level of the audit trail are now fully customizable.
  3. A Sigma rule is added to detect the audit trail log line in SIEM and logging systems.

Full Changelog: v0.2.10...v0.2.11

v0.2.10

17 May 11:38
dc2501e

Choose a tag to compare

What's Changed

Full Changelog: v0.2.9...v0.2.10