Bug: Console missing CONVEX_DEPLOY_KEY
Hi, I am reviewing a live production Convex app and I notice the console's "Production Deployment Settings" is not showing my CONVEX_DEPLOY_KEY. The app is running in Vercel, so I must have generated it in the past.
I am referring to:
https://docs.convex.dev/production/hosting/vercel
4. Set up the CONVEX_DEPLOY_KEY environment variable
On your Convex Dashboard go to your project's Settings page. Click the Generate Production Deploy Key button to generate a Production deploy key. Then click the copy button to copy the key.
Using Convex with Vercel | Convex Developer Hub
Host your frontend on Vercel and your backend on Convex.
5 Replies
@ari any ideas?
Hey @Matt Luo
We've recently introduced persistent deploy keys which you can view and revoke on this page.
Deploy keys you've created in the past are not displayed on this page - this is why you don't see them.
Currently, we still support those legacy deploy keys but in the future we will communicate and transition to using the new deploy keys only.
Oh okay, sounds good. Looks like the responsibility is on my company to
- store the legacy deploy key somewhere in case it gets deleted in our Vercel configuration.
or
- generate a new (persistent) deploy key. Does doing so automatically and immediately revoke the legacy deploy key? The site is live, but we can tolerate an outage for now
If your legacy deploy key gets deleted - just generate a new one in the Convex dashboard.
Storing it would expose it to potentially being accessed by an unauthorized party.
Generating a new, persistent deploy key does not revoke any existing deploy keys.
I do recommend you generate a new style key and just use that.
This way - there will be no transition required in the future.
We'll add a note to this page that deploy keys created before XX/XX/2024 will not appear in the list, thanks Matt