Skip to content

drop the --exit option #20058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions configuration/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,22 +271,11 @@ manually store this file somewhere and deploy it. There are 2 ways to do that:

.. code-block:: terminal

$ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force --exit
$ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force

This will write all the decrypted secrets into the ``.env.prod.local`` file.
After doing this, the decryption key does *not* need to remain on the server(s).

Note the usage of the ``--exit`` option: this ensures that all secrets are
successfully decrypted. If any error occurs during the decryption process,
the command will return a non-zero exit code, indicating a failure.

If you wish to continue regardless of errors occurring during decryption,
you may omit this option.

.. versionadded:: 7.2

The ``--exit`` option was introduced in Symfony 7.2.

Rotating Secrets
----------------

Expand Down
Loading