-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Key and App Key Logged With Failed Requests #274
Comments
+1, I have the same issue to submit metrics from AWS lambda |
@CoryOwens and @chenrui333 since this is a log from a dependency, I suggest you mask logs by have a masking function at your project level. The code for the filter will be something like this.
When you setup logging, you can then add a filter to the logger. |
@vaddipar - My issue isn't with the library; the library is doing exactly what it is supposed to do. My issue is with how DataDog is using that library. Private keys should be sent as request headers, not as query parameters. Log filtering is a workaround with a noticeable performance cost, not an ideal solution. |
hey 👋 still seeing this now - is there any fix coming forward? we shouldn't be logging API keys at all |
@katezaps I can fix the client end but how about the API actually reading the api and app key from the headers instead of params? |
Thanks everyone for raising this. This is much appreciated :). Indeed, we want to fix this! We raised the problem to the proper team. They actually already knew about it and they will do their best to fix it ASAP. Unfortunately, i cannot provide any ETA at the moment. |
Actually it doesn't work for all the endpoints at the moment, see datadogpy/datadog/api/api_client.py Lines 246 to 259 in a944ac6
So this issue is still not fully resolved |
Thanks for your contribution! This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community. If you would like this issue to remain open:
|
(closes DataDog#274)
(closes DataDog#274)
(closes DataDog#274)
(closes DataDog#274)
(closes DataDog#274)
Thanks for your contribution! This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community. If you would like this issue to remain open:
|
This is affecting us as well. Can we revisit if after 3 years its now possible to only send api/app keys through headers and not request parameters? |
Fixed in #754 |
Currently, if anything goes wrong with a post to Datadog, the API Key and App Key are logged by multiple modules (e.g.
datadog.api
,urllib3.connectionpool
,urllib3.util.retry
, etc.) because they are included in the request URL (e.g./api/v1/series?api_key=[OBFUSCATED_API_KEY]&application_key=[OBFUSCATED_APP_KEY]
).These keys should be sent as request headers, instead.
The text was updated successfully, but these errors were encountered: