Skip to content

Fix Leaking Internal Error Messages to Client - #1018

Merged
KaranUnique merged 1 commit into
Canopus-Labs:convertfrom
sahare77:fix/issue-1001
Aug 4, 2026
Merged

Fix Leaking Internal Error Messages to Client#1018
KaranUnique merged 1 commit into
Canopus-Labs:convertfrom
sahare77:fix/issue-1001

Conversation

@sahare77

@sahare77 sahare77 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Resolves #1001

Description
This pull request prevents internal error messages and stack traces from leaking to the client in production.

  • A global error handler middleware was added to \server.js\ to catch unhandled errors and return a generic 'Internal Server Error' response in production.
  • Replaced explicit \error.message\ disclosures in
    otesSummaryRoutes.js,
    otesSummaryController.js, \�iController.js, and
    esumeController.js\ with generic client-facing messages.
  • Kept \console.error\ logging for server-side debugging.

@KaranUnique KaranUnique closed this Aug 3, 2026
@KaranUnique KaranUnique reopened this Aug 4, 2026
@KaranUnique
KaranUnique changed the base branch from main to convert August 4, 2026 12:57
@KaranUnique
KaranUnique merged commit 04be001 into Canopus-Labs:convert Aug 4, 2026
7 checks passed
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.

[Security]: Leaking Internal Error Messages to Client

2 participants