Multi User Apps Requesting Pinecone

How can our multi users app perform requests to pinecone without putting our master apikey being stolen by the app users?

Hi topten,
To protect your Pinecone API key from being stolen by app users, you can implement a server-side solution where the app users send requests to your own backend server, and the backend server securely communicates with Pinecone using the API key. This way, the API key is never exposed to the app users.

Here’s an overview of the process:

  1. Create a backend server that acts as an intermediary between the app users and Pinecone.
  2. When the app user sends a request to your backend server, your server validates the request and securely sends the necessary information to Pinecone using your API key.
  3. Pinecone processes the request and sends the response back to your server.
  4. Your server then formats the response and sends it back to the app user.

Here are some additional security measures you can implement to protect your API key:

  1. Store the API key securely on your backend server and never expose it to the app users.
  2. Use HTTPS for all communication between your app and your backend server to prevent any potential man-in-the-middle attacks.
  3. Implement rate limiting and request validation to prevent abuse of your API.
  4. Regularly rotate your API key to minimize the impact of a potential key compromise.

By following these steps, you can securely integrate Pinecone into your multi-user app without exposing your API key to potential attackers.