File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -718,9 +718,19 @@ Clear all caches everywhere:
718
718
Encrypting the Cache
719
719
--------------------
720
720
721
+ .. versionadded :: 5.1
722
+
723
+ :class: `Symfony\\ Component\\ Cache\\ Marshaller\\ SodiumMarshaller ` has been
724
+ introduced in Symfony 5.1.
725
+
721
726
To encrypt the cache using ``libsodium ``, you can use the
722
727
:class: `Symfony\\ Component\\ Cache\\ Marshaller\\ SodiumMarshaller `.
723
728
729
+ .. note ::
730
+
731
+ This will encrypt the values of the cache items, but not the cache keys. Be
732
+ careful not the leak sensitive data in the keys.
733
+
724
734
Generate a key:
725
735
726
736
.. code-block :: terminal
@@ -828,5 +838,5 @@ for reading and writing, and the additional key(s) will only be used for reading
828
838
->addArgument(['env(base64:CACHE_DECRYPTION_KEY)', 'env(base64:OLD_CACHE_DECRYPTION_KEY)'])
829
839
->addArgument(service('@Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner'));
830
840
831
- Once all cache entries encrypted with the old key have expired, you can remove
841
+ Once all cache items encrypted with the old key have expired, you can remove
832
842
`OLD_CACHE_DECRYPTION_KEY ` completely.
You can’t perform that action at this time.
0 commit comments