Creating an API Key for Secure Data Access Between Next.js Server and Convex Backend
I'm working on a project where I have a Next.js server and a Convex backend. I want my server to access specific data from Convex without needing to set up a user account or similar authentication method on the backend. Ideally, I'd like to create an API key that my Next.js server could use to access this data securely.
My Goals:
1. Simplify access: I don’t want to manage an additional user account for server access.
2. Security: I want to ensure the connection is secure and properly authenticated.
3. Minimal overhead: Trying to keep this as lightweight as possible.
My Questions:
1. Is there a way to create an API key for my server to use with Convex?
2. What are the best practices for securing this kind of server-to-server connection?
3. Has anyone implemented something similar with a Convex backend, or are there any known limitations I should be aware of?
