generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add opt-in config option for HTTP URL (#268)
## Which problem is this PR solving? During event processing og HTTP request/response pairs, the HTTP URL is added to the output event. This potentially could sensitive information from the url path and or query string. This PR adds an opt-in configuration option to enable HTTP URL capture. - Works toward #214 ## Short description of the change - Adds new configuration option to determine whether HTTP URLs are recorded in events, defaults to `false` - Set the new config option by reading the new `INCLUDE_REQUEST_URL` env var - Use new config option during processing to decide if the HTTP URL is added to libhoney event - Add tests to check both the default config value is `false` and the config can be updated by using the env var - Add example of setting the env var in the smoke test deployment yaml ## How to verify that this has the expected result The agent now requires user to opt-in to recording HTTP URLs. --------- Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com> Co-authored-by: Robb Kidd <robbkidd@honeycomb.io>
- Loading branch information
1 parent
d7b4d2a
commit 8b41c0f
Showing
5 changed files
with
104 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters