Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

viedev's avatar

How can Envoyer deploy an unencrypted .env file if there's "no feasible way to decrypt it" on Envoyer's server?

I'm just not sure how that would be possible? Wouldn't Envoyer need to be able to decrypt it to deploy?

0 likes
9 replies
viedev's avatar

Sorry, I don't see how this is related.

jlrdw's avatar

Simple, don't use Envoyer to deploy the env.

jlrdw's avatar

You let Envoyer do it's job, create the .env there and it will handle it. I mean don't deploy .env with everything else.

It puts it safely in another folder. In link I was referring to ejdelmonico answer, he knows this stuff pretty darn well.

viedev's avatar

Right, okay, I think we are talking about different things. I'm not asking how I should deploy my env, or where it goes. I'm not asking about best practice or how to do anything actually.

Envoyer lets you manage your env through it's web UI right? And when it does, it asks for a password because it says that it's encrypting that env. It says:

"Your environment information is encrypted with a key of your choosing. We are unable to encrypt it without this key, and have no feasible way to decrypt the environment information while it is stored on our servers."

But then Envoyer is able to deploy a plain text env file to a server. So how is it decrypting it to deploy that plain text file for you?

click's avatar
click
Best Answer
Level 35

But then Envoyer is able to deploy a plain text env file to a server. So how is it decrypting it to deploy that plain text file for you?

It doesn't deploy the .env file every time you do a deployment. It only updates the .env file when you press "save" in the "manage environment" modal in envoyer. At that moment the .env file is "deployed" to your server.

viedev's avatar

Ah, I see. That makes sense, sorry for the confusion!

Please or to participate in this conversation.