---
title: "Discussion on \"Dotenv-vault: The New Way to Manage .env\" | Hashnode"
description: "Discussion on \"Dotenv-vault: The New Way to Manage .env\". Are you still sharing your .env file around using Slack? It's probably time to level up your game and use a proper tool for it."
url: "https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dotenv-vault: The New Way to Manage .env](https://blogs.shenyien.cyou/dotenv-vault-the-new-way-to-manage-env?utm_source=hashnode&utm_medium=feed)

Are you still sharing your .env file around using Slack? It's probably time to level up your game and use a proper tool for it.

May 23, 2023 · 9 min read · blogs.shenyien.cyou  
Updated Apr 18, 2024  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#docker](https://hashnode.com/tag/docker)
-   [#devops](https://hashnode.com/tag/devops)
-   [#environment-variables](https://hashnode.com/tag/environment-variables)
-   [#efficiency](https://hashnode.com/tag/efficiency)

## Written by

[Hoh Shen Yien](https://hashnode.com/@ShenYien)

@ShenYien · Kuala Lumpur, Malaysia

  
[View profile](https://hashnode.com/@ShenYien)

I write codes and blogs 🍵

My name is Hoh Shen Yien, I'm a Malaysian fullstack developer who likes to read and write sometimes 🤩

## Responses 5

Markdown supported · ⌘↵ to post

[Furkan Emin Can](https://hashnode.com/@femincan)

[Jun 3, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/647ab4ab1c128bf71962a9da)

Thanks [Hoh Shen Yien](https://hashnode.com/@ShenYien). I had saw it when I researched the dotenv-expand package, but I didn't pay much attention.

With this information, I'd like to try it in my future projects.

(By the way, I like your custom design much.)

[Hoh Shen Yien](https://hashnode.com/@ShenYien)

[Jun 3, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/647ab4ab1c128bf71962a9da#reply-647ad5a61c128bf71962ac22)

Thanks 😆

[Mot](https://hashnode.com/@dotenv)

[Jun 2, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/647a5e521c128bf71962a6b4)

Great Post Shen. Nice breakdown of things. As to your thought here:

> Disclaimer: I am not sure how will dotenv and Docker work in a serverless environment (Vercel), maybe it'll retrieve it for every different server?

Checkout the `.env.vault` file. It is not well documented yet, but it is the future here today. Rather than syncing your secrets and scattering them across multiple 3rd parties, you include an encrypted .env.vault with your deploy, and then set a single DOTENV\_KEY on your server/serverless/etc. On boot, your .env.vault file is decrypted just in time and your app runs correctly.

This new approach to security will prevent breaches like the CircleCI breach being effective.

This is an essential difference between dotenv-vault and other SecretOps solutions. It's important to us.

[Hoh Shen Yien](https://hashnode.com/@ShenYien)

[Jun 3, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/647a5e521c128bf71962a6b4#reply-647ad57c1c128bf71962ac1c)

Thanks for the explanation, it makes a lot of sense to me now!

Also thanks for the amazing dotenv-vault, I really enjoy using it!

[ILLA Cloud](https://hashnode.com/@ILLACLOUD)

[May 26, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/647093c49668d67eeed11788)

This looks great!!! Could be a project with huge potential.

[Sandeep Panda](https://hashnode.com/@sandeep)

[May 25, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/646f75311af4f977898825eb)

Neat post! Just featured it.

[Hoh Shen Yien](https://hashnode.com/@ShenYien)

[May 25, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/646f75311af4f977898825eb#reply-646f853a1e81847759a69e25)

Thanks!

[Ather Sajjad](https://hashnode.com/@athersajjad)

[May 25, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/646f6a5c1af4f977898824c4)

This looks nice, will try it out for personal projects 😄, but from the article it seems it still pulls the config value which will reside in the .env file. Look at how Doppler handles it, it doesn't put the value in files. you can see the secret using command but it's mostly abstracted, and it has better integrations with all PaaS providers like vercel, heroku

[Hoh Shen Yien](https://hashnode.com/@ShenYien)

[May 25, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/646f6a5c1af4f977898824c4#reply-646f8519478e7b7901e872ad)

Ahhh, I haven't actually heard of Doppler before, will look into it, thanks for the recommendation! 😆

[Mot](https://hashnode.com/@dotenv)

[Jun 2, 2023](https://hashnode.com/posts/dotenv-vault-the-new-way-to-manage-env/646ce460f419f3d1c1b5aadc/comment/646f6a5c1af4f977898824c4#reply-647a5d3f1c128bf71962a6ab)

Doppler is doing great work. Good to have more solutions solving this problem. BUT Doppler does write to your local machine as well. It writes to a central location on your machine - usually inside a hidden folder in your user root.

We thought about this long and hard but opted to stay 'decentralized' with project-centric .env files. Makes it more difficult if an attacker gained access to your machine. They would have to do much more work to access your secrets - iterate through all your projects on your machine. With doppler, the attacker can access a single location to find all your secrets.
