Update module github.com/open-policy-agent/opa to v0.38.1 #156
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.37.2
->v0.38.1
Release Notes
open-policy-agent/opa
v0.38.1
Compare Source
This is a bug fix release that addresses one issue when using
opa test
with the--bundle
(-b
) flag, and a policy that uses theevery
keyword.There are no other code changes in this release.
Fixes
v0.38.0
Compare Source
This release contains a number of fixes and enhancements.
It contains one backwards-incompatible change to the JSON representation
of metrics in Status API payloads, please see the section below.
Rich Metadata
It is now possible to annotate Rego policies in a way that can be
processed programmatically, using Rich Metadata.
METADATA
title: My rule
description: A rule that determines if x is allowed.
authors:
- Jane Austin jane@example.com
The available keys are:
Custom annotations can be used to annotate rules, packages, and
documents with whatever you specifically need, beyond the generic
keywords.
Annotations can be retrieved using the Golang library
or via the CLI,
opa inspect -a
.All the details can be found in the documentation on Annotations.
Every Keyword
A new keyword for explicit iteration is added to Rego:
every
.It comes in two forms, iterating values, or keys and values, of a
collection, and asserting that the body evaluates successfully for
each binding of key and value to the collection's elements:
To use it,
import future.keywords.every
orfuture.keywords
.For further information, please refer to the Every Keyword docs
and the new section on FOR SOME and FOR ALL in the Intro docs.
Tooling, SDK, and Runtime
disableInlining
option (#4357) reported and fixed by @srlkhttp_code
to response (#4259) reported and fixed by @jkbschmidopa deps
: Fix pretty printed output to show virtual documents (#4342)Rego and Topdown
Documentation and Website
WebAssembly
Miscellaneous
make build
now builds without errors (by disabling Wasm) on darwin/arm64 (M1)Backwards incompatible changes
The JSON representation of the Status API's payloads -- both for
GET /v1/status
responses and the metrics sent to a remote Status API endpoint -- have changed:
Previously, they had been serialized into JSON using the standard library "encoding/json"
methods. However, the metrics coming from the Prometheus integration are only available
in Golang structs generated from Protobuf definitions. For serializing these into JSON,
the standard library functions are unsuited:
snake_case
, notcamelCase
,Now, we're using the protobuf ecosystem's
jsonpb
package, to serialize the Prometheusmetrics into JSON in a way that is compliant with the Protobuf specification.
Concretely, what would before be
is now:
Note that
sample_count
is nowsampleCount
, and thetype
is using the enum'sstring representation,
"SUMMARY"
, not2
.Note: For compatibility reasons (the Prometheus golang client doesn't use the V2
protobuf API), this change uses
jsonpb
and notprotojson
.Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.