See authzed/spicedb#2018 historical commits. I started implementing this in SpiceDB, but we decided that it has enough applications that it'd be worth upstreaming into cobrautil and reusing elsewhere.
Notes
Currently this hardcodes the limits. If desired, we could make them configurable in future work.
Changes
Add requisite deps
Add limits file with SetLimitsRunE
Testing
I manually tested this by pulling it into a SpiceDB build; otherwise I'm not sure how to test it off the top of my head.
Description
See authzed/spicedb#2018 historical commits. I started implementing this in SpiceDB, but we decided that it has enough applications that it'd be worth upstreaming into cobrautil and reusing elsewhere.
Notes
Currently this hardcodes the limits. If desired, we could make them configurable in future work.
Changes
SetLimitsRunE
Testing
I manually tested this by pulling it into a SpiceDB build; otherwise I'm not sure how to test it off the top of my head.