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.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=keto
Apache License 2.0
4.7k stars 342 forks source link

Deleting a namespace makes relationships referencing it undeletable #1535

Open jonas-jonas opened 5 days ago

jonas-jonas commented 5 days ago

Preflight checklist

Ory Network Project

No response

Describe the bug

Deleting a namespace that is referenced in a relationship makes these relationships undeletable.

Reproducing the bug

  1. Create namespace
  2. Create relationship referencing the created namespace
  3. Delete the namespace
  4. Try to delete the relationship
  5. See error

Relevant log output

{
    "error": {
        "code": 404,
        "status": "Not Found",
        "request": "f14273cc-1a37-91f2-b556-80aead24212a",
        "reason": "Unknown namespace with name \"test\".",
        "message": "The requested resource could not be found"
    }
}

Relevant configuration

No response

Version

master

On which operating system are you observing this issue?

Ory Network

In which environment are you deploying?

Ory Network

Additional Context

No response