Skip to content

Commit aa7dfa2

Browse files
committed
cms@3ff575a
Finish 5.5.10
1 parent e33dae1 commit aa7dfa2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3622,7 +3622,17 @@ Defined by
36223622
36233623
A private, random, cryptographically-secure key that is used for hashing and encrypting data in [craft\services\Security](craft5:craft\services\Security).
36243624
3625-
This value should be the same across all environments. If this key ever changes, any data that was encrypted with it will be inaccessible.
3625+
::: warning
3626+
**Do not** share this key publicly. If exposed, it could lead to a compromised system.
3627+
:::
3628+
3629+
In the event that the key is compromised, a new secure key can be generated with the command:
3630+
3631+
```sh
3632+
php craft setup/security-key
3633+
```
3634+
3635+
Note that if the key changes, any data that is encrypted with it (e.g. user session cookies) will be inaccessible.
36263636
36273637
```php Static Config
36283638
->securityKey('2cf24dba5...')

0 commit comments

Comments
 (0)