From e33dae168d2b7a703a751ceefb950c51012e6026 Mon Sep 17 00:00:00 2001 From: shinybrad Date: Wed, 15 Jan 2025 00:24:32 +0000 Subject: [PATCH] cms@461a5f9 Finish 4.13.10 --- docs/.artifacts/cms/4.x/config-general.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/.artifacts/cms/4.x/config-general.md b/docs/.artifacts/cms/4.x/config-general.md index bd26f05e4..4e52728bd 100644 --- a/docs/.artifacts/cms/4.x/config-general.md +++ b/docs/.artifacts/cms/4.x/config-general.md @@ -3538,7 +3538,17 @@ Defined by A private, random, cryptographically-secure key that is used for hashing and encrypting data in [craft\services\Security](craft4:craft\services\Security). -This value should be the same across all environments. If this key ever changes, any data that was encrypted with it will be inaccessible. +::: warning +**Do not** share this key publicly. If exposed, it could lead to a compromised system. +::: + +In the event that the key is compromised, a new secure key can be generated with the command: + +```sh +php craft setup/security-key +``` + +Note that if the key changes, any data that is encrypted with it (e.g. user session cookies) will be inaccessible. ```php Static Config ->securityKey('2cf24dba5...')