8000 Minor tweak · symfony/symfony-docs@5b77126 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b77126

Browse files
committed
Minor tweak
1 parent 231a862 commit 5b77126

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

configuration/secrets.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ The first option is to copy the **production decryption key** -
243243
2) Using an Environment Variable
244244

245245
The second way is to set the ``SYMFONY_DECRYPTION_SECRET`` environment variable
246-
to the base64 encoded value of the **production decryption key**.
247-
A fancy way to define it is:
246+
to the base64 encoded value of the **production decryption key**. A fancy way to
247+
fetch the value of the key is:
248248

249249
.. code-block:: terminal
250250
251-
$ export SYMFONY_DECRYPTION_SECRET=`php -r 'echo base64_encode(require "config/secrets/prod/prod.decrypt.private.php");'`
251+
# this command only gets the value of the key; you must also set an env var
252+
# in your system with this value (e.g. `export SYMFONY_DECRYPTION_SECRET=...`)
253+
$ php -r 'echo base64_encode(require "config/secrets/prod/prod.decrypt.private.php");'
252254
253255
To improve performance (i.e. avoid decrypting secrets at runtime), you can decrypt
254256
your secrets during deployment to the "local" vault:

0 commit comments

Comments
 (0)
0