Real-Dev-Squad / discord-slash-commands

MIT License
5 stars 40 forks source link

Interaction of Cloudflare worker and RDS backend #10

Closed RitikJaiswal75 closed 1 year ago

RitikJaiswal75 commented 1 year ago

Discussed in https://github.com/Real-Dev-Squad/discord-slash-commands/discussions/9

Originally posted by **RitikJaiswal75** January 21, 2023 # Sending and receiving data between Cloudflare worker and RDS backend. Here we are looking for a way to send and receive data between the RDS backend and Cloudflare worker. We need the means to verify the calls are coming only from the specified Cloudflare worker. The method we chose was using RSA Private and Public keys and generating a JWT for the requests. ![server to server drawio](https://user-images.githubusercontent.com/57758447/213845674-692ad14a-989e-4aa4-9c32-dca42bd782dc.png)