Skip to content

Add AttackVectors by-request read (v0.14.0) - #46

Merged
concentrator merged 2 commits into
masterfrom
feat/attack-vectors
Sep 23, 2026
Merged

concentrator merged 2 commits into
masterfrom
feat/attack-vectors

Conversation

@concentrator

Copy link
Copy Markdown
Collaborator

Summary

  • New AttackVectors interface, added to API, with AttackVectorsByRequest(clientID, params): one POST to /v1/client/{client_id}/attack-vectors/by-request that returns the attack vectors of a request.
  • A zero Limit is sent as AttackVectorsDefaultLimit (100); the caller's params are not modified. has_more and cursor are decoded but not followed.
  • AttackVector carries the vector fields including action_conditions, host and path; point stays the wire's JSON-encoded string.
  • Existing attack/hit methods are unchanged.
  • Release v0.14.0: CHANGELOG heading and Version bumped to 0.14.0 (default User-Agent becomes Wallarm-go/0.14.0).

Test plan

  • make vet && make test && make lint pass locally
  • Unit tests cover the wire body and default limit, explicit limit, empty result, 400 as *APIError without retry, and nil params
  • Live read-only call against the API returned and decoded all vectors of a known request

@concentrator
concentrator merged commit 81e67a1 into master Sep 23, 2026
6 checks passed
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.

1 participant