dapr / dapr/docs

Security: Document how a callee can verify (authorize) a caller for service invocation and pub/sub

Open
#3,636 0 comments 0 reactions 0 assignees View on GitHub
content/missing-information
Dominant language
SCSS
Stars
1k
Forks
794
Avg merge
2d 8h
Merged PRs (30d)
7

Description

Dapr can restrict who can call a particular service through access policies on its endpoint. However there are time when a call to an endpoint is allowed and you still want to verifier the caller, either through service Invocation or pub/sub. This is to document how a callee can verifier a caller since there may be multiple callers allowed.

When your app receives calls from a Dapr sidecar via service invocation, it will include a header named "dapr-caller-app-id" which indicates the verified identity of the caller. Here's an example of headers that an app can expect when receiving a call from Dapr:

![image](https://github.com/dapr/docs/assets/11199644/c4a73faf-cc46-4793-a2cb-24db61df7527)

When using pub/sub, you can also verify the publisher when consuming the message via the "source" field on the Cloud Event envelope.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.