Releases: gatewayd-io/gatewayd-plugin-sql-ids-ips
Releases · gatewayd-io/gatewayd-plugin-sql-ids-ips
v0.4.5
What's Changed
Bug Fixes
- Fix
prepareResponseusing hardcoded constants:ErrorNumberandErrorDetailwere package-level constants instead of the user-configuredp.ErrorNumber/p.ErrorDetailfrom the plugin config. Custom error responses now work as intended. - Fix release workflow name: Corrected copy-paste error that referenced
gatewayd-plugin-cacheinstead ofgatewayd-plugin-sql-ids-ips. - Fix test function name typos:
Test_OnTrafficFromClinet→Test_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 fromEmptyQueryResponse.Encode()andReadyForQuery.Encode()are now logged instead of silently discarded. - Update CI action versions:
actions/checkoutv3→v4,actions/setup-gov3→v5,softprops/action-gh-releasev1→v2.
Test Coverage
- Added
Test_emptyResponsefor theResponseType == "empty"branch. - Added
Test_GetPluginConfigfor plugin config retrieval. - Added
Test_OnTrafficFromClientBelowThresholdfor legitimate query pass-through. - Added
Test_OnTrafficFromClientEmptyQueryfor empty request handling. - Removed duplicate
Test_OnTrafficFromClientFailedPrediction.
Full Changelog: v0.4.4...v0.4.5
v0.4.4
v0.4.3
Full Changelog: v0.4.2...v0.4.3
v0.4.2
Full Changelog: v0.4.1...v0.4.2
v0.4.1
v0.4.0
v0.3.1
Full Changelog: v0.3.0...v0.3.1
v0.3.0
v0.2.11
This release includes three changes:
- The plugin can now return an empty query response to the client instead of an error response.
- The error response (including code, severity, message and details) and the log level of the audit trail are now fully customizable.
- 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