File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -243,12 +243,14 @@ The first option is to copy the **production decryption key** -
2432432) Using an Environment Variable
244244
245245The 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
254256your secrets during deployment to the "local" vault:
You can’t perform that action at this time.
0 commit comments