In the play ground I am able to set the
# spicedb
a
In the play ground, I am able to set the relations with caveat name in the format
resourcetype:resourceid#relation@subjecttype:subjectid[caveatName]
. After running zed client with --caveat-context gives correct result from zed client terminal, after getting the result I see error: Relationship must be of the form
resourcetype:resourceid#relation@subjecttype:subjectid[caveatName]
v
I'm not parsing your questions correctly 😖 would you mind elaborating? are you saying that running using zed in your computer's terminal works, but running in playground does not?
a
Sorry if it is not clear, I am using playground only. I added relations in "TEST Relationship tab in the playground" following the format
resourcetype:resourceid#relation@subjecttype:subjectid[caveatName]
. Using the zed terminal in playground with the flag
--caveat-conext
and getting the correct response. After getting the response, playground removes the added relationship as comment with error: Relationship must be of the form resourcetype:resourceid#relation@subjecttype:subjectid[caveatName]
j
@akoserwal will take a look
its because you're trying to put an empty context on the caveat
which isn't allowed
a
@Joey I am adding relation like
Copy code
role:clusteradminrole#cluster_update@user:*[not_deprovisioned]
. POST running the zed terminal in playground the Test relationship get updated to
role:clusteradminrole#cluster_update@user:*[not_deprovisioned:{}]
with PROBLEMS
Copy code
Invalid relationship role:clusteradminrole#cluster_update@user:*[not_deprovisioned:{}] on line 10: Relationship must be of the form `resourcetype:resourceid#relation@subjecttype:subjectid[caveatName]
j
hmm
okay; we might need to filter out the empty context htne