Skip to content

feat: add configurable gRPC message size limits - #3214

Draft
rrossi-sc wants to merge 1 commit into
authzed:mainfrom
rrossi-sc:feat/grpc-message-size-limits
Draft

feat: add configurable gRPC message size limits#3214
rrossi-sc wants to merge 1 commit into
authzed:mainfrom
rrossi-sc:feat/grpc-message-size-limits

Conversation

@rrossi-sc

Copy link
Copy Markdown

Add MaxRecvMsgSize and MaxSendMsgSize options to GRPCServerConfig to allow configuring server-side gRPC message size limits.

This enables operators to increase the default 4MiB limit for both external API calls and internal dispatch operations.

New flags:

  • --grpc-max-recv-msg-size (default: 4194304)
  • --grpc-max-send-msg-size (default: 4194304)
  • --dispatch-cluster-max-recv-msg-size (default: 4194304)
  • --dispatch-cluster-max-send-msg-size (default: 4194304)

Use case: LookupSubjects with complex permission schemas involving recursive relations (e.g., group#downwards_member) and set operations can exceed the default limit due to internal CollectingDispatchStream buffering during Union/Intersection/Exclusion operations.

Fixes #3213

Description

Testing

References

Add MaxRecvMsgSize and MaxSendMsgSize options to GRPCServerConfig
to allow configuring server-side gRPC message size limits.

This enables operators to increase the default 4MiB limit for both
external API calls and internal dispatch operations.

New flags:
- --grpc-max-recv-msg-size (default: 4194304)
- --grpc-max-send-msg-size (default: 4194304)
- --dispatch-cluster-max-recv-msg-size (default: 4194304)
- --dispatch-cluster-max-send-msg-size (default: 4194304)

Use case: LookupSubjects with complex permission schemas involving
recursive relations (e.g., group#downwards_member) and set operations
can exceed the default limit due to internal CollectingDispatchStream
buffering during Union/Intersection/Exclusion operations.

Fixes authzed#3213
@github-actions github-actions Bot added the area/cli Affects the command line label Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli Affects the command line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add configurable gRPC message size limits for server

1 participant