Skip to content

fix: bound generated API client responses - #64

Draft
cloudcarver wants to merge 1 commit into
mainfrom
agent/security-generated-client-bounds
Draft

fix: bound generated API client responses#64
cloudcarver wants to merge 1 commit into
mainfrom
agent/security-generated-client-bounds

Conversation

@cloudcarver

Copy link
Copy Markdown
Owner

Summary

  • cap buffered generated-client response bodies at 10 MiB
  • return a stable overflow error after reading at most one byte beyond the limit
  • give generated default clients a 30-second timeout
  • preserve caller-provided HTTP clients
  • add exact-limit, overflow, streaming, cancellation, and timeout tests

Validation

  • go test ./...
  • go test -race ./pkg/codegen/oapi ./pkg/zgen/apigen
  • go vet ./...
  • make gen

Closes #49

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.

[Security] Bound generated API client response bodies

1 participant