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

Establish secure communication between Discord Service and Website Backend #2379

Open
joyguptaa opened this issue Feb 11, 2025 · 0 comments
Open

Comments

@joyguptaa
Copy link
Contributor

Description:

We need to implement a secure, two-way communication channel between the Discord service and the website backend. This communication will be encrypted using RSA key pairs (public and private keys). The system will require two pairs of keys, one for each direction of communication.

Details:

Two-way Encryption:

  • We will generate two RSA key pairs:
    • One for the Discord service to encrypt messages sent to the website backend.
    • Another for the website backend to encrypt messages sent to the Discord service.

Public & Private Keys:

  • Public Key will be shared between the services for encryption.
  • Private Key will remain secure on each service (Discord and Website Backend) to decrypt the received messages.

Key Management:

  • RSA key pairs will be securely stored on both the Discord service and website backend servers.
  • Proper management and rotation of keys will be implemented to ensure ongoing security.

Communication Process:

1. Sending Messages:

  • The sender encrypts the message using the recipient’s public key.
  • The recipient decrypts the message using their corresponding private key.

2. Receiving Messages:

  • The sender encrypts the response message with the recipient's public key.
  • The recipient decrypts the response using their private key.
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

When branches are created from issues, their pull requests are automatically linked.

1 participant