Skip to content
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

chore(asm): remove old django user block mechanism #11999

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ddtrace/appsec/trace_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@
from ddtrace.appsec._trace_utils import track_user_login_failure_event # noqa: F401
from ddtrace.appsec._trace_utils import track_user_login_success_event # noqa: F401
from ddtrace.appsec._trace_utils import track_user_signup_event # noqa: F401
import ddtrace.internal.core


ddtrace.internal.core.on("set_user_for_asm", block_request_if_user_blocked, "block_user")
5 changes: 0 additions & 5 deletions ddtrace/contrib/trace_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,6 @@ def set_user(
if session_id:
span.set_tag_str(user.SESSION_ID, session_id)

if asm_config._asm_enabled:
exc = core.dispatch_with_results("set_user_for_asm", [tracer, user_id]).block_user.exception
if exc:
raise exc

else:
log.warning(
"No root span in the current execution. Skipping set_user tags. "
Expand Down
Loading