Skip to content

Ingest-Only Mode Support#27

Open
rswalkden wants to merge 3 commits into
masterfrom
ingest-only-mode-support
Open

Ingest-Only Mode Support#27
rswalkden wants to merge 3 commits into
masterfrom
ingest-only-mode-support

Conversation

@rswalkden
Copy link
Copy Markdown
Contributor

This pull request introduces support for "ingest-only" mode in the Netacea Lua module, allowing request data to be sent to the ingest pipeline without invoking mitigation logic. It also updates documentation, versioning, and tests to reflect this new feature and improve robustness.

Ingest-only mode support:

  • Added support for ingest-only mode in the Lua module, updating the ingest method in src/lua_resty_netacea.lua to gracefully handle cases where NetaceaState or protector_result is missing, and only set bc_type when mitigation state is available. (src/lua_resty_netacea.luaL121-R129)

  • Updated the documentation (README.md) with a new section and example configuration for enabling ingest-only mode, including required settings for ingestEnabled, mitigationEnabled, and kinesisProperties. (README.mdR48-R101)

Versioning and packaging:

  • Bumped the module version to 1.2.0 in both src/lua_resty_netacea.lua and the rockspec file, and updated the Dockerfile and build process to use the new version. ([1], [2], [3])

Testing improvements:

  • Expanded the test suite (test/lua_resty_netacea_spec.lua) to cover ingest-only mode, including cases where NetaceaState or protector_result is missing and where mitigation state is present. (test/lua_resty_netacea_spec.luaL3-R116)

@rswalkden rswalkden requested a review from a team as a code owner May 14, 2026 11:56
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