Skip to content

Releases: open-policy-agent/opa

v0.5.12

22 Nov 23:02
Compare
Choose a tag to compare

Fixes

  • Fix eval of objects/sets containing vars (#505)
  • Fix REPL printing of generated vars

v0.5.11

15 Nov 23:20
Compare
Choose a tag to compare

This release includes a backwards incompatible change to the io.jwt.decode built-in function. The built-in function used to return three output values as separate arguments to the built-in. The function now returns a single output value that represents the three values inside an array. Use:

io.jwt.decode(str, [hdr, payload, sig])

Instead of:

io.jwt.decode(str, hdr, payload, sig)

Also, this release contains backwards incompatible changes to the topdown package. The new version of the topdown package has removed some helper functions, however, the usage pattern is the same as before. See https://godoc.org/github.com/open-policy-agent/opa/topdown#example-Query-Iter for examples on how to use new version of the package.

Fixes

  • Refactor topdown evaluation/unification (#131)
  • Rewrite refs in rule args (#497)

Miscellaneous

  • Fix bug in expression formatting
  • Fix dynamic rewriting to copy with modifiers
  • Fix off-by-one bug in array helper

v0.5.10

30 Oct 18:15
Compare
Choose a tag to compare

Fixes

  • Fix index usage for virtual docs (#490)
  • Fix match error panic (#494)
  • Fix wildcard mangling in rule head (#480)

Miscellaneous

  • Add parse_duration_ns to generate nanos based on duration string
  • Add product to calculate the product of array or set

v0.5.9

10 Oct 16:44
Compare
Choose a tag to compare

Fixes

  • Fix unsafe var errors on functions (#471, #467)

Miscellaneous

  • Fix docs example of set union
  • Fix file watch bug causing panic in server mode
  • Modify AST to represent function names as refs
  • Refactor runtime to separate init and start
  • Refactor test runner to accept Store argument

v0.5.8

15 Sep 16:17
Compare
Choose a tag to compare

Fixes

  • Substitute comprehension terms requring eval (#453)

Miscellaneous

  • Add alpine-based Docker image
  • Add stdin mode to opa fmt
  • Fix syntax error in comprehension example
  • Improve input parsing performance in V0 API
  • Refactor loader to read inputs once (allows use of process substitution)
  • Remove backup creation from fmt subcommand
  • Remove use of sprintf in formatter

v0.5.7

08 Sep 17:03
Compare
Choose a tag to compare

This release adds a new test subcommand to OPA. The test subcommand enables policy unit testing. The unit tests are expressed as rules containing assertions over test data. The test subcommand provides a test runner that automatically discovers and executes these test rules. See opa test --help for examples.

Fixes

  • Fix type error marshalling bug (#391)
  • Fix type inference bug (#381)
  • Fix unification bug (#436)
  • Fix type inferecen bug for partial objects with non-string keys (#440)
  • Suppress match errors if closures contained errors (#438)

v0.5.6

29 Aug 22:57
Compare
Choose a tag to compare

As part of this release, logrus was revendored to deal with the naming issue. If you use logrus, or one of your other dependencies does (such as Docker), be sure to check out sirupsen/logrus#570 (comment).

Fixes

  • Fix incorrect REPL interpretation of some exprs (#433)
  • Fix inaccurate location information in some parser errors (#214)

Miscellaneous

  • Add Terraform Testing tutorial to documentation
  • Add shorthand for defining partial documents (e.g., p[1] instead of p[1] { true })
  • Add walk built-in function to recursively process nested documents
  • Refactor Policy API response representations based on usage

v0.5.5

18 Aug 01:43
Compare
Choose a tag to compare

This release adds Diagnostics support to the server. This greatly improves OPA's debuggability when deployed as a daemon.

Miscellaneous

  • Fix data race in the parser extensions
  • Fix index.html GET requests returning error on empty input
  • Fix race condition in watch test
  • Fix image version in HTTP API tutorial
  • Add metrics command to the REPL
  • Limit length of pretty printed values in the REPL
  • Simplify input query parameters in data GET requests
  • Update server to support pretty explanations

v0.5.4

07 Aug 16:03
Compare
Choose a tag to compare

Miscellaneous

  • Properly remove temporary files when running opa fmt -d
  • Add support for refs with composite operands (e.g,. p[[x,y]])

v0.5.3

26 Jul 00:28
Compare
Choose a tag to compare

Fixes

  • Add support for raw strings (#265)
  • Add support to cancel compilation after some number of errors (#249)

Miscellaneous

  • Add Kubernetes admission control tutorial
  • Add tracing support to rego package
  • Add watch package for watching changes to queries
  • Add dependencies package to perform dependency analysis on ASTs