You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extracts lightweight IAST request state from the lifecycle module and makes stack-trace span selection independent of the ASM request context. Taint tracking and telemetry now depend on focused state leaves, removing the ASM/IAST circular import while retaining the concrete IastSpanReporter type. The implementation does not use casts or object typing for IAST-controlled state.
The circular-import analyzer drops from 6 cycles to 5. Dependency-direction violations remain at 256 with no new edge.
Targeted typing checks for the 15 changed source files
Circular-import analysis: 6 to 5 cycles
Dependency-direction analysis: 256 to 256 violations, with no new edge
An exploratory expanded AppSec run collected substantially more than the requested files: 736 passed and 5 failed. Four failures were caused by the test environment missing Crypto; one was a patch-state interaction after the extra weak-hash tests. The focused run above is clean.
Risks
Low. The refactor changes how an implicit stack-trace span is resolved. Focused tests cover RASP service-entry placement and IAST root-span placement, plus request-context and overhead-control lifecycle behavior.
Additional Notes
Internal-only change; no release note is required.
🟥 execution_time [+481.354ns; +531.928ns] or [+17.948%; +19.833%]
scenario:tracer-small
🟥 execution_time [+30.474µs; +32.485µs] or [+8.715%; +9.291%]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Extracts lightweight IAST request state from the lifecycle module and makes stack-trace span selection independent of the ASM request context. Taint tracking and telemetry now depend on focused state leaves, removing the ASM/IAST circular import while retaining the concrete
IastSpanReportertype. The implementation does not use casts orobjecttyping for IAST-controlled state.The circular-import analyzer drops from 6 cycles to 5. Dependency-direction violations remain at 256 with no new edge.
Testing
./scripts/run-tests --venv 248da41 -- -- tests/appsec/appsec/test_stack_traces.py tests/appsec/iast/taint_tracking/test_disable_taint_sources.py tests/appsec/iast/taint_tracking/test_context.py tests/appsec/iast/test_overhead_control_engine.py(31 passed)scripts/lint checksAn exploratory expanded AppSec run collected substantially more than the requested files: 736 passed and 5 failed. Four failures were caused by the test environment missing
Crypto; one was a patch-state interaction after the extra weak-hash tests. The focused run above is clean.Risks
Low. The refactor changes how an implicit stack-trace span is resolved. Focused tests cover RASP service-entry placement and IAST root-span placement, plus request-context and overhead-control lifecycle behavior.
Additional Notes
Internal-only change; no release note is required.