nixpkgs/nixos/modules
Martin Weinelt 724ed08df0
nixos/wordpress: regenerate secret keys if misspelled key name is found
A secret key generated by the nixos module was misspelled, which could
possibly impact the security of session cookies.

To recover from this situation we will wipe all security keys that were
previously generated by the NixOS module, when the misspelled one is
found. This will result in all session cookies being invalidated. This
is confirmed by the wordpress documentation:

> You can change these at any point in time to invalidate all existing
> cookies. This does mean that all users will have to login again.

https://wordpress.org/support/article/editing-wp-config-php/#security-keys

Meanwhile this issue shouldn't be too grave, since the salting function
of wordpress will rely on the concatenation of both the user-provided
and automatically generated values, that are stored in the database.

> Secret keys are located in two places: in the database and in the
> wp-config.php file. The secret key in the database is randomly
> generated and will be appended to the secret keys in wp-config.php.

https://developer.wordpress.org/reference/functions/wp_salt/

Fixes: 2adb03fdae ("nixos/wordpress:
generate secrets locally")

Reported-by: Moritz Hedtke <Moritz.Hedtke@t-online.de>
2021-05-29 04:24:42 +02:00
..
config Merge pull request #101071 from ju1m/apparmor 2021-04-24 11:24:26 +00:00
hardware maintainers: rename metadark -> kira-bruneau (#124035) 2021-05-22 16:47:40 +02:00
i18n/input-method input methods: add kime 2021-04-19 03:05:07 +09:00
installer iso-image: Improve disk detection 2021-05-22 20:04:05 -07:00
misc nixos/monero: use isSystemUser = true 2021-05-08 02:13:25 +02:00
profiles Merge pull request #85073 from hyperfekt/systemd-pstore 2021-05-17 00:00:52 +02:00
programs Merge pull request #123926 from pschyska/master 2021-05-23 18:08:46 +00:00
security nixos/security/apparmor: utillinux -> util-linux 2021-05-17 17:14:08 +02:00
services nixos/wordpress: regenerate secret keys if misspelled key name is found 2021-05-29 04:24:42 +02:00
system nixos/luksroot: add bypassWorkqueues (#118114) 2021-05-26 09:43:38 -04:00
tasks nixos/filesystems: condition mount-pstore.service on unmounted /sys/fs/pstore 2021-05-21 17:49:23 +02:00
testing treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
virtualisation Merge pull request #123583 from superherointj/module-libvirtd-ovmf-aarch64-fix 2021-05-23 19:56:27 -03:00
module-list.nix nixos/botamusique: init 2021-05-23 01:01:51 +02:00
rename.nix quagga: remove 2021-04-22 12:48:48 +02:00