Skip to content

🛡️ Sentinel: [MEDIUM] Fix stack trace leakage in telemetry#885

Merged
DHCross merged 1 commit into
mainfrom
sentinel-stack-trace-fix-8232247008822935663
Jun 29, 2026
Merged

🛡️ Sentinel: [MEDIUM] Fix stack trace leakage in telemetry#885
DHCross merged 1 commit into
mainfrom
sentinel-stack-trace-fix-8232247008822935663

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

🚨 Severity: MEDIUM
💡 Vulnerability: Information disclosure via leaking stack traces. The enrichmentPhase.ts and upstreamContext.ts functions were unconditionally slicing and appending error.stack into logs/records.
🎯 Impact: Attackers or unauthorized viewers can access internal file structures, library versions, and application details when error telemetry is exposed.
🔧 Fix: Wrapped the error.stack logic with a process.env.NODE_ENV !== 'production' check so stack traces are safely stripped in production environments.
✅ Verification: Ensure the test suites run normally (npx tsx --tsconfig tsconfig.test.json --test src/app/api/raven-chat/__tests__/llmProviderStream.test.ts passed) and manually verify that no regressions occur with telemetry logging.


PR created automatically by Jules for task 8232247008822935663 started by @DHCross

- Conditionally strips `error.stack` based on `process.env.NODE_ENV !== 'production'` in `vessel/src/app/api/raven-chat/enrichmentPhase.ts` and `vessel/src/app/api/raven-chat/upstreamContext.ts`.
- Prevents potential information disclosure of internal file paths and structures in production.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shipyard Ready Ready Preview, Comment Jun 28, 2026 11:33pm

@DHCross DHCross merged commit 33ebf9e into main Jun 29, 2026
9 of 10 checks passed
@DHCross DHCross deleted the sentinel-stack-trace-fix-8232247008822935663 branch June 29, 2026 06:12
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant