Skip to content

fix(api-gateway): remove stack information in dev mode #9862

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doman412
Copy link

@doman412 doman412 commented Aug 7, 2025

Check List

  • Tests have been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

#6441

Description of Changes Made

Adds conditional checks to the api gateway endpoints and error handlers that will remove stack trace information when not in dev mode. This is to prevent leaking of internal paths and other information while running in prod.

…not in dev mode to prevent leaking internals in prod
@doman412 doman412 requested a review from a team as a code owner August 7, 2025 20:31
@github-actions github-actions bot added the pr:community Contribution from Cube.js community members. label Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:community Contribution from Cube.js community members.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants