-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin returns "received message larger than max" error when sending payloads greater than 4194304 bytes #4957
Comments
Would be super cool if you can test #4959 |
I mean, #4958 |
Sure thing! I'll test this first thing tomorrow! |
Also, thanks for the fast response! |
I can confirm that this change does indeed allow payload sizes greater than 4194304 bytes to be successfully processed by a plugin. Thanks! |
Great! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using a custom vault plugin and sending a payload greater than 4194304 bytes, the operation ends in failure due to the grpc default max receive message size of
1024 * 1024 * 4
. This option does not appear to be configurable, so servicing larger requests is not possible.To Reproduce
Steps to reproduce the behavior:
vault write customplugin/action @large_28mb_payload
[ERROR] core: failed to run existence check: error="rpc error: code = ResourceExhausted desc = grpc: received message larger than max (28793489 vs. 4194304)"
Expected behavior
In
plugin.Server
, set the max receive size to a value similar to or the same as the max send size, which would align to the changes made for #4843.Alternately, allow both the send and receive values to be configurable via
plugin.ServeOpts
.Environment:
vault status
): 0.10.3vault version
): Vault v0.10.3 ('c69ae68faf2bf7fc1d78e3ec62655696a07454c7')Vault server configuration file(s): Running in
-dev
mode.Additional context
This impacts the ability to perform cryptographic operations (similar to that of transit engine) on larger binary files.
grpc declares these constant values as:
The text was updated successfully, but these errors were encountered: