Log HTTP Errors #24

Closed
opened 2014-07-19 07:00:06 +00:00 by thorsten · 0 comments
thorsten commented 2014-07-19 07:00:06 +00:00 (Migrated from devops.tsommer.org)

Logging HTTP Errors

Hint from Gustavo Niemeyer:

The error from a #golang http request includes the full URL, including parameters. Exposing the error to users may leak API keys. Source: Twitter.

Solution

I should parse the URL and cut off the parameters. To change this behavior, I should add a configuration parameter: If a developer would like to see the full parameters, he is able to enable this.

# Logging HTTP Errors ## Hint from Gustavo Niemeyer: _The error from a #golang http request includes the full URL, including parameters. Exposing the error to users may leak API keys._ **Source: Twitter.** ## Solution I should parse the URL and cut off the parameters. To change this behavior, I should add a configuration parameter: If a developer would like to see the full parameters, he is able to enable this.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Go/Ocean#24
No description provided.