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

Query string obfuscation tests for http client and server spans #3783

Merged
merged 13 commits into from
Jan 17, 2025

Conversation

mtoffl01
Copy link
Contributor

@mtoffl01 mtoffl01 commented Jan 8, 2025

Motivation

Test that DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP applies to both http client and http server spans.

Changes

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner. We're working on refining the codeowners file quickly.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • If PR title starts with [<language>], double-check that only <language> is impacted by the change
  • No system-tests internal is modified. Otherwise, I have the approval from R&P team
  • CI is green, or failing jobs are not related to this change (and you are 100% sure about this statement)
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added (or removed)?

@mtoffl01 mtoffl01 requested review from a team, link04, mabdinur and khanayan123 and removed request for a team January 14, 2025 21:03
@mtoffl01 mtoffl01 marked this pull request as ready for review January 14, 2025 21:04
@mtoffl01 mtoffl01 requested review from a team as code owners January 14, 2025 21:04
@mtoffl01 mtoffl01 requested review from ValentinZakharov, Mariovido, PerfectSlayer and Anilm3 and removed request for a team January 14, 2025 21:04
self.r = weblog.get("/make_distant_call", params={"url": "http://weblog:7777/?ssn=123-45-6789"})

@missing_feature(context.library == "nodejs", reason="Node only obfuscates queries on the server side")
@missing_feature(
Copy link
Collaborator

Choose a reason for hiding this comment

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

why test_query_string_obfuscation_empty_client is marked as irrrelevant and test_query_string_obfuscation_configured_client is marked as missing_feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be good now

)


@scenarios.default
Copy link
Collaborator

Choose a reason for hiding this comment

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

if there is not a @scenarios decorator, it's set as default. No marker needed

@cbeauchesne cbeauchesne dismissed a stale review January 17, 2025 14:33

typo

Copy link
Collaborator

@cbeauchesne cbeauchesne left a comment

Choose a reason for hiding this comment

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

Conflict to solve

Copy link
Collaborator

@cbeauchesne cbeauchesne left a comment

Choose a reason for hiding this comment

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

All good, sorry for the previous review, github showed me a strange commit ...

@mtoffl01 mtoffl01 merged commit 8cd8457 into main Jan 17, 2025
432 of 433 checks passed
@mtoffl01 mtoffl01 deleted the mtoff/obfuscate-client-querystr branch January 17, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants