mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
1cb36f2728
These changes update the server to compare the body of the HTTP request with the existing policy in the store. If the bytes are equal, the server returns immediately. These changes are being made to workaround poor parser performance given deeply nested JSON objects that are commonly found in Kubernetes use cases. Specifically, we've observed very high parse times (e.g., over a second) when processing policies in production environments. The problem becomes worse when kube-mgmt is being used because it periodically resyncs the policies causing load even if the policies are not changing. Signed-off-by: Torin Sandall <torinsandall@gmail.com>