The gateway service panics when the reva token is not valid. This is because all grpc endpoints on gateway are unprotected.
Two steps to fix it properly:
Avoid calling ContextMustGetUser in gateway and call ContextGetUser instead. Return an error if the user is not available.
Adjust UnprotectedEndpoints method of gateway service to return only specific endpoints, not all of them (not in scope of this ticket)
The gateway service panics when the reva token is not valid. This is because all grpc endpoints on gateway are unprotected. Two steps to fix it properly:
ContextMustGetUser
in gateway and callContextGetUser
instead. Return an error if the user is not available.UnprotectedEndpoints
method of gateway service to return only specific endpoints, not all of them (not in scope of this ticket)