Skip to content

Commit e33dae1

Browse files
committed
cms@461a5f9
Finish 4.13.10
1 parent f6ae7b4 commit e33dae1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/.artifacts/cms/4.x/config-general.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3538,7 +3538,17 @@ Defined by
35383538
35393539
A private, random, cryptographically-secure key that is used for hashing and encrypting data in [craft\services\Security](craft4:craft\services\Security).
35403540
3541-
This value should be the same across all environments. If this key ever changes, any data that was encrypted with it will be inaccessible.
3541+
::: warning
3542+
**Do not** share this key publicly. If exposed, it could lead to a compromised system.
3543+
:::
3544+
3545+
In the event that the key is compromised, a new secure key can be generated with the command:
3546+
3547+
```sh
3548+
php craft setup/security-key
3549+
```
3550+
3551+
Note that if the key changes, any data that is encrypted with it (e.g. user session cookies) will be inaccessible.
35423552
35433553
```php Static Config
35443554
->securityKey('2cf24dba5...')

0 commit comments

Comments
 (0)