8000 Merge branch '4.4' into 5.0 · symfony/symfony-docs@ebb3075 · GitHub
[go: up one dir, main page]

Skip to content

Commit ebb3075

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Update secrets.rst
2 parents fe6df5e + 5b77126 commit ebb3075

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

configuration/secrets.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,19 @@ manually store this file somewhere and deploy it. There are 2 ways to do that:
233233

234234
1) Uploading the file:
235235

236-
The first option is to copy the **decryption key** -
237-
``/config/secrets/prod/prod.decrypt.private.php`` to your server(s).
236+
The first option is to copy the **production decryption key** -
237+
``config/secrets/prod/prod.decrypt.private.php`` to your server(s).
238238

239239
2) Using an Environment Variable
240240

241241
The second way is to set the ``SYMFONY_DECRYPTION_SECRET`` environment variable
242-
to the base64 encoded value of the **decryption key**. A fancy way to fetch the
243-
value of the key is:
242+
to the base64 encoded value of the **production decryption key**. A fancy way to
243+
fetch the value of the key is:
244244

245245
.. code-block:: terminal
246246
247+
# this command only gets the value of the key; you must also set an env var
248+
# in your system with this value (e.g. `export SYMFONY_DECRYPTION_SECRET=...`)
247249
$ php -r 'echo base64_encode(require "config/secrets/prod/prod.decrypt.private.php");'
248250
249251
To improve performance (i.e. avoid decrypting secrets at runtime), you can decrypt
@@ -253,8 +255,8 @@ your secrets during deployment to the "local" vault:
253255
254256
$ php bin/console secrets:decrypt-to-local --force --env=prod
255257
256-
This will put all the decrypted secrets into ``.env.prod.local``. After doing this,
257-
the decryption key does *not* need to remain on the server.
258+
This will write all the decrypted secrets into the ``.env.prod.local`` file.
259+
After doing this, the decryption key does *not* need to remain on the server.
258260

259261
Rotating Secrets
260262
----------------

0 commit comments

Comments
 (0)
0