Skip to content

Redact request errors and add response limits - #5

Merged
MudassarTariq merged 1 commit into
mainfrom
fix/request-errors-and-limits
Nov 4, 2026
Merged

MudassarTariq merged 1 commit into
mainfrom
fix/request-errors-and-limits

Conversation

@MudassarTariq

Copy link
Copy Markdown
Member

Hide API keys in request errors and redirect headers. Add max_response_mb with a 256 MB default, reject zero and negative timeouts, and update golang.org/x/net to 0.62.0.

Existing tables, columns and successful response data stay the same. HTTP error status codes, retries and cancellation are preserved. A lookup that exceeds the size limit follows the existing failed-lookup behavior: log the error, skip that lookup and continue with the remaining inputs.

Validation:

  • Race-enabled tests on Go 1.26.10 and 1.27.3, with both HTTP/2 implementations.
  • Module verification, go vet, Linux builds and vulnerability scans passed.
  • Tests cover all five tables, key redaction in logs and redirects, compressed and chunked responses, size boundaries, invalid settings, HTTP error bodies and timeout handling.
  • Large ASN results with 50,000 routes passed. A local API simulation returned all 50,000 bulk records in order under the default limit.
  • The README and configuration guide use the same tested settings.

@MudassarTariq
MudassarTariq marked this pull request as ready for review November 4, 2026 17:53
@MudassarTariq
MudassarTariq merged commit 065274e into main Nov 4, 2026
4 checks passed
@MudassarTariq
MudassarTariq deleted the fix/request-errors-and-limits branch November 4, 2026 17:55
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