From de3ea1365e628b4cfaa5fa0bfedaa16398127b8a Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 22 Jun 2021 15:23:22 +0200 Subject: [PATCH] [FrameworkBundle] Add commented base64 version of secrets' keys --- src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php b/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php index cc1e443232933..e31023af36143 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php +++ b/src/Symfony/Bundle/FrameworkBundle/Secrets/SodiumVault.php @@ -200,9 +200,10 @@ private function loadKeys(): void private function export(string $file, string $data): void { + $b64 = 'decrypt.private' === $file ? '// SYMFONY_DECRYPTION_SECRET='.base64_encode($data)."\n" : ''; $name = basename($this->pathPrefix.$file); $data = str_replace('%', '\x', rawurlencode($data)); - $data = sprintf("createSecretsDir();