Skip to content

[Cache] Document cache encryption using SodiumMarshaller #14658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2020

Conversation

pableu
Copy link
Contributor

@pableu pableu commented Dec 5, 2020

Fix #13070.

I'm no good at doing configs in XML and PHP, but the YAML should be fine.

#SymfonyHackday

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

I think we can merge both sections by adding a second example, e.g.:

services:
    Symfony\Component\Cache\Marshaller\SodiumMarshaller:
        decorates: cache.default_marshaller
        arguments:
            - ['%env(base64:CACHE_DECRYPTION_KEY)%']
            # use multiple keys in order to rotate them
            #- ['%env(base64:CACHE_DECRYPTION_KEY)%', '%env(base64:OLD_CACHE_DECRYPTION_KEY)%']
            - '@Symfony\Component\Cache\Marshaller\SodiumMarshaller.inner'

@pableu
Copy link
Contributor Author

pableu commented Dec 5, 2020

Thanks for your suggestions, I appreciate that.

I made a few more commits, should I rebase them all into one for a cleaner merge?

@wouterj
Copy link
Member

wouterj commented Dec 5, 2020

I made a few more commits, should I rebase them all into one for a cleaner merge?

Our merge tool takes care of merging all commits into one before merging the PR. So you don't have to worry about it (but there is nothing stopping you from doing it)

@wouterj wouterj linked an issue Dec 5, 2020 that may be closed by this pull request
@pableu
Copy link
Contributor Author

pableu commented Dec 6, 2020

Cool! I'll leave it to your merge tool to do it's thing.

I think I could also do a similar PR for #13245. Interested?

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, great addition to the docs 😃

@wouterj wouterj merged commit 078cf6a into symfony:5.1 Dec 6, 2020
@wouterj
Copy link
Member

wouterj commented Dec 6, 2020

Thank you @pableu! This is great 😃

I've fixed @OskarStark comments while merging and also did some more tweaks in 54fdf7a . The diff of that commit looks a bit extreme, I mostly merged some sentences together to make this a little more concise.

I think I could also do a similar PR for #13245. Interested?

Yes, definitely!

@pableu pableu deleted the encrypted-cache branch December 7, 2020 07:03
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Dec 7, 2020
* 5.1:
  Added the versionadded directive
  Added config reference for router.default_uri
  [symfony#14658] Minor tweaks to cache encryption section
  [Cache] Document cache encryption using SodiumMarshaller
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Dec 7, 2020
* 5.2:
  Added the versionadded directive
  Added config reference for router.default_uri
  [symfony#14658] Minor tweaks to cache encryption section
  [Cache] Document cache encryption using SodiumMarshaller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cache] add SodiumMarshaller
4 participants