Hey guys , i have my spicedb in k8s and
# spicedb
d
Hey guys , i have my spicedb in k8s and and have schema and relations uploaded , when i am trying to write new relationship and then delete it using grpcurl commands,its not reflecting in my database postgres , what could be the issue for it?
j
are you hitting the correct SpiceDB instance?
how are you validating the data isn't being reflected?
e
how did you configure spicedb to talk to the postgres instance?
d
Yes. I am hitting correct spicedb instance and for validating i am using two methods , One using directly checking the postgres using pgadmin so its not reflecting there, and second method by using spicedb api commands like check permission after deleting the relationship,so there is delay in there ,which should not be the case.
We have used spicedb operator and we are using spicedb secrets , where we are setting the datastore uri and passing postgre uri
j
your filter is almost certainly not matching the relationship(s)
if you're deleting a specific relationship, use a WriteRelationships with a DELETE call
d
I have tried this as well but still it. Didnt showed in the database
j
if the API call is succeeding without an error, then it will show the changes in the database
so that means either you're checking the wrong datastore, or hitting the wrong API endpoint
or not seeing how the delete is being applied
d
I am hitting correct endpoints as you can see here aswell and sometimes it wokring correctly but sometimes it doesn't,thats why i am in doubt as well for this behaviour
Can anyone tell me how can i integerate the Prometheus with spicedb in k8s?
j
> sometimes it wokring correctly but sometimes it doesn't
define it as "not working"
if you delete a relationship and immediately issue a Check, it will not be reflected in the check
unless you specify "full consistency" on the API call
d
Yes you are correct, but when it does not reflects in db and not showing correctly in check permission ,it sticks with that even after i waited for 10 mints , so not related to time.
???
Is there anyway to log the spicedb metdata , for eg like using proxies ?
j
define "metadata"
what would you like to log?>