Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump github.com/open-policy-agent/opa from 0.54.0 to 0.55.0 #3143

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 28, 2023

Bumps github.com/open-policy-agent/opa from 0.54.0 to 0.55.0.

Release notes

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

v0.55.0

NOTES:

  • All published OPA images now run with a non-root uid/gid. The uid:gid is set to 1000:1000 for all images. As a result there is no longer a need for the -rootless image variant and hence it will be not be published as part of future releases. This change is in line with container security best practices. OPA can still be run with root privileges by explicitly setting the user, either with the --user argument for docker run, or by specifying the securityContext in the Kubernetes Pod specification.

  • The minimum version of Go required to build the OPA module is 1.19

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

Honor default keyword on functions

Previously if a function was defined with a default value, OPA would ignore it. Now the default function is honored if all functions with the same name are undefined. For example,

package example
default clamp_positive(_) := 0
clamp_positive(x) = x {
x > 0
}

$ opa eval -d example.rego 'data.example.clamp_positive(1)' -f pretty
1
$ opa eval -d example.rego 'data.example.clamp_positive(-1)' -f pretty
0

The value of a default function follows the same conditions as that of a default rule. In addition, a default function satisfies the following properties:

  • same arity as other functions with the same name
  • arguments should only be plain variables ie. no composite values
  • argument names should not be repeated

NOTE:

default functions used to be previously ignored. If existing policies contain default functions, ensure that they conform to the properties mentioned above. Otherwise, those policies will fail to evaluate.

Authored by @​ashutosh-narkar.

... (truncated)

Changelog

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

0.55.0

NOTES:

  • All published OPA images now run with a non-root uid/gid. The uid:gid is set to 1000:1000 for all images. As a result there is no longer a need for the -rootless image variant and hence it will be not be published as part of future releases. This change is in line with container security best practices. OPA can still be run with root privileges by explicitly setting the user, either with the --user argument for docker run, or by specifying the securityContext in the Kubernetes Pod specification.

  • The minimum version of Go required to build the OPA module is 1.19

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

Honor default keyword on functions

Previously if a function was defined with a default value, OPA would ignore it. Now the default function is honored if all functions with the same name are undefined. For example,

package example
default clamp_positive(x) := 0
clamp_positive(x) = x {
x > 0
}

$ opa eval -d example.rego 'data.example.clamp_positive(1)' -f pretty
1
$ opa eval -d example.rego 'data.example.clamp_positive(-1)' -f pretty
0

The value of a default function follows the same conditions as that of a default rule. In addition, a default function satisfies the following properties:

  • same arity as other functions with the same name
  • arguments should only be plain variables ie. no composite values
  • argument names should not be repeated

NOTE:

default functions used to be previously ignored. If existing policies contain default functions, ensure that they conform to the properties mentioned above. Otherwise, those policies will fail to evaluate.

... (truncated)

Commits
  • 4c21ddd Prepare v0.55.0 release (#6119)
  • 1868d41 chore: Comment should with an optional leading article
  • 49f5805 [docs] Brush up OPA profiling docs
  • fe50e18 GitLab registry header auth
  • 768dcd9 docs: Add a note about default functions
  • c83f5b7 [docs] Fix bug for broken ecosystem links
  • e57b6c7 [docs] Correct envoy tutorial mistake (#6107)
  • 93c5abe build(deps): bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3 (#6106)
  • a996188 Update the standalone envoy tutorial (#6105)
  • afcf014 topdown: Honor default keyword on functions
  • Additional commits viewable in compare view

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 dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jul 28, 2023
@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #3143 (8be04b1) into main (af555d5) will decrease coverage by 0.02%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

❗ Current head 8be04b1 differs from pull request most recent head b7aaec2. Consider uploading reports for the commit b7aaec2 to get more accurate results

@@            Coverage Diff             @@
##             main    #3143      +/-   ##
==========================================
- Coverage   30.56%   30.55%   -0.02%     
==========================================
  Files         155      155              
  Lines        9801     9806       +5     
==========================================
  Hits         2996     2996              
- Misses       6359     6362       +3     
- Partials      446      448       +2     

see 1 file with indirect coverage changes

hectorj2f
hectorj2f previously approved these changes Jul 28, 2023
@hectorj2f
Copy link
Contributor

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/open-policy-agent/opa-0.55.0 branch from 522f8f0 to 2a3ddc1 Compare July 29, 2023 14:43
@hectorj2f
Copy link
Contributor

This job is failing due to no space left on device.

@hectorj2f hectorj2f force-pushed the dependabot/go_modules/github.com/open-policy-agent/opa-0.55.0 branch from 80ee180 to 8be04b1 Compare July 31, 2023 18:05
Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.54.0 to 0.55.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](open-policy-agent/opa@v0.54.0...v0.55.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Hector Fernandez <hector@chainguard.dev>
@hectorj2f hectorj2f force-pushed the dependabot/go_modules/github.com/open-policy-agent/opa-0.55.0 branch from 8be04b1 to b7aaec2 Compare July 31, 2023 18:52
@hectorj2f hectorj2f enabled auto-merge (squash) August 1, 2023 18:41
@hectorj2f hectorj2f disabled auto-merge August 1, 2023 19:27
@hectorj2f hectorj2f requested a review from bobcallaway August 1, 2023 19:30
@hectorj2f hectorj2f merged commit 84290f4 into main Aug 1, 2023
@hectorj2f hectorj2f deleted the dependabot/go_modules/github.com/open-policy-agent/opa-0.55.0 branch August 1, 2023 21:12
@github-actions github-actions bot added this to the v2.2.0 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants