Skip to content

Commit fa572ee

Browse files
dciprian-petrisorjaviereguiluz
authored andcommitted
[Config] Secrets decrypt exit option
1 parent b955129 commit fa572ee

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

configuration/secrets.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,20 @@ manually store this file somewhere and deploy it. There are 2 ways to do that:
271271

272272
.. code-block:: terminal
273273
274-
$ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force
274+
$ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force --exit
275275
276276
This will write all the decrypted secrets into the ``.env.prod.local`` file.
277277
After doing this, the decryption key does *not* need to remain on the server(s).
278278

279+
Note the usage of the ``--exit`` option: this forces all secrets to be successfully
280+
decrypted, otherwise a non-zero exit code is returned.
281+
282+
If you wish to continue regardless of errors occurring during decryption, you may omit this option.
283+
284+
.. versionadded:: 7.2
285+
286+
The ``--exit`` option was introduced in Symfony 7.2.
287+
279288
Rotating Secrets
280289
----------------
281290

0 commit comments

Comments
 (0)