Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

agent: add url query and form parameters to the request record #84

Merged
merged 2 commits into from
Dec 12, 2019

Conversation

Julio-Guerra
Copy link
Collaborator

In order to display it in the dashboard but also have them it in the event explorer, add the request parameters to the request record.

For now we only add URL query and form parameters taken from the http.Request as the handler left them. So if the handler don't parse them, they will be nil.

This patch also reworks the request record payload creation into smaller sub-methods, one for each field.

Julio Guerra added 2 commits December 11, 2019 17:53
Add URL query and post parameters from the request to the request record send to
the backend. It allows for example to show them in the attack log page of the
dashboard.

PII-scrubbing is upcoming.
@Julio-Guerra Julio-Guerra added the enhancement New feature or request label Dec 12, 2019
@Julio-Guerra Julio-Guerra added this to the v0.1.0-beta.9 milestone Dec 12, 2019
@Julio-Guerra Julio-Guerra self-assigned this Dec 12, 2019
Copy link
Member

@lloeki lloeki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Julio-Guerra Julio-Guerra merged commit d77094c into dev Dec 12, 2019
@Julio-Guerra Julio-Guerra deleted the feature/request-parameters branch December 12, 2019 13:52
Julio-Guerra pushed a commit that referenced this pull request Dec 19, 2019
New Features:

- Request parameters such as query or post parameters are now added in the attack
  events and shown in the attack logs and in the event explorer pages of our dashboard. (#84)

- PII scrubbing is now performed on every event sent to Sqreen, as documented
  on https://docs.sqreen.com/guides/how-sqreen-works/#pii-scrubbing. (#86)

Fixes:

- Add PII scrubbing to the WAF logs that may include data from the request. (#87)

Internal Changes:

- The In-App WAF has been intensively optimized so that large requests can no longer impact
  its execution time. (#83)
Julio-Guerra pushed a commit that referenced this pull request Dec 19, 2019
New Features:

- Request parameters such as query or post parameters are now added in the attack
  events and shown in the attack logs and in the event explorer pages of our dashboard. (#84)

- PII scrubbing is now performed on every event sent to Sqreen, as documented
  on https://docs.sqreen.com/guides/how-sqreen-works/#pii-scrubbing. (#86)

Fixes:

- Add PII scrubbing to the WAF logs that may include data from the request. (#87)

Internal Changes:

- The In-App WAF has been intensively optimized so that large requests can no longer impact
  its execution time. (#83)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants