[DEV-15460] mitigate python stack trace returned to download user#4690
Merged
james-at-kc merged 5 commits intoJul 14, 2026
Merged
Conversation
zachflanders-frb
previously approved these changes
Jul 13, 2026
zachflanders-frb
left a comment
Contributor
There was a problem hiding this comment.
Looks good, I left one non blocking comment for consideration.
zachflanders-frb
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
If an exception is encountered during the download generation process the /api/v2/download/status endpoint will return the Python stack trace in the API response’s message field. This can expose information about the API deployment environment.
Technical Details:
Log these error message for future reference, but remove from the API response.
Requirements for PR Merge:
Explain N/A in above checklist:
N/A for number 2 - no change to API - generic message returned instead of stack trace
N/A for number 3 - no change to frontend, performance nor expected data
N/A for number 4 - No operations tickets required - straight merge to qat then default promotion to prod.