unbasical / kelon

Kelon helps you to secure your apis in a unified way
https://docs.kelon.io/
Apache License 2.0
10 stars 1 forks source link

Bump github.com/open-policy-agent/opa from 0.41.0 to 0.46.1 #230

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps github.com/open-policy-agent/opa from 0.41.0 to 0.46.1.

Release notes

Sourced from github.com/open-policy-agent/opa's releases.

v0.46.1

This is bugfix release to resolve an issue in the release pipeline. Everything else is the same as 0.46.0, which contains a mix of bugfixes, optimizations, and new features:

New language feature: refs in rule heads

With this version of OPA, we can use a shorthand for defining deeply-nested structures in Rego:

Before, we had to use multiple packages, and hence multiple files to define a structure like this:

{
  "method": {
    "get": {
      "allowed": true
    }
    "post": {
      "allowed": true
    }
  }
}
package method.get
default allowed := false
allowed { ... }
package method.post
default allowed := false
allowed { ... }

Now, we can define those rules in single package (and file):

package method
import future.keywords.if
default get.allowed := false
get.allowed if { ... }

default post.allowed := false post.allowed if { ... }

Note that in this example, the use of the future keyword if is mandatory

... (truncated)

Changelog

Sourced from github.com/open-policy-agent/opa's changelog.

0.46.1

This is bugfix release to resolve an issue in the release pipeline. Everything else is the same as 0.46.0.

0.46.0

This release contains a mix of bugfixes, optimizations, and new features.

New language feature: refs in rule heads

With this version of OPA, we can use a shorthand for defining deeply-nested structures in Rego:

Before, we had to use multiple packages, and hence multiple files to define a structure like this:

{
  "method": {
    "get": {
      "allowed": true
    }
    "post": {
      "allowed": true
    }
  }
}
package method.get
default allowed := false
allowed { ... }
package method.post
default allowed := false
allowed { ... }

Now, we can define those rules in single package (and file):

package method
import future.keywords.if
default get.allowed := false
get.allowed if { ... }

</tr></table>

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Looks like github.com/open-policy-agent/opa is up-to-date now, so this is no longer needed.