Anyone using spicedb to authorize access
# spicedb
s
Anyone using spicedb to authorize access into VMs?
y
actually kind of? one of my coworkers hacked together a spicedb PAM module
but i don't know if they're using it in production so to speak or if it's just a toy
s
Very Cool. If we wanted to cache locally authz information for that particular servers relationships what would be the appropriate way?
So if the Authz endpoint was down for some reason, we could (understanding the risks associated) have a cached state
y
i don't have strong opinions on that, and don't have a ton of knowledge about the PAM system. it may be possible to hold that within the system, or else you could change the module to e.g. write something to the local filesystem
s
Yeah I meant how to get that data or what mechanism in the SpiceDB API would we use?
y
are you asking how you could cache results from spicedb, or are you asking how you could hand something to SpiceDB at request time to be used in the calculation?
s
I think in the instance for caching, you'd only know the resource (the ssh_instance in this case) so I imagine the instance would store a local copy of who can access it. I guess if we could filter the spicedb queery to find relations to maybe only "users and services" that had access to it and store that. Not sure if SpiceDB has any mechanisms for doing this or if there is a better way.
y
yes, you can use
LookupSubjects
to determine which subjects of a given type (computed across the tree) have a permission on a given object
20 Views