Skip to content

fix: bound response read in integration catalog fetch - #3818

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/unbounded-catalog-read-integrations
Open

fix: bound response read in integration catalog fetch#3818
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/unbounded-catalog-read-integrations

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Replace unbounded
esp.read() with
ead_response_limited() in integrations/catalog.py to prevent DoS via oversized catalog responses.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bounds integration catalog responses before JSON parsing to mitigate oversized-response DoS risks.

Changes:

  • Uses the shared limited-response reader.
  • Applies a JSON response-size ceiling.
Show a summary per file
File Description
src/specify_cli/integrations/catalog.py Adds bounded catalog response reads.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment thread src/specify_cli/integrations/catalog.py Outdated
Comment thread src/specify_cli/integrations/catalog.py
@Quratulain-bilal
Quratulain-bilal force-pushed the fix/unbounded-catalog-read-integrations branch from 34154a6 to 769aab7 Compare July 29, 2026 12:33
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.

3 participants