renovate-bot opened a new pull request, #4574:
URL: https://github.com/apache/polaris/pull/4574

   This PR contains the following updates:
   
   | Package | Type | Update | Change |
   |---|---|---|---|
   | 
[docker.io/openpolicyagent/opa](https://images.chainguard.dev/directory/image/glibc-dynamic/overview)
 ([source](https://redirect.github.com/open-policy-agent/opa)) | final | minor 
| `1.16.2` → `1.17.0` |
   
   ---
   
   ### Release Notes
   
   <details>
   <summary>open-policy-agent/opa (docker.io/openpolicyagent/opa)</summary>
   
   ### 
[`v1.17.0`](https://redirect.github.com/open-policy-agent/opa/blob/HEAD/CHANGELOG.md#1170)
   
   [Compare 
Source](https://redirect.github.com/open-policy-agent/opa/compare/v1.16.2...v1.17.0)
   
   This release contains a mix of new features, performance improvements, and 
bugfixes.  Notably:
   
   - A new `future.keywords.not` import that adds improved semantics to the 
`not` keyword.
   - Rule Labels in Decision Logs
   - Published json schema for IR and bundle manifest
   - Dropped automaxprocs and x/net dependencies
   
   ##### Improved Negation Semantics 
([#&#8203;8387](https://redirect.github.com/open-policy-agent/opa/issues/8387))
   
   This OPA release introduces a new [`future.keywords.not` 
import](https://www.openpolicyagent.org/docs/policy-reference/keywords/not#improved-negation-semantics)
   that fixes a long-standing semantic issue with negation in Rego.
   
   Without the import, the compiler expands a negated composite expression like
   `not f(g(input.x))` into a series of sub-expressions evaluated *before* the
   `not`:
   
   ```
   __local0__ = input.x
   g(__local0__, __local1__)
   not f(__local1__)
   ```
   
   If any sub-expression fails — for example, `input.x` is undefined or `g`
   produces an undefined result — the entire rule fails rather than the `not` 
succeeding.
   This is unintuitive: the user's intent is "the condition does not hold," but
   an undefined intermediate value causes a silent failure instead of the 
expected
   `not` result.
   
   With `import future.keywords.not`, composite-expression negation wraps the 
full compiler
   expansion in an implicit body:
   
   ```
   not { __local0__ = input.x; g(__local0__, __local1__); f(__local1__) }
   ```
   
   Now, if *any* sub-expression is undefined or fails, the body is unsatisfiable
   and the `not` expression succeeds; matching the intuition that "the 
condition does not hold."
   
   > ***NOTE:***
   >
   > Users are recommended to import `future.keywords.not` whenever the `not` 
keyword is used in a policy.
   
   Authored by [@&#8203;johanfylling](https://redirect.github.com/johanfylling)
   
   ##### Rule Labels in Decision Logs 
([#&#8203;2089](https://redirect.github.com/open-policy-agent/opa/issues/2089))
   
   Rule annotations now support a `labels` field. Labels from all successfully 
evaluated
   rules are collected and included in each decision log entry as a top-level 
`rule_labels`
   array. Each element is the merged label map for one successfully evaluated 
rule, with
   inner-scope-wins precedence across the rule's annotation chain
   (`subpackages` < `package` < `document` < `rule`). Merged maps are 
deduplicated
   across rules so that identical label sets collapse to a single entry.
   
   ```rego
   
   # METADATA
   # scope: package
   
   # labels:
   #   service: authz
   
   #   severity: info
   package myapp
   
   # METADATA
   
   # labels:
   #   severity: low
   
   #   team: platform
   allow if input.role == "admin"
   ```
   
   The resulting decision log entry will contain:
   
   ```json
   {"rule_labels": [{"service": "authz", "severity": "low", "team": 
"platform"}]}
   ```
   
   Note how `severity: info` from the package scope is overridden by `severity: 
low` from
   the rule scope. Queries against `rule_labels` can now rely on each entry 
carrying the
   full label context for a single rule, rather than one entry per contributing 
scope.
   
   Both the runtime and the Go SDK now process metadata annotations by default.
   
   Authored by [@&#8203;srenatus](https://redirect.github.com/srenatus), 
reported by [@&#8203;tsandall](https://redirect.github.com/tsandall)
   
   ##### Runtime, SDK, Tooling
   
   - ast: Allow `$ref` in `allOf` in JSON schemas 
([#&#8203;6523](https://redirect.github.com/open-policy-agent/opa/issues/6523)) 
authored by [@&#8203;deeglaze](https://redirect.github.com/deeglaze) reported 
by [@&#8203;mosiac1](https://redirect.github.com/mosiac1)
   - bundle: Update bundle roots conflict detection algorithm. 
([#&#8203;8664](https://redirect.github.com/open-policy-agent/opa/pull/8664)) 
authored by [@&#8203;philipaconrad](https://redirect.github.com/philipaconrad)
   - download: Use oras, not containerd 
([#&#8203;8639](https://redirect.github.com/open-policy-agent/opa/pull/8639)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
   - server: Remove dead code (s.partials) 
([#&#8203;8708](https://redirect.github.com/open-policy-agent/opa/pull/8708)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
   - server: Wire in response/request metadata for compile handler 
([#&#8203;8650](https://redirect.github.com/open-policy-agent/opa/pull/8650)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
   - server/types: generalize request/response metadata 
([#&#8203;8650](https://redirect.github.com/open-policy-agent/opa/pull/8650)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
   
   ##### Compiler, Topdown and Rego
   
   - builtins: Enable pattern validation in `json.verify_schema` and 
`json.match_schema` built-in functions 
([#&#8203;6089](https://redirect.github.com/open-policy-agent/opa/issues/6089)) 
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink) reported by 
[@&#8203;ewout8](https://redirect.github.com/ewout8)
   - ir: Don't capitalize `index` field in `MakeNumberRefStmt` IR statement 
([#&#8203;6266](https://redirect.github.com/open-policy-agent/opa/issues/6266)) 
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink) reported by 
[@&#8203;johanfylling](https://redirect.github.com/johanfylling)
   - perf: Avoid allocating in binary and/or operators when possible 
([#&#8203;8689](https://redirect.github.com/open-policy-agent/opa/pull/8689)) 
authored by [@&#8203;anderseknert](https://redirect.github.com/anderseknert)
   - rego: Allow per-eval `GenerateJSON` function 
([#&#8203;8690](https://redirect.github.com/open-policy-agent/opa/pull/8690)) 
authored by [@&#8203;anderseknert](https://redirect.github.com/anderseknert)
   
   ##### Docs, Website, Ecosystem
   
   - ecosystem: add OPA MCP 
([#&#8203;8618](https://redirect.github.com/open-policy-agent/opa/pull/8618)) 
authored by [@&#8203;OrygnsCode](https://redirect.github.com/OrygnsCode)
   - docs: Add explicit address binding to examples 
([#&#8203;8688](https://redirect.github.com/open-policy-agent/opa/pull/8688)) 
authored by [@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
   - docs: Add titles to code blocks in policy-testing 
([#&#8203;8649](https://redirect.github.com/open-policy-agent/opa/pull/8649)) 
authored by [@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
   - docs: Correct OCP SSH key docs 
([#&#8203;8675](https://redirect.github.com/open-policy-agent/opa/pull/8675)) 
authored by [@&#8203;taurelius](https://redirect.github.com/taurelius)
   - docs: Update diagram to match index examples 
([#&#8203;8667](https://redirect.github.com/open-policy-agent/opa/pull/8667)) 
authored by [@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
   
   ##### Miscellaneous
   
   - ast,storage/inmem: Add `inmem.NewFromASTObject` and add missing string 
case to `ast.InternedValue`  
([#&#8203;8707](https://redirect.github.com/open-policy-agent/opa/pull/8707)) 
authored by [@&#8203;anderseknert](https://redirect.github.com/anderseknert)
   - build: `go install` -> `go install tool` to control checksums 
([#&#8203;8646](https://redirect.github.com/open-policy-agent/opa/pull/8646)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
   - build: Push edge binaries to bucket 
([#&#8203;8668](https://redirect.github.com/open-policy-agent/opa/pull/8668)) 
authored by [@&#8203;charlieegan3](https://redirect.github.com/charlieegan3)
   - workflows: Fix benchmarks workflow (replace action, avoid stackoverflow) 
([#&#8203;8655](https://redirect.github.com/open-policy-agent/opa/pull/8655)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
   - workflows: Note improvements in benchmark comments 
([#&#8203;8673](https://redirect.github.com/open-policy-agent/opa/pull/8673)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
   - Generate a JSON Schema for the IR plan 
([#&#8203;8662](https://redirect.github.com/open-policy-agent/opa/issues/8662)) 
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink) reported by 
[@&#8203;kroekle](https://redirect.github.com/kroekle)
   - Generate a JSON Schema for the bundle manifest 
([#&#8203;8661](https://redirect.github.com/open-policy-agent/opa/issues/8661)) 
authored by [@&#8203;sspaink](https://redirect.github.com/sspaink) reported by 
[@&#8203;kroekle](https://redirect.github.com/kroekle)
   - Dependency updates; notably:
     - build(deps): Remove automaxprocs dependency 
([#&#8203;8696](https://redirect.github.com/open-policy-agent/opa/pull/8696)) 
authored by [@&#8203;anderseknert](https://redirect.github.com/anderseknert)
     - build(deps): Remove direct x/net dependency 
([#&#8203;8697](https://redirect.github.com/open-policy-agent/opa/pull/8697)) 
authored by [@&#8203;anderseknert](https://redirect.github.com/anderseknert)
     - build(deps): Bump github.com/bytecodealliance/wasmtime-go from 43.0.2 to 
44.0.0 ([8652](https://redirect.github.com/open-policy-agent/opa/pull/8652)) 
authored by [@&#8203;srenatus](https://redirect.github.com/srenatus)
     - build(deps): Bump github.com/fsnotify/fsnotify from 1.9.0 to 1.10.1
     - build(deps): Bump github.com/huandu/go-sqlbuilder from 1.40.2 to 1.41.0
     - build(deps): Bump github.com/lestrrat-go/jwx/v3 from 3.1.0 to 3.1.1
     - build(deps): Bump github.com/vektah/gqlparser/v2 from 2.5.32 to 2.5.33
     - build(deps): Bump google.golang.org/grpc from 1.80.0 to 1.81.0
     - build(deps): Bump gopkg.in/ini.v1 from 1.67.1 to 1.67.2
   
   </details>
   
   ---
   
   ### Configuration
   
   📅 **Schedule**: (UTC)
   
   - Branch creation
     - At any time (no schedule defined)
   - Automerge
     - 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.
   
   ---
   
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this 
box
   
   ---
   
   This PR was generated by [Mend Renovate](https://mend.io/renovate/). View 
the [repository job log](https://developer.mend.io/github/apache/polaris).
   
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTguMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS1wb2xhcmlzIl19-->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to