You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Creating a connection with Ops and then calling SetSystemSettingsAsync with Admin credentials throws AccessDeniedException when it should not.
To Reproduce
Steps to reproduce the behavior:
Establish a connection with Ops
Call client.SetSystemSettingsAsync(systemSettings, new UserCredentials("admin", "changeit"))
AccessDeniedException
Expected behavior
Operation should complete successfully.
Actual behavior
Client Side verbose logs:
14:45:53 DBG] Append to stream - $settings@Any.
[14:45:53 DBG] Starting gRPC call. Method type: 'ClientStreaming', URI: 'https://188.166.177.208:2113/event_store.client.streams.Streams/Append'.
[14:45:53 VRB] Starting deadline timeout. Duration: 00:00:04.9831440.
[14:45:54 DBG] Sending message.
[14:45:54 VRB] Serialized 'EventStore.Client.Streams.AppendReq' to 17 byte message.
[14:45:54 VRB] Message sent.
[14:45:54 VRB] Response headers received.
[14:45:54 INF] Call failed with gRPC error status. Status code: 'PermissionDenied', Message: 'Access Denied'.
[14:45:54 DBG] Finished gRPC call.
[14:45:54 VRB] Appending event to stream - { "streamName": "JHNldHRpbmdz" }@69a6738a-b59d-4103-a048-d682cd32138a $settings.
[14:45:54 ERR] Error writing message.
System.InvalidOperationException: Can't write the message because the call is complete.
[14:45:54 DBG] Completing client stream.
Unhandled exception. System.AggregateException: One or more errors occurred. (Status(StatusCode="PermissionDenied", Detail="Access Denied"))
---> EventStore.Client.AccessDeniedException: Status(StatusCode="PermissionDenied", Detail="Access Denied")
---> Grpc.Core.RpcException: Status(StatusCode="PermissionDenied", Detail="Access Denied")
--- End of inner exception stack trace ---
at EventStore.Client.Interceptors.TypedExceptionInterceptor.b__5_0[TRequest,TResponse](Task1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at EventStore.Client.EventStoreClient.AppendToStreamInternal(AppendReq header, IEnumerable`1 eventData, EventStoreClientOperationOptions operationOptions, UserCredentials userCredentials, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at ticket109639.Program.Main(String[] args)
Server Side logs:
Failed authorization check for "ops" in 00:30:37.3085738 with "streams : write p: {streamId : $settings} Deny : Policy : Legacy 1 12/31/9999 23:59:59 +00:00 : default:denied by default:Deny, $"
EventStore details
EventStore server version: 20.10.2
Operating system: MacOS
EventStore client version (if applicable): 21.2
The text was updated successfully, but these errors were encountered:
Describe the bug
Creating a connection with Ops and then calling SetSystemSettingsAsync with Admin credentials throws AccessDeniedException when it should not.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Operation should complete successfully.
Actual behavior
Client Side verbose logs:
14:45:53 DBG] Append to stream - $settings@Any.
[14:45:53 DBG] Starting gRPC call. Method type: 'ClientStreaming', URI: 'https://188.166.177.208:2113/event_store.client.streams.Streams/Append'.
[14:45:53 VRB] Starting deadline timeout. Duration: 00:00:04.9831440.
[14:45:54 DBG] Sending message.
[14:45:54 VRB] Serialized 'EventStore.Client.Streams.AppendReq' to 17 byte message.
[14:45:54 VRB] Message sent.
[14:45:54 VRB] Response headers received.
[14:45:54 INF] Call failed with gRPC error status. Status code: 'PermissionDenied', Message: 'Access Denied'.
[14:45:54 DBG] Finished gRPC call.
[14:45:54 VRB] Appending event to stream - { "streamName": "JHNldHRpbmdz" }@69a6738a-b59d-4103-a048-d682cd32138a $settings.
[14:45:54 ERR] Error writing message.
System.InvalidOperationException: Can't write the message because the call is complete.
[14:45:54 DBG] Completing client stream.
Unhandled exception. System.AggregateException: One or more errors occurred. (Status(StatusCode="PermissionDenied", Detail="Access Denied"))
---> EventStore.Client.AccessDeniedException: Status(StatusCode="PermissionDenied", Detail="Access Denied")
---> Grpc.Core.RpcException: Status(StatusCode="PermissionDenied", Detail="Access Denied")
--- End of inner exception stack trace ---
at EventStore.Client.Interceptors.TypedExceptionInterceptor.b__5_0[TRequest,TResponse](Task
1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask
2.InnerInvoke()at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at EventStore.Client.EventStoreClient.AppendToStreamInternal(AppendReq header, IEnumerable`1 eventData, EventStoreClientOperationOptions operationOptions, UserCredentials userCredentials, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at ticket109639.Program.Main(String[] args)
Server Side logs:$settings} Deny : Policy : Legacy 1 12/31/9999 23:59:59 +00:00 : default:denied by default:Deny, $ "
Failed authorization check for "ops" in 00:30:37.3085738 with "streams : write p: {streamId :
EventStore details
EventStore server version: 20.10.2
Operating system: MacOS
EventStore client version (if applicable): 21.2
The text was updated successfully, but these errors were encountered: