File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,11 @@ RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_taint_tracki
25
25
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/appsec/_iast/_stacktrace*.so
26
26
# _stack_v2 may not exist for some versions of ddtrace (e.g. under python 3.13)
27
27
RUN rm -f ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so
28
- # remove *.dist-info directories except any entry_points.txt files
29
- RUN find ./python/lib/$runtime/site-packages/*.dist-info -not -name "entry_points.txt" -type f -delete
28
+ # remove *.dist-info directories except any entry_points.txt files and METADATA files required for Appsec Software Composition Analysis
29
+ RUN find ./python/lib/$runtime/site-packages/*.dist-info \
30
+ -type f \
31
+ ! \( -name 'entry_points.txt' -o -name 'METADATA' \) \
32
+ -delete
30
33
RUN find ./python/lib/$runtime/site-packages -type d -empty -delete
31
34
32
35
# Remove requests and dependencies
Original file line number Diff line number Diff line change 3
3
4
4
5
5
if os .environ .get ("DD_INSTRUMENTATION_TELEMETRY_ENABLED" ) is None :
6
- os .environ ["DD_INSTRUMENTATION_TELEMETRY_ENABLED" ] = "false"
6
+ # Telemetry is required for Appsec Software Composition Analysis
7
+ os .environ ["DD_INSTRUMENTATION_TELEMETRY_ENABLED" ] = os .environ .get (
8
+ "DD_APPSEC_ENABLED" , "false"
9
+ )
7
10
8
11
if os .environ .get ("DD_API_SECURITY_ENABLED" ) is None :
9
12
os .environ ["DD_API_SECURITY_ENABLED" ] = "False"
You can’t perform that action at this time.
0 commit comments