Skip to content

v0.30.0

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Jul 08:33
· 2091 commits to main since this release
84d0b65

This release contains a number of enhancements and fixes.

Server and Runtime

  • Support listening on abstract Unix Domain Sockets (#3533) authored by @amanymous-net

  • Support minimum TLS version configuration, default to 1.2 (#3226) authored by @kale-amruta

  • Enhancement in REST Plugin: You can now specify a CA cert for remote services implementing the management APIs (bundles, status, decision logs, discovery) (#1954)

  • Bugfix: treat missing/empty roots as owning all paths (#3521)

    Before, it would have been possible to overwrite a policy that was supplied by a bundle (with an empty manifest, or a manifest without declared roots), due to an erroneous check.
    This will now be forbidden, and return a 400 HTTP status, in accordance with the documentation.

  • Extend POST v1/query endpoint to accept input, refactor index.html to use fetch()

  • Bundle download: In case of download or activation errors, the cached Etag is reset to the last successful activation. Previously OPA would reset the cached Etag entirely, which could trigger unnecessary bundle downloads in edge-case scenarios.

Tooling

  • opa build: Do not write manifest if empty (#3480). Under the hood, the manifest metadata is now included in the Equal() function's checks.
  • opa fmt: Fix incorrect help text (#3518) authored by @andrehaland
  • opa bench: Do not print nil errors (#3530)

Rego

  • Expose random seeding in rego package (#3560)
  • Enhance ast.InterfaceToValue to handle non-native types
  • Enhance indexer to understand function args
  • Enhance static property lookup of objects: Use binary search
  • Fix PE unknown check to avoid saving unnecessarily (#3552)
  • Fix inlining controls for functions (#3463)
  • Fix (shallow) partial eval of ref to empty collection in presence of with statement (#3420)
  • Fix cache value size checking during insert operation
  • Fix indexof when using UTF-8 characters
  • Fix http.send flaky test

Wasm

  • SDK: update wasmtime-go to 0.28.0, authored by @olivierlemasle
  • Bugfix: count() now counts invalid UTF-8 runes (previously aborted)
  • Compiler: emit unreachable instruction after opa_abort()

Miscellaneous

  • make check now uses golangci-lint via docker, authored by @willbeason
  • The statically-built linux binary is properly used in the make targets that need it, and published to edge binaries.
  • Built binaries are now smoke tested on Windows, macos, and Linux.
  • Fix test failing with Go 1.17 rc in gojsonschema (#3589) authored by @olivierlemasle
  • Build: Bump Go version to 1.16.3 (#3555)
  • CI: enable dependabot for wasmtime-go

Documentation

  • OAuth2/OIDC: Fixed concat arguments in metadata discovery method (#3543, @iggbom)
  • Policy Reference: syntax highlighting EBNF grammar (@PatMyron)
  • Extending OPA: fix typo (@dxps)
  • Extending OPA: marshal the decision log (@TheLunaticScripter)
  • Kubernetes Introduction: fix typo (@dbaker-rh)
  • Envoy: Add guidance for OPA-Envoy benchmarks
  • Change default linux download to opa_linux_amd64_static