-
Notifications
You must be signed in to change notification settings - Fork 142
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
Client Token shown in plain text while using @datadog/browser-rum in our application #853
Comments
No, the client token and application id are public data. Is it a concern for you? |
@BenoitZugmeyer was this by design? An attacker can get hold of the client token and send false information to our dashboard. I understand the client_token has only "write" access. |
This is by design, yes. This is similar to the Google Analytics "UA-XXXXX-Y" tracking id. Indeed, a malicious third party may use it to send false information, but the risk should be rather limited. If you prefer not to disclose the client id, you can use the |
Thanks for the clarification |
Perhaps an option to whitelist domains in the RUM dashboard? @BenoitZugmeyer |
I guess datadog doesn't whitelist domains feature, it only whitelists IPs and whitelists domains are referring to email send /receive is it @BenoitZugmeyer |
Hi @BenoitZugmeyer we are using datadog for capturing user events but the client token was exposing via the browser of its nature how can we prevent this ? |
I saw in datadog docs can create a proxy server to prevent this, we created a proxy server and used allowedTracingUrls to add a security layer now also those keys will be available for network requests, We need to configure domain level restriction in the datadog web level itself, earlier I worked Google Places library we purchased a key for organization use, keys are exposed in network requests of a browser nature but in the GCP we have an option to allow given domains only if the user copied that key he can't do anything because of domain level security configured in GCP. Do we have like this in Datadog @BenoitZugmeyer? |
We used a proxy host, but we must pass the client token in the datadog browser SDK init level itself, right? as per https://docs.datadoghq.com/logs/log_collection/javascript/#initialization-parameters @BenoitZugmeyer One more thing we need to consider if we implement a proxy, we have an extra layer of data transfer will be added, which increases the performance because every client datadog network call will go to our proxy server and then to the data dog server, here we need to whitelist the domain level itself in the datadog web interface do we have that @BenoitZugmeyer |
Any update on the request and this enhancement - #3236 @BenoitZugmeyer |
Not necessarily, you can pass any value (ex:
No, we don't
No update at this point, this is not something we are pursuing right now. I'll let your issue open for now to keep track of your request. |
The @datadog/browser-rum displays the client_token in plain text in the url. Shouldn't this be considered a secret or is this by design?
The text was updated successfully, but these errors were encountered: