Calls to LookupResources using LookupResources2 with caveats may return context is missing when it is not
Package
No package listed
Affected versions
v1.37.0
v1.35.0
v1.35.1
v1.35.2
v1.35.3
v1.36.0
v1.36.2
Patched versions
v1.37.1
v1.37.1
v1.37.1
v1.37.1
v1.37.1
v1.37.1
v1.37.1
Impact
Clients that have enabled
LookupResources2
and have caveats in the evaluation path for their requests can return a permissionship ofCONDITIONAL
with context marked as missing, even then the context was supplied.LookupResources2 is the new default in SpiceDB 1.37.0 and has been opt-in since SpiceDB 1.35.0
Patches
The bug will be released as part of SpiceDB 1.37.1
Workarounds
Disable LookupResources2 via the
--enable-experimental-lookup-resources
flag by setting it tofalse