ory / keto

Open Source (Go) implementation of "Zanzibar: Google's Consistent, Global Authorization System". Ships gRPC, REST APIs, newSQL, and an easy and granular permission language. Supports ACL, RBAC, and other access models.

Home Page:https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=keto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deleting a namespace that contains relation tuples results in GetRelationTuples returning "not found"

hperl opened this issue · comments

Preflight checklist

Describe the bug

When I delete a namespace that has relation tuples, subsequent calls to GetRelationTuples returns in a "not found" (for the deleted namespace).

Instead, GetRelationTuples should just filter out the tuples for which the namespace was deleted.

Reproducing the bug

  1. Create namespace "users"
  2. Create relation tuple "users:foo#id@123"
  3. Delete namespace "users"
  4. GetRelationTuples

--> Throws "not found"

Relevant log output

No response

Relevant configuration

No response

Version

v0.8.0

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response