github open-policy-agent/opa v0.33.0

latest releases: v0.64.1, v0.64.0, v0.63.0...
2 years ago

This release includes a number of improvements and fixes.

Built-in Functions

This release introduces crypto.x509.parse_rsa_private_key so that policy authors can decode RSA private keys and structure them as JWKs (#3765). Authored by @cris-he.

Fixes

  • Fix object comparison to avoid sorting keys in-place. This prevents the interpreter from generating non-deterministic results when values are inserted into the partial set memoization cache. (#3819)
  • Fix data races in ast package caused by sorting types.Any instances in-place and shallow-copying module comments when a deep-copy should be performed (#3793). Reported by @markushinz.
  • Fix "file name too long" error caused by bundle loader treating PEM encoded private keys as file paths (#3766)
  • Fix plugins to support manual triggering mode when discovery is disabled (#3797)

Server & Tooling

  • The server now supports policy-based health checks that can inspect the state of plugins and other internal components (#3759) authored by @gshively11
  • The bundle reader now loads files lazily to avoid hitting file descriptor limits (#3777). Authored by @bhoriuchi
  • The opa eval sub-command supports a --timeout option for limiting how long evaluation can run.

Rego

  • The type checker now supports variadic arguments on void functions. This change paves the way for print() support as well as variadic arguments on all functions.
  • The parser now memoizes term parsing. This prevents non-linear runtime for large nested objects and sets.

CI & Dependencies

  • Fix spurious build errors in wasm library.
  • Update wasmtime dependency to v0.30.0.
  • Run PR checks on macOS in addition to Linux (#3176).

Documentation

  • Update the Kubernetes and Envoy (standalone) tutorials to show how the OPA management APIs can be used to distribute policies.

Backwards Compatibility

  • The github.com/open-policy-agent/opa/ast#ArgErrDetail struct has been
    modified to use the new types.FuncArgs struct to represent the required
    arguments. Callers that depend on the exact structure of the error details
    must update to use the types.FuncArgs struct.

Don't miss a new opa release

NewReleases is sending notifications on new releases.