When a user does not have privilege to read a stream, and he does get stream test in cdap cli, he gets:
Error: Server returned HTTP response code: 403 for URL: http://alice@authorization24008-1000:11015/v3/namespaces/authorization/streams/test/events?start=0&end=9223372036854775807&limit=2147483647
While if we send an event, we get the correct message:
Error: Principal 'Principal
' is not authorized to perform action 'WRITE' on entity 'stream:authorization.test'