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

Automated Session Tracking #5060

Merged
merged 149 commits into from
Feb 26, 2025
Merged

Automated Session Tracking #5060

merged 149 commits into from
Feb 26, 2025

Conversation

simon-id
Copy link
Member

@simon-id simon-id commented Dec 27, 2024

What does this PR do?

Adds instrumentation for express-session to get sessionIDs, send them to the WAF, feed them into our fingerprinting algorithm, and potentially block bad actors.

ST PR: DataDog/system-tests#3755

@simon-id simon-id marked this pull request as ready for review February 24, 2025 08:30
@simon-id simon-id requested review from a team as code owners February 24, 2025 08:30
return
}

const isSdkCalled = rootSpan.context()._tags['usr.session_id']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use USER_SESSION_ID

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no this is a tag, not an address, and we have hardcoded tags all around, we've never properly took the time to enum the tags used in appsec, not really a fan of doing it in this PR particularly

uurien
uurien previously approved these changes Feb 24, 2025
IlyasShabi
IlyasShabi previously approved these changes Feb 25, 2025
@simon-id simon-id dismissed stale reviews from IlyasShabi and uurien via cc3b74d February 25, 2025 18:42
@simon-id simon-id merged commit 2c9ab13 into master Feb 26, 2025
392 of 394 checks passed
@simon-id simon-id deleted the appsec_session_id branch February 26, 2025 09:34
@watson watson mentioned this pull request Feb 27, 2025
watson pushed a commit that referenced this pull request Feb 27, 2025
watson pushed a commit that referenced this pull request Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants