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

myriad's avatar

Reseting Environment Lock Key?

We have a project were the environment lock key got overwritten and lost. Being encrypted there's obviously no way to restore the existing settings without the password.

Is there a way to reset the environment settings entirely? Start over again so we can create a new key and config file without having to destroy the entire project and re-create? (it's for a multi-server configuration, so it's a bunch of re-work to redo server logins, keys, scripts, etc).

Thanks!

0 likes
5 replies
myriad's avatar

Yeah, unfortunately I don't think it's currently possible. Really, all it needs is a Delete Env Settings button. A warning that this would be resetting everything in the .env would cover it.

Snapey's avatar

just delete the file? But what's an "environment lock key"

myriad's avatar

Envoyer manages the .env file for you under Servers > Manage Environment. This window is called the "Environment Lock". The first time you hit this button it asks you to set an encryption key. Subsequent access requires you to provide this key in order to open your .env settings.

This is good, it means that the .env data is stored securely. Important as it likely includes sensitive info like database credentials, private keys, etc.

The problem is if you lose this .env key there is no way of "deleting" it. It's not a file, it's data within Envoyer's DB. And since the .env data exists, it assumes you know the key and keeps asking for it. There is no provision for "we've lost the key, wipe the data and start over".

Snapey's avatar

Sorry, completely missed that this question was in the envoyer topic!

Please or to participate in this conversation.