Skip to content

Automated Session Tracking#5060

Merged
simon-id merged 149 commits into
masterfrom
appsec_session_id
Feb 26, 2025
Merged

Automated Session Tracking#5060
simon-id merged 149 commits into
masterfrom
appsec_session_id

Conversation

@simon-id

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor 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
@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