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

rfc-internal-comm #1

wants to merge 1 commit into from

Conversation

komal-sai-yral
Copy link
Collaborator

  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.

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.

@komal-sai-yral
Copy link
Collaborator Author

Also have to add the frequency with which keys and tokens are rotated

@saikatdas0790
Copy link

Preferable to have separate keys for each service. Better for security and better identifiable in each case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants