OPA v0.36.0 Release #99
peteroneilljr
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release contains a number of fixes and enhancements.
OpenTelemetry and opa exec
This release adds OpenTelemetry support to OPA. This makes it possible to emit spans to an OpenTelemetry collector via gRPC on both incoming and outgoing (i.e. http.send) calls in the server. See the updated docs on monitoring for more information and configuration options (#1469 authored by @rvalkenaers)
This release also adds a new
opa exec
command for doing one-off evaluations of policy against input similar toopa eval
, but using the full capabilities of the server (config file, plugins, etc). This is particularly useful in contexts such as CI/CD or when enforcing policy for infrastructure as code, where one might want to run OPA with remote bundles and decision logs but without having a running server. See the updated docs on Terraform for an example use case.(#3525)
Built-in Functions
crypto.hmac.md5
,crypto.hmac.sha1
,crypto.hmac.sha256
, andcrypto.hmac.sha512
) was added (#1740 reported by @jshaw86)array.reverse(array)
andstrings.reverse(string)
was added for reversing arrays and strings (#3736 authored by @kristiansvalland and @olamiko)http.send
built-in function now uses a metric for counting inter-query cache hits (#4023 authored by @mirayadav)time.*
built-in functions (#4098 reported by @morgante)Tooling
in
was fixed foropa fmt
(#4111, reported by @keshavprasadms)opa fmt
when refs contained operators was fixed (authored by @jaspervdj-luminal)opa build
(authored by @davidmarne-wf)allow_net
capability was added, allowing setting limits on what hosts can be reached in built-ins likehttp.send
andnet.lookup_ip_addr
(#3665)Server
--tls-cert-refresh-period
flag can now be provided toopa run
. If used with a positive duration, such as "5m" (5 minutes),"24h", etc, the server will track the certificate and key files' contents. When their content changes, the certificates will be
reloaded (#2500 reported by @patoarvizu)
v1/status
endpoint was added, providing the same data as the status plugin would send to a remote endpoint (#4089)print
now works in decision masking policiesRego
The error message raised when using
-
with a number and a set is now more specific (as opposed to the correct usage with two sets, or two numbers) (#1643)Fixed an edge case when using print and arrays in unification (#4078)
Improved performance of some array operations by caching an array's groundness bit (#3679)
This change will fail evaluation in some unusual cases where it previously would succeed, but these policies should be very uncommon.
An example policy that previously would succeed but no longer will (wrong arity):
SDK
opa.runtime()
built-in is now made available to the SDK (#4050 authored by @oren-zohar and @cmschuetz)print
output is now sent to the configured loggerWebsite and Documentation
opa exec
(#3965)CI
Beta Was this translation helpful? Give feedback.
All reactions