Decision log plugin uses the upload_size_limit_bytes
to represent both the compressed and uncompressed limit
#7526
Labels
upload_size_limit_bytes
to represent both the compressed and uncompressed limit
#7526
Uh oh!
There was an error while loading. Please reload this page.
Short description
From the documentation the
upload_size_limit_bytes
configuration saysDecision log upload size limit in bytes. OPA will chunk uploads to cap message body to this limit.
. This limit is there for the user to configure the maximum size the message body will be when sent over the network. The decision log plugin sends multiple events as gzipped chunks. In practice theupload_size_limit_bytes
also is being used to limit the events uncompressed size. I think this is unexpected behavior, and controlling the individual event size should be a separate configuration. A configuration like this hasn't been requested by users, so I think the best thing would be to fixupload_size_limit_bytes
to only restrict the compressed size.Steps To Reproduce
Using the latest OPA version (v1.4.2) with the following policy:
and the following config:
The uncompressed size of the event will be 435 bytes, which exceed the
upload_size_limit_bytes
. Although when the event is compressed it should fit just fine but when running OPA as a server and sending a decision:the following error is logged:
The text was updated successfully, but these errors were encountered: