Skip to content

Add track() API for custom event tracking + config updates via SSE#984

Draft
hansott wants to merge 12 commits intomainfrom
add-track-api
Draft

Add track() API for custom event tracking + config updates via SSE#984
hansott wants to merge 12 commits intomainfrom
add-track-api

Conversation

@hansott
Copy link
Copy Markdown
Member

@hansott hansott commented Mar 30, 2026

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 30, 2026

Comment thread library/agent/api/UserEventsAPI.ts Outdated
hansott added 8 commits April 5, 2026 18:13
…ack-api

* 'main' of github.com:AikidoSec/firewall-node: (25 commits)
  Improve serverless docs for Lambda and Cloud Functions
  Simplify onPackageWrapped logic
  Add tests for duplicate class names across scopes
  Add test for nested classes with same className
  Skip failing SQLite3 test with latest Node.js version
  Switch to new Safe Chain version
  Remove startup warning for AIKIDO_BLOCK_INVALID_SQL
  Fix tests for AIKIDO_BLOCK_INVALID_SQL default change
  Default AIKIDO_BLOCK_INVALID_SQL to off
  Fix method name handling
  Fix linter recommendation
  Add className filter to MethodDefinition instrumentation
  Strip devDependencies and scripts from published package.json
  Ignore caniuse-lite is outdated in e2e test
  IDOR: Add dialect to cache key
  Update SQLite3 test to expect Zen blocking on invalid SQL
  Remove redundant JSDoc comment
  Keep dry mode test in original position to reduce diff
  Add docs for AIKIDO_BLOCK_INVALID_SQL env var
  Use AIKIDO_BLOCK_INVALID_SQL env var instead of server config
  ...
Use Server-Sent Events to receive near-instant config updates from
zen-realtime instead of polling every 60 seconds. Falls back to
polling when the SSE connection is unavailable. Vendors the
eventsource-parser library (MIT) for SSE protocol parsing.
SSE is now the only mechanism for config updates — no more polling.
Verbose SSE logging (connect, disconnect, chunks, events) is gated
behind AIKIDO_DEBUG_SSE=true. Removes unused getConfigLastUpdatedAt.
…ack-api

* 'main' of github.com:AikidoSec/firewall-node:
  Fix test failing in CI
  Skip grouped rate limiting for excluded users
  Fix too new version not allowed by Safe Chain
  Support @prisma/adapter-pg v7
  Fix failing test because of ads logged to stderr
  Fix ESM tests
  Extend tests
  Allow disabling rate limiting per user
  Support Undici v8
  Update Next.js instructions and run all e2e tests on v24
  Remove debug logs
  Add Next.js v16 e2e test and update docs
  Support Mistral Ai v2 and v1 in ESM apps
  Fix unprotected Prisma methods
@hansott hansott changed the title Add track() API for custom event tracking Add track() API for custom event tracking + config updates via SSE Apr 23, 2026
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