network
network copied to clipboard
Create relation creates a subject set instead of a single subject
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [X] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
https://gracious-torvalds-rvmo2ugoai.projects.oryapis.com
Describe the bug
When creating a relation through the GUI it creates a subject set instead of a single subject.
As a new user, I did not understand that this was the case and it was frustrating to observer that my relations weren't working.
Secondarily, I never specified a SubjectSet in the OPL definition. Shouldn't creating this relation produce an error?
Reproducing the bug
- Create relation in Ory Console
- Fetch relation via HTTP GET /relation-tuples
{
"relation_tuples": [
{
"namespace": "User",
"object": "erik",
"relation": "uuid",
"subject_set": {
"namespace": "UserUUID",
"object": "0aa1e827-0c94-4c79-a01d-68d4a93424da",
"relation": ""
}
}
],
"next_page_token": ""
}
- Observe the subject is always a subject_set and never subject_id
Relevant log output
No response
Relevant configuration
No response
Version
/version endpoint returns a 404
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
No response