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** -
243
243
2) Using an Environment Variable
244
244
245
245
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:
248
248
249
249
.. code-block :: terminal
250
250
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");'
252
254
253
255
To improve performance (i.e. avoid decrypting secrets at runtime), you can decrypt
254
256
your secrets during deployment to the "local" vault:
You can’t perform that action at this time.
0 commit comments