Skip to content

Commit

Permalink
squash! Dont deserialize rcm payloads until they are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-git committed Mar 28, 2024
1 parent 0e319ab commit dbc89b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tracer/src/Datadog.Trace/AppSec/Security.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,12 @@ private void InitWafAndInstrumentations(bool configurationFromRcm = false)
_wafLibraryInvoker = _libraryInitializationResult.WafLibraryInvoker;
}

_wafInitResult = Waf.Waf.Create(_wafLibraryInvoker!, _settings.ObfuscationParameterKeyRegex, _settings.ObfuscationParameterValueRegex, _settings.Rules, configurationFromRcm ? _configurationStatus : null,
_wafInitResult = Waf.Waf.Create(
_wafLibraryInvoker!,
_settings.ObfuscationParameterKeyRegex,
_settings.ObfuscationParameterValueRegex,
_settings.Rules,
configurationFromRcm ? _configurationStatus : null,
_settings.UseUnsafeEncoder,
GlobalSettings.Instance.DebugEnabledInternal && _settings.WafDebugEnabled);
if (_wafInitResult.Success)
Expand Down

0 comments on commit dbc89b9

Please sign in to comment.