Skip to content

Commit

Permalink
build(deps): bump github.com/openfga/openfga from 1.5.9 to 1.6.0 (#14028
Browse files Browse the repository at this point in the history
)

Bumps [github.com/openfga/openfga](https://github.com/openfga/openfga)
from 1.5.9 to 1.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/openfga/openfga/releases">github.com/openfga/openfga's
releases</a>.</em></p>
<blockquote>
<h2>v1.6.0</h2>
<h3>Changed</h3>
<ul>
<li>Consistency options experimental flag has been removed and is now
enabled by default. Refer to the <a
href="https://openfga.dev/docs/interacting/consistency">consistency
options documentation</a> for details. <a
href="https://redirect.github.com/openfga/openfga/pull/1889">#1889</a></li>
<li>Require at least Go 1.22.6 <a
href="https://redirect.github.com/openfga/openfga/pull/1831">#1831</a>.
Thanks <a
href="https://github.com/tranngoclam"><code>@​tranngoclam</code></a></li>
<li>Add a &quot;query_duration_ms&quot; field on each log <a
href="https://redirect.github.com/openfga/openfga/pull/1831">#1807</a>.
Thanks <a
href="https://github.com/lalalalatt"><code>@​lalalalatt</code></a></li>
<li>Default logging to stdout instead of stderr <a
href="https://redirect.github.com/openfga/openfga/pull/1830">#1830</a></li>
</ul>
<h2>Fixed</h2>
<ul>
<li>Check API: internal fixes <a
href="https://redirect.github.com/openfga/openfga/pull/1843">#1843</a></li>
<li>Correct docker file syntax <a
href="https://redirect.github.com/openfga/openfga/pull/1852">#1852</a></li>
</ul>
<h2>Performance</h2>
<ul>
<li>Performance improvements for Check API:
<ul>
<li>introduce an optimization when the input request relation is
pointing to a computed relation <a
href="https://redirect.github.com/openfga/openfga/pull/1793">#1793</a></li>
<li>batch calls that compute membership checks and start processing them
earlier <a
href="https://redirect.github.com/openfga/openfga/pull/1804">#1804</a></li>
<li>performance improvement in wildcard scenarios <a
href="https://redirect.github.com/openfga/openfga/pull/1848">#1848</a></li>
</ul>
</li>
<li>Performance improvement in tuple validation on reads <a
href="https://redirect.github.com/openfga/openfga/pull/1825">#1825</a></li>
</ul>
<h3>Breaking changes</h3>
<ul>
<li>Set a maximum limit on bytes to the WriteAssertions API: 64 KB <a
href="https://redirect.github.com/openfga/openfga/pull/1847">#1847</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/openfga/openfga/blob/main/CHANGELOG.md">github.com/openfga/openfga's
changelog</a>.</em></p>
<blockquote>
<h2>[1.6.0] - 2024-08-30</h2>
<p><a
href="https://github.com/openfga/openfga/compare/v1.5.9...v1.6.0">Full
changelog</a></p>
<h3>Changed</h3>
<ul>
<li>Consistency options experimental flag has been removed and is now
enabled by default. Refer to the <a
href="https://openfga.dev/docs/interacting/consistency">consistency
options documentation</a> for details. <a
href="https://redirect.github.com/openfga/openfga/pull/1889">#1889</a></li>
<li>Require at least Go 1.22.6 <a
href="https://redirect.github.com/openfga/openfga/pull/1831">#1831</a>.
Thanks <a
href="https://github.com/tranngoclam"><code>@​tranngoclam</code></a></li>
<li>Add a &quot;query_duration_ms&quot; field on each log <a
href="https://redirect.github.com/openfga/openfga/pull/1831">#1807</a>.
Thanks <a
href="https://github.com/lalalalatt"><code>@​lalalalatt</code></a></li>
<li>Default logging to stdout instead of stderr <a
href="https://redirect.github.com/openfga/openfga/pull/1830">#1830</a></li>
</ul>
<h2>Fixed</h2>
<ul>
<li>Check API: internal fixes <a
href="https://redirect.github.com/openfga/openfga/pull/1843">#1843</a></li>
<li>Correct docker file syntax <a
href="https://redirect.github.com/openfga/openfga/pull/1852">#1852</a></li>
</ul>
<h2>Performance</h2>
<ul>
<li>Performance improvements for Check API:
<ul>
<li>introduce an optimization when the input request relation is
pointing to a computed relation <a
href="https://redirect.github.com/openfga/openfga/pull/1793">#1793</a></li>
<li>batch calls that compute membership checks and start processing them
earlier <a
href="https://redirect.github.com/openfga/openfga/pull/1804">#1804</a></li>
<li>performance improvement in wildcard scenarios <a
href="https://redirect.github.com/openfga/openfga/pull/1848">#1848</a></li>
</ul>
</li>
<li>Performance improvement in tuple validation on reads <a
href="https://redirect.github.com/openfga/openfga/pull/1825">#1825</a></li>
</ul>
<h3>Breaking changes</h3>
<ul>
<li>Set a maximum limit on bytes to the WriteAssertions API: 64 KB <a
href="https://redirect.github.com/openfga/openfga/pull/1847">#1847</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/openfga/openfga/commit/5efeccfce74c21ce7b69159be48faaa95b38f444"><code>5efeccf</code></a>
chore: add v1.6.0 release notes to CHANGELOG (<a
href="https://redirect.github.com/openfga/openfga/issues/1898">#1898</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/42d22d4e7c35a41581a500fe7e7b7705ae02faa8"><code>42d22d4</code></a>
feat: remove Check optimizations experimental flag (<a
href="https://redirect.github.com/openfga/openfga/issues/1895">#1895</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/cd50d7ec5e24af6c57429a1604f140bbf8fb5bca"><code>cd50d7e</code></a>
chore: add tests for TypeSystem type creation (<a
href="https://redirect.github.com/openfga/openfga/issues/1887">#1887</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/3d83acddfee2db79469ddc71def536818b852385"><code>3d83acd</code></a>
test: add cycle tests to the test matrix (<a
href="https://redirect.github.com/openfga/openfga/issues/1894">#1894</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/28495e004036ee323665e2b9cd82c9322b988842"><code>28495e0</code></a>
ci: add action to enforce adding changelog entries (<a
href="https://redirect.github.com/openfga/openfga/issues/1893">#1893</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/a4fdfd98eece39ca4a8126f17dde40edc2f810e9"><code>a4fdfd9</code></a>
test: run ListUsers and ListObects tests as part of the test matrix (<a
href="https://redirect.github.com/openfga/openfga/issues/1891">#1891</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/c2ef51f0c3fd80a62bd7ceed29360de5984b73d5"><code>c2ef51f</code></a>
refactor: split Check into multiple files (<a
href="https://redirect.github.com/openfga/openfga/issues/1883">#1883</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/545b3592b95419cd47152983e36cb3029dac952f"><code>545b359</code></a>
refactor: internal errors (<a
href="https://redirect.github.com/openfga/openfga/issues/1858">#1858</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/f578351a17572c59ee639d1de8156cb35dc17dcb"><code>f578351</code></a>
test: add unit test for consume usersets (<a
href="https://redirect.github.com/openfga/openfga/issues/1860">#1860</a>)</li>
<li><a
href="https://github.com/openfga/openfga/commit/23e48b76f6cf24422c6f3517f5d5f9f7fa216ab8"><code>23e48b7</code></a>
test: use different store per test in the test matrix (<a
href="https://redirect.github.com/openfga/openfga/issues/1890">#1890</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/openfga/openfga/compare/v1.5.9...v1.6.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/openfga/openfga&package-manager=go_modules&previous-version=1.5.9&new-version=1.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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)


</details>
  • Loading branch information
tomponline authored Sep 12, 2024
2 parents 968154d + d1c88a4 commit 4c7517c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ require (
github.com/olekukonko/tablewriter v0.0.5
github.com/openfga/api/proto v0.0.0-20240807201305-c96ec773cae9
github.com/openfga/language/pkg/go v0.2.0-beta.0
github.com/openfga/openfga v1.5.9
github.com/openfga/openfga v1.6.0
github.com/osrg/gobgp/v3 v3.29.0
github.com/pkg/sftp v1.13.6
github.com/pkg/xattr v0.4.10
Expand Down
20 changes: 10 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ github.com/digitalocean/go-smbios v0.0.0-20180907143718-390a4f403a8e h1:vUmf0yez
github.com/digitalocean/go-smbios v0.0.0-20180907143718-390a4f403a8e/go.mod h1:YTIHhz/QFSYnu/EhlF2SpU2Uk+32abacUYA5ZPljz1A=
github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0=
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
github.com/docker/docker v27.1.1+incompatible h1:hO/M4MtV36kzKldqnA37IWhebRA+LnqqcqDja6kVaKY=
github.com/docker/docker v27.1.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/docker v27.1.2+incompatible h1:AhGzR1xaQIy53qCkxARaFluI00WPGtXn0AJuoQsVYTY=
github.com/docker/docker v27.1.2+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c=
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
Expand Down Expand Up @@ -320,8 +320,8 @@ github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsI
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 h1:L0QtFUgDarD7Fpv9jeVMgy/+Ec0mtnmYuImjTz6dtDA=
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw=
github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A=
github.com/jackc/pgx/v5 v5.6.0 h1:SWJzexBzPL5jb0GEsrPMLIsi/3jOo7RHlzTjcAeDrPY=
github.com/jackc/pgx/v5 v5.6.0/go.mod h1:DNZ/vlrUnhWCoFGxHAG8U2ljioxukquj7utPDgtQdTw=
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/jaypipes/pcidb v1.0.1 h1:WB2zh27T3nwg8AE8ei81sNRb9yWBii3JGNJtT7K9Oic=
Expand Down Expand Up @@ -539,8 +539,8 @@ github.com/openfga/api/proto v0.0.0-20240807201305-c96ec773cae9 h1:Y0fIAHrYECcf5
github.com/openfga/api/proto v0.0.0-20240807201305-c96ec773cae9/go.mod h1:gil5LBD8tSdFQbUkCQdnXsoeU9kDJdJgbGdHkgJfcd0=
github.com/openfga/language/pkg/go v0.2.0-beta.0 h1:dTvgDkQImfNnH1iDvxnUIbz4INvKr4kS46dI12oAEzM=
github.com/openfga/language/pkg/go v0.2.0-beta.0/go.mod h1:mCwEY2IQvyNgfEwbfH0C0ERUwtL8z6UjSAF8zgn5Xbg=
github.com/openfga/openfga v1.5.9 h1:1x+9YdBOzbYPbkEUZjPPYt255GXDUbouC0ConpMRtL8=
github.com/openfga/openfga v1.5.9/go.mod h1:1OF1qR8nXdIirtosRZq0mPx5B6nuY5phPGk61Yh+9Lc=
github.com/openfga/openfga v1.6.0 h1:AfTEEK2PJzZPywSYWtOS3IXtHmqPKdLxGr/z+LFUMGk=
github.com/openfga/openfga v1.6.0/go.mod h1:/Q7/Bg/VeN3m68pAcmySejw/Xpp8HwTV92zrsLBoavo=
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
github.com/osrg/gobgp/v3 v3.29.0 h1:ISWjY5YQ45THcvXWdG2ykzXWxS22rgE6U9YWdaI/ki8=
github.com/osrg/gobgp/v3 v3.29.0/go.mod h1:ZGeSti9mURR/o5hf5R6T1FM5g1yiEBZbhP+TuqYJUpI=
Expand All @@ -562,8 +562,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
github.com/pressly/goose/v3 v3.20.0 h1:uPJdOxF/Ipj7ABVNOAMJXSxwFXZGwMGHNqjC8e61VA0=
github.com/pressly/goose/v3 v3.20.0/go.mod h1:BRfF2GcG4FTG12QfdBVy3q1yveaf4ckL9vWwEcIO3lA=
github.com/pressly/goose/v3 v3.21.1 h1:5SSAKKWej8LVVzNLuT6KIvP1eFDuPvxa+B6H0w78buQ=
github.com/pressly/goose/v3 v3.21.1/go.mod h1:sqthmzV8PitchEkjecFJII//l43dLOCzfWh8pHEe+vE=
github.com/prometheus/client_golang v1.20.3 h1:oPksm4K8B+Vt35tUhw6GbSNSgVlVSBH0qELP/7u83l4=
github.com/prometheus/client_golang v1.20.3/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
Expand Down Expand Up @@ -680,8 +680,8 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 h1:Xs2Ncz0gNihqu9iosIZ5SkBbWo5T8JhhLJFMQL1qmLI=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0/go.mod h1:vy+2G/6NvVMpwGX/NyLqcC41fxepnuKHk16E6IZUcJc=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8=
go.opentelemetry.io/otel v1.30.0 h1:F2t8sK4qf1fAmY9ua4ohFS/K+FUuOPemHUIXHtktrts=
go.opentelemetry.io/otel v1.30.0/go.mod h1:tFw4Br9b7fOS+uEao81PJjVMjW/5fvNCbpsDIXqP0pc=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 h1:lsInsfvhVIfOI6qHVyysXMNDnjO9Npvl7tlDPJFBVd4=
Expand Down
6 changes: 3 additions & 3 deletions lxd/auth/drivers/openfga.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (e *embeddedOpenFGA) CheckPermission(ctx context.Context, entityURL *api.UR
// (Otherwise we just get "rpc error (4000): Internal Server Error" or similar which isn't useful).
var openFGAInternalError openFGAErrors.InternalError
if errors.As(err, &openFGAInternalError) {
err = openFGAInternalError.Internal()
err = openFGAInternalError.Unwrap()
}

return fmt.Errorf("Failed to check OpenFGA relation: %w", err)
Expand All @@ -264,7 +264,7 @@ func (e *embeddedOpenFGA) CheckPermission(ctx context.Context, entityURL *api.UR
// (Otherwise we just get "rpc error (4000): Internal Server Error" or similar which isn't useful).
var openFGAInternalError openFGAErrors.InternalError
if errors.As(err, &openFGAInternalError) {
err = openFGAInternalError.Internal()
err = openFGAInternalError.Unwrap()
}

return fmt.Errorf("Failed to check OpenFGA relation: %w", err)
Expand Down Expand Up @@ -408,7 +408,7 @@ func (e *embeddedOpenFGA) GetPermissionChecker(ctx context.Context, entitlement
// (Otherwise we just get "rpc error (4000): Internal Server Error" or similar which isn't useful).
var openFGAInternalError openFGAErrors.InternalError
if errors.As(err, &openFGAInternalError) {
err = openFGAInternalError.Internal()
err = openFGAInternalError.Unwrap()
}

return nil, fmt.Errorf("Failed to list OpenFGA objects of type %q with entitlement %q for user %q: %w", entityType.String(), entitlement, id.Identifier, err)
Expand Down

0 comments on commit 4c7517c

Please sign in to comment.