Skip to content

chore: remove logs logging request/response body - #4754

Merged
shekhar-rudder merged 2 commits into
developfrom
log-cleanup
Nov 6, 2025
Merged

shekhar-rudder merged 2 commits into
developfrom
log-cleanup

Conversation

@shekhar-rudder

Copy link
Copy Markdown
Member

What are the changes introduced in this PR?

This PR removes debug-level logging statements that were logging entire request and response bodies across multiple controllers. These logs may contain sensitive customer data and PII, creating potential compliance and security risks.

What is the related Linear task?

Resolves INT-XXX

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

N/A

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@shekhar-rudder
shekhar-rudder requested review from a team as code owners November 5, 2025 11:59
@coderabbitai

coderabbitai Bot commented Nov 5, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Release Notes

  • Chores
    • Removed internal debug logging statements across controllers and services. Application functionality and user experience remain unchanged.

Walkthrough

Removed only debug-level logger.debug calls from multiple controller and service files (delivery, destination, regulation, source, userTransform, and userTransform service). No business logic, control flow, responses, or exported declarations were changed.

Changes

Cohort / File(s) Summary
Controllers — Logging cleanup
src/controllers/delivery.ts, src/controllers/destination.ts, src/controllers/regulation.ts, src/controllers/source.ts, src/controllers/userTransform.ts
Removed logger.debug statements across multiple controller methods (entry, intermediate, and response/debugging logs). No changes to logic, error handling, or exports.
Services — Logging cleanup
src/services/userTransform.ts
Removed two logger.debug statements in UserTransformService.testTransformRoutine that logged input events and transformed output. No other changes.

Sequence Diagram(s)

(omitted — changes are logging-only and do not modify control flow or interactions)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Reason: Homogeneous, limited-scope edits (removal of debug logs) across a small set of related files; low logic density and no functional changes.
  • Files to spot-check:
    • src/controllers/destination.ts — ensure no other logging levels or surveillance code were unintentionally removed.
    • src/controllers/delivery.ts and src/controllers/userTransform.ts — confirm no conditional logging wrappers or side-effecting expressions were dropped.
    • src/services/userTransform.ts — validate test/diagnostic expectations that may rely on those logs.

Suggestions:

  • Consider replacing removed debug logs with structured tracing or conditional debug helpers if runtime diagnostics are needed.
  • Run integration tests and any logging/monitoring alerts to ensure observability remains adequate.

Suggested reviewers

  • utsabc
  • chandumlg
  • sivashanmukh

Pre-merge checks and finishing touches

✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'chore: remove logs logging request/response body' accurately summarizes the main change—removing debug logging statements that log sensitive request/response data across multiple controllers.
Description check ✅ Passed The PR description follows the template structure and includes all key sections: a clear explanation of changes addressing security/compliance concerns, the Linear task reference, and complete checklists. The description adequately explains the motivation and scope.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch log-cleanup

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 59f48d7 and 02e482d.

📒 Files selected for processing (2)
  • src/controllers/delivery.ts (0 hunks)
  • src/controllers/destination.ts (0 hunks)
💤 Files with no reviewable changes (2)
  • src/controllers/delivery.ts
  • src/controllers/destination.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Code Coverage
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Check for formatting & lint errors
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Nov 5, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.94%. Comparing base (80b80b1) to head (02e482d).
⚠️ Report is 27 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4754      +/-   ##
===========================================
+ Coverage    91.91%   91.94%   +0.02%     
===========================================
  Files          651      652       +1     
  Lines        34613    34630      +17     
  Branches      8131     8137       +6     
===========================================
+ Hits         31816    31840      +24     
- Misses        2548     2560      +12     
+ Partials       249      230      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2025

Copy link
Copy Markdown

