Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rfc-internal-comm #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions RFC-internal-comm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
1. Use gRPC for all internal service communication by default. Can use REST case by case.

2. Use JWT public-private key for authentication.

Generate a Ed25519 public-private key pair.

```bash
openssl genpkey -algorithm Ed25519 --out keyfile.pem

openssl pkey -in keyfile.pem -pubout -out keypub.pem
```

- Use the private key to generate a JWT token using relevant payload.
- Use the token in client side and verify the token in server side using the public key.
- Same public-private key pair can be used for all services.