noob saibot
noob saibot17mo ago

Using Doppler with Convex

Hello Convex Team, does Convex work with doppler? (https://www.doppler.com/) or are there plans for future integration?
Doppler: Enter the New Era of Secure Secrets Management | Cloud-Bas...
Doppler redefines how engineering teams handle secrets. Experience enhanced security, agility, and automation with our cloud platform. Start your free trial.
7 Replies
erquhart
erquhart17mo ago
You can set env vars via CLI, and they mentioned an integration with Doppler had at least been discussed a while back: https://discord.com/channels/1019350475847499849/1196898114355855501/1212223173601263689 That said I've used Convex with Doppler from day one and did fine without an integration. That's as a single developer running "CI" on my local, though, so might feel it more when I hit production and have a team.
Michal Srb
Michal Srb17mo ago
It's on our long todo list, but no timeline yet. People got it to work though.
noob saibot
noob saibotOP17mo ago
@erquhart Could you give an example (if possible) of how you've been using doppler with convex? Is it essentially to "inline" doppler env with convex command? something like: doppler secrets download ... && convex dev/build...?
erquhart
erquhart17mo ago
Use doppler run - here's my dev command from package.json:
"convex-dev": "doppler run -p convex -c dev -- npx convex dev --tail-logs",
"convex-dev": "doppler run -p convex -c dev -- npx convex dev --tail-logs",
David Alonso
David Alonso5mo ago
Would this also work with a command like npx convex deploy --cmd 'cd ../.. && turbo run build' to make sure that every Vercel deployment of Convex pulls in the latest env variables? I guess it's still not as nice as having a real-time sync between the two, but it's a start... Does the real-time sync work in your convex-dev command? i've tried this and it doesn't work for me. I'd expect env variables to show up on Convex when i run this command, but it doesn't seem to be the case
erquhart
erquhart5mo ago
Oh, no they don't sync into Convex. I just looked closer and all I'm actually doing there is injecting my deploy key env var into the build process. Which isn't super valuable on it's own, but if you use Doppler for all the parts of your stack (I have Netlify, Expo, used to have CI in there), then the centralization is valuable. Some things can also be reused via their templating.
David Alonso
David Alonso5mo ago
Chatting with @Tom about this integration as well, really hoping a v1 of this comes out soon 🙏

Did you find this page helpful?