Live Debugger Sensitive Data Scrubbing

This product is not supported for your selected Datadog site. ().

Overview

Live Debugger captures logs and variable snapshots that can contain sensitive application data, especially when using the Capture Variables option.

The following redaction mechanisms help protect captured data:

  • Identifier and type rules redact matching values in your infrastructure, before upload.
  • Live Debugger redaction modes control which captured values are visible. See mode-based redaction.
  • Sensitive Data Scanner rules redact matching data after it reaches Datadog. See Sensitive Data Scanner. These rules are not a substitute for rules that prevent sensitive values from leaving your infrastructure.

Mode-based redaction

Live Debugger has two redaction modes:

  • Strict Mode: Redacts all values except numbers and Booleans. Bits Live Debugger is not available for service and environment combinations set to Strict Mode.
  • Targeted Mode: Redacts known sensitive patterns such as credit card numbers, API keys, IPs, and other PII. It also runs a high-entropy secrets scanner that automatically redacts likely secrets, which appear as [REDACTED:HIGH_ENTROPY] in captured data.

These redaction modes cannot be disabled, only switched. Targeted Mode is applied automatically in common pre-production environments such as staging or preprod. Changing the redaction mode requires the Live Debugger Redaction Write permission.

Redact based on identifiers

Default behavior

Live Debugger automatically redacts values linked to sensitive identifiers, such as password and accessToken, before captured data leaves the host. Additional language-specific redaction rules are built into each SDK. See redacted identifiers.

Custom identifier redaction

You can further tailor redaction by specifying additional identifiers. In your application’s environment (not on datadog-agent), set the DD_DYNAMIC_INSTRUMENTATION_REDACTED_IDENTIFIERS environment variable to a comma-separated list of identifiers such as firstName,lastName,phoneNumber.

To exclude specific identifiers from the default redaction list, set the DD_DYNAMIC_INSTRUMENTATION_REDACTION_EXCLUDED_IDENTIFIERS environment variable to a comma-separated list of identifiers that should not be redacted, such as cookie,sessionid.

Redaction applies universally, regardless of how the identifier is used in the code (as method arguments, local variables, class attributes, dictionary keys, and so on). The associated values are redacted in your infrastructure and not uploaded to Datadog.

Redact based on specific classes or types

Certain classes may inherently contain sensitive information (for example, a UserCredentials class). Again in your application’s environment (not on datadog-agent), set the DD_DYNAMIC_INSTRUMENTATION_REDACTED_TYPES environment variable to a comma-separated list of sensitive types, such as MyCompany.Authentication.UserCredential,MyCompany.BillingAddress.

Class-based redaction:

  • Redacts variables of the types listed. Their contents are not uploaded to Datadog.
  • Stops probes from being set within any code location in the redacted classes.

Redact based on variable values with Sensitive Data Scanner

Sensitive Data Scanner identifies and redacts sensitive information based on specific regular expressions.

Configure Sensitive Data Scanner rules

Create, customize, or disable rules on the Sensitive Data Scanner page. When creating a rule, set its filter to source:dd_debugger to apply it to Live Debugger logs. For configuration instructions, see the Sensitive Data Scanner documentation.

Note: Datadog Sensitive Data Scanner performs its redaction after the information is uploaded to Datadog.

Further reading

Additional helpful documentation, links, and articles: