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

Empty relation on a subset doesn't work as wildcard after upgrading to v0.11.1 #1479

Open
5 tasks done
gpadilha opened this issue Dec 8, 2023 · 0 comments
Open
5 tasks done
Labels
bug Something is not working.

Comments

@gpadilha
Copy link

gpadilha commented Dec 8, 2023

Preflight checklist

Ory Network Project

No response

Describe the bug

For the following tuples:

groups:readers#owner@user1
groups:readers#member@user2
files:foo.txt#access@groups:readers# (subset with empty relation, regardless of relation all should have access)

On version v0.8.0, the following check returns {allowed:true}
curl -X GET "http://127.0.0.1:4466/check?namespace=files&object=foo.txt&relation=access&subject_id=user1"

However, the same check on v0.11.1-alpha.0 returns {allowed:false}
curl -X GET "http://127.0.0.1:4466/relation-tuples/check?namespace=files&object=foo.txt&relation=access&subject_id=user1"

Reproducing the bug

  1. Spin a keto container version v0.8.0 connected to another container running mysql db
  2. Run the curl command to create the two tuples mentioned above
  3. Run the v0.8.0 respective check curl, it should return {allowed:true}
  4. Redeploy the keto container with v0.11.1-alpha.0
  5. Run the migrations
  6. Run the v0.11.1-alpha.0 respective check curl, it will return {allowed:false}, expected to be {allowed:true} as in the v0.8.0

Relevant log output

No response

Relevant configuration

No response

Version

v0.11.1-alpha.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

No response

@gpadilha gpadilha added the bug Something is not working. label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant