Skip to content

fix: validate PACK object sizes to prevent resource exhaustion#2

Open
bopm wants to merge 1 commit into
jtippett:mainfrom
full-stack-biz:fix/object-size-limits
Open

fix: validate PACK object sizes to prevent resource exhaustion#2
bopm wants to merge 1 commit into
jtippett:mainfrom
full-stack-biz:fix/object-size-limits

Conversation

@bopm
Copy link
Copy Markdown

@bopm bopm commented May 4, 2026

Add configurable limits for PACK object sizes to prevent DoS attacks.

  • Add GitRekt.Config module with configurable max_object_size (default 100MB)
  • Validate object sizes during PACK parsing
  • Raise informative error if object exceeds configured limit
  • Users can override limits in config.exs

Prevents memory exhaustion from malicious PACK files claiming huge objects.

  Add configurable limits for PACK object sizes to prevent DoS attacks.

  - Add GitRekt.Config module with configurable max_object_size (default 100MB)
  - Validate object sizes during PACK parsing
  - Raise informative error if object exceeds configured limit
  - Users can override limits in config.exs

  Prevents memory exhaustion from malicious PACK files claiming huge objects.
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