@shekhar-rudder
shekhar-rudder merged commit 1651d21 into develop Nov 6, 2025
@shekhar-rudder
shekhar-rudder deleted the log-cleanup branch November 6, 2025 10:24
ItsSudip added a commit that referenced this pull request Nov 12, 2025
* feat: introduce e2e tests UT (#4686)

* chore: update slack notification list (#4706)

* chore: skip pushing docker images for dependabot (#4714)

* chore: skip building images for debendabot

* chore: review comments

* chore: skip docker login for dependabot

* chore: skip docker login for dependabot

* chore: misc

* chore: misc

* chore: misc

* chore: misc

* chore: review comments

* chore: review comments

* chore: review comments

* chore: review comments

* chore: review comments

* chore: add dub to new test structure (#4717)

* chore: add readme for campaign_manager (#4710)

* chore: update GAOC readme with quota link (#4723)

* chore: apply security best practices (#4708)

[StepSecurity] Apply security best practices

Signed-off-by: StepSecurity Bot <[email protected]>

* feat: add validation of diff in staging deployment workflow (#4722)

* chore(deps-dev): bump commander from 10.0.1 to 14.0.2

Bumps [commander](https://github.com/tj/commander.js) from 10.0.1 to 14.0.2.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](tj/commander.js@v10.0.1...v14.0.2)

---
updated-dependencies:
- dependency-name: commander
  dependency-version: 14.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps-dev): bump supertest from 6.3.4 to 7.1.4 (#4525)

---
updated-dependencies:
- dependency-name: supertest
  dependency-version: 7.1.4
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: add env vars for controlling the connection pooling on python transformations (#4738)

* chore: update facebook conversion api version from 22.0 to 24.0 (#4734)

* chore: update facebook conversion api version from 22.0 to 23.0

* chore: update facebook conversion api version from 23.0 to 45.0

* chore: fix typo

* chore: update facebook custom audience api version from 22.0 to 23.0 (#4735)

* chore: update facebook custom audience api version from 22.0 to 23.0

* chore: update facebook custom audience api version from 23.0 to 24.0

* chore: update facebook custom audience api version from 24.0 to 23.0 as it has some breaking changes

* chore: update facebook pixel api version from 22.0 to 24.0 (#4737)

* chore: update facebook pixel api version from 22.0 to 24.0

* chore: update facebook app events api version from 22.0 to 24.0 (#4736)

* chore: move rs-ai memory bank to transformer

* chore: add nodemon for hot reloading (#4748)

* chore: refactor code to update variable name in more readable format (#4747)

* feat: source transformation endpoint for facebook_lead_ads_native source (#4746)

* chore: disable clustering in nodemon configuration (#4749)

* chore: run format check on all files (#4750)

* fix: intercom rETL flow when user_id only provided as identifier (#4739)

* chore: apply security best practices from step security (#4727)

[StepSecurity] Apply security best practices

Signed-off-by: StepSecurity Bot <[email protected]>
Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>

* chore(deps): bump actions/setup-node from 5.0.0 to 6.0.0

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v5.0.0...v6.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: remove logs logging request/response body (#4754)

* chore: disable pyroscope for primary process in cluster mode (#4756)

* feat(reddit): onboard v3 api (#4699)

* feat(reddit): onboard v3 api

* chore: implement router batching flow

* feat: enable batching scenario

* chore: add test cases

* chore: address coderabbit comments

* chore: add mock for timestamp

* chore: add documentation for reddit

* fix: use crypto for hashing

* chore: address coderabbit comment

* chore: address comments

* chore: add validation and remove double type assertion

* chore: remove undefined files from final palyload

* chore: fix test case

* feat(reddit): onboard v3 api

* chore: implement router batching flow

* feat: enable batching scenario

* chore: add test cases

* chore: address coderabbit comments

* chore: add mock for timestamp

* chore: add documentation for reddit

* fix: use crypto for hashing

* chore: address coderabbit comment

* chore: address comments

* chore: add validation and remove double type assertion

* chore: remove undefined files from final palyload

* chore: fix test case

* chore: apply format

* chore: apply format

* chore(deps): bump actions/checkout from 4.3.0 to 5.0.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.3.0 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4.3.0...08c6903)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat: add advertiser_tracking_enabled mapping for pinterest without featureFlag (#4740)

* chore(deps): bump actions/stale from 10.0.0 to 10.1.0

Bumps [actions/stale](https://github.com/actions/stale) from 10.0.0 to 10.1.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](actions/stale@v10.0.0...v10.1.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: handle breaking changes for commander

* chore: fix breaking commander changes

* chore(release): 1.112.0

---------

Signed-off-by: StepSecurity Bot <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Rohith BCS <[email protected]>
Co-authored-by: Vinay Teki <[email protected]>
Co-authored-by: Mahesh Kutty <[email protected]>
Co-authored-by: Sudip Paul <[email protected]>
Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
Co-authored-by: Krishna Chaitanya <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jayachand Mopidevi <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
Co-authored-by: shekhar-rudder <[email protected]>
shekhar-rudder added a commit that referenced this pull request Jun 16, 2026
…pace flag

PR #4754 dropped the debug logs that dumped delivery request/response
bodies because they could leak customer data/PII. Operators lose a useful
debugging aid when diagnosing a single workspace's delivery issues.

Restore the logs for deliverToDestination and deliverToDestinationV1, but
gate them per-workspace via the DELIVERY_REQUEST_RESPONSE_LOG_ENABLED env
flag (isFeatureEnabled: "ALL" or a comma-separated list of workspace IDs).
They are emitted at warn level so they surface at the default LOG_LEVEL
once a workspace is opted in, and stay off otherwise.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.

5 participants