Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cvanderschuere
Copy link
Contributor

The somewhat recently added namespace field on workflow & activity task RPCs is critical for any use of an Authorizer.

Without this change, the flow is:

  1. Workflow tasks poll successful
  2. [locally] Workflow task started
  3. [locally] Workflow task finished
  4. Workflow task completed -- #<GRPC::PermissionDenied: 7:Request unauthorized.>
  5. Workflow task failed (failure is also not being reported to the server)

Related auth code:
https://github.com/temporalio/temporal/blob/3c427e6a2d5e7bcdda5868f379a26f6eb578871f/common/authorization/interceptor.go#L126-L137

Copy link
Contributor

@antstorm antstorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@antstorm antstorm merged commit fd445bd into coinbase:master Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants