Skip to content

feat(go): add size guardrails for strings, collections and maps#3423

Draft
Zakir032002 wants to merge 2 commits intoapache:mainfrom
Zakir032002:issue-3419-go-guardrails
Draft

feat(go): add size guardrails for strings, collections and maps#3423
Zakir032002 wants to merge 2 commits intoapache:mainfrom
Zakir032002:issue-3419-go-guardrails

Conversation

@Zakir032002
Copy link

@Zakir032002 Zakir032002 commented Feb 25, 2026

Why?

Closes #3419

What does this PR do?

Related issues

Does this PR introduce any user-facing change?

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

Add three opt-in guardrail fields to Config and three corresponding
WithXxx option functions. All default to 0 (unlimited), preserving
full backward compatibility. Enforcement in read paths follows in
subsequent commits.
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.

[Go] configurable size guardrails for untrusted payloads

1 participant