Skip to content

Commit 5b8a449

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents b690598 + aa7dfa2 commit 5b8a449

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
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...')

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)