Skip to content

Update secrets.rst #14164

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
Sep 7, 2020
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
10 changes: 5 additions & 5 deletions configuration/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ This will generate ``config/secrets/prod/prod.encrypt.public.php`` and
Create or Update Secrets
------------------------

Suppose you want to store your database password a secret. By using the
Suppose you want to store your database password as a secret. By using the
``secrets:set`` command, you should add this secret to both the ``dev`` *and*
``prod`` vaults:

.. code-block:: terminal

# the input is hidden as you type for security
# the input is hidden as you type for security reason

# set your a default development value (can be overridden locally)
# set your development value (default, can be overridden locally)
$ php bin/console secrets:set DATABASE_PASSWORD

# set your production value
Expand Down Expand Up @@ -106,7 +106,7 @@ Secret values can be referenced in the same way as
accidentally define a secret *and* an environment variable with the same name:
**environment variables override secrets**.

If you stored a ``DATABASE_PASSWORD`` secret, you can reference by:
If you stored a ``DATABASE_PASSWORD`` secret, you can reference it by:

.. configuration-block::

Expand Down Expand Up @@ -260,7 +260,7 @@ your secrets during deployment to the "local" vault:
$ php bin/console secrets:decrypt-to-local --force --env=prod

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.
After doing this, the decryption key does *not* need to remain on the server(s).

Rotating Secrets
----------------
Expand Down