opa
opa copied to clipboard
Open Policy Agent (OPA) is an open source, general-purpose policy engine.
It's often necessary to select a nested field out of a document but fallback to a default value if the referenced field is undefined. In the past users could write...
```rego package p import rego.v1 foo := data.foo.bar["contains"]("baz") ``` running `opa fmt` on this file rewrites the ref: ```rego package p import rego.v1 foo := data.foo.bar.contains("baz") ``` which doesn't parse,...
Fixes: #6876
Bumps the go-opentelemetry-io group with 6 updates: | Package | From | To | | --- | --- | --- | | [go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp](https://github.com/open-telemetry/opentelemetry-go-contrib) | `0.53.0` | `0.54.0` | | [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go)...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.65.0 to 1.66.0. Release notes Sourced from google.golang.org/grpc's releases. Release 1.66.0 New Features metadata: stabilize ValueFromIncomingContext (#7368) Special Thanks: @KarthikReddyPuli client: stabilize the WaitForStateChange and GetState methods,...
This PR adds caching of schema types. Fixes: https://github.com/open-policy-agent/opa/issues/6969
## What is the underlying problem you're trying to solve? Type checking is very time-consuming with a large number of rules. I noticed that the schema is compiled for each...
In addition to the vendor update, a test case was updated to account for a prometheus change where the Content-Encoding header is unset if data is uncompressed.
## What is the underlying problem you're trying to solve? We're using status metrics `bundle_loading_duration_ns` to monitor opa server performance on bundle loading. The metrics are used to debug why...
From the docs, this should be supported: > Pointers must refer to object keys. Pointers to array elements will be treated as undefined. For example /input/emails/0/value is allowed but /input/emails/0...