OPA v0.37.0 Release #111
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.
This is the first release that includes a binary and a docker image for
linux/arm64
,opa_linux_arm64_static
andopenpolicyagent/opa:0.37.0-static
.Thanks to @ngraef for contributing the build changes necessary.
Strict Mode
There have been numerous possible checks in the compiler that fall into this category:
We've thus far refrained from introducing them. Now, a new "strict mode"
allows you to opt-in to these checks, and we encourage you to do so!
With OPA 1.0, they will become the new default behaviour.
For more details, see the docs on Compiler Strict Mode.
Delta Bundles
Delta bundles provide a more efficient way to make data changes by containing
patches to data instead of snapshots.
Using them together with HTTP Long Polling,
you can propagate small changes to bundles without waiting for polling delays.
See the documentation
for more details.
Tooling and Runtime
Bundles bug fix: Roundtrip manifest before hashing to allow changing the manifest
and still using signature verification of bundles (#4233),
reported by @CristianJena
The test runner now also supports custom builtins, when invoked through the Golang
interface (authored by @MIA-Deltat1995)
The compile package and the
opa build
command support a new output format: "plan".It represents a query plan, steps needed to take to evaluate a query (with policies).
The plan format is a JSON encoding of the intermediate representation (IR) used for
compiling queries and policies into Wasm.
When calling
opa build -t plan ...
, the plan can be found inplan.json
at the top-level directory of the resulting bundle.tar.gz.
See the documentation for details..
Compiler+Bundles: Metadata to be added to a bundle's manifest can now be provided via
WithMetadata
(#4289), authored by @marensws, reported by @johanneslarsson
Plugins: failures in auth plugin resolution are now output, previously panicked, authored by @jcchavezs
Plugins: Fix error when initializing empty decision logging or status plugin (#4291)
Bundles: Persisted bundle activation failures are treated like failures with
non-persisted bundles (#3840), reported by @dsoguet
Server:
http.send
caching now works in system policysystem.authz
(#3946),reported by @amrap030.
Runtime: Apply credentials masking on
opa.runtime().config
(#4159)opa test
: removing deprecated code for--show-failure-line
(-l
), authored by @damienjburksopa eval
: add description to all output formatsopa inspect
: unhide command for bundle inspectionRego and Topdown
Built-in function enhancements and fixes:
object.union_n
: New built-in for creating the union of more than two objects (#4012),reported by @eliw00d
graph.reachable_paths
: New built-in to calculate the set of reachable paths in a graph (authored by @justinlindh-wf)indexof_n
: New built-in function to get all the indexes of a specific substring (or character) from a string (authored by @shuheiktgw)indexof
: Improved performance (authored by @shuheiktgw)object.get
: Support nested key array for deeper lookups with default (authored by @charlieegan3)json.is_valid
: Use Golang'sjson.Valid
to avoid unnecessary allocations (authored by @kristiansvalland)Strict-mode features:
any()
andall()
built-in functions (#2437)input
anddata
reserved keywords (#2600) reported by @jpeachMiscellaneous fixes and enhancements:
format
: don't group iterable when one has defaulted locationtopdown
: ability to retrieve input and plug bindings in theEvent
, authored by @istalker2print()
built-in: fix bug when used withwith
modifier and a function call value (#4227)ast
: don't error when future keyword import is redundant during parsingDocumentation
OPA CLI commands and their arguments (#3915)
(#4170), reported by @EKCs
WebAssembly
json.is_valid
built-in function(#4140), authored by @kristiansvalland
Miscellaneous
authored by @ngraef, reported by @povilasv
logging
: Remove loggerGetFields
function (#4114),authored by @viovanov
https://www.openpolicyagent.org/docs/v0.37.0/ and https://www.openpolicyagent.org/docs/latest
contain docs, and 0.37.0 can already be used for stable links to versioned docs pages.
make test
: fix "too many open files" issue on Mac OSBeta Was this translation helpful? Give feedback.
All reactions