1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/modules/services
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
..
admin
amqp
audio nixos/botamusique: init 2021-05-23 01:01:51 +02:00
backup duplicati: 2.0.5.1 -> 2.0.6.1, fix nixos module 2021-05-28 10:33:53 +02:00
blockchain/ethereum
cluster kubernetes: fix generated kubeconfig 2021-05-26 23:39:48 -07:00
computing nixos/services/foldingathome: Add an option to set the "nice level" (#122864) 2021-05-18 18:44:52 +02:00
continuous-integration treewide: remove nand0p as maintainer 2021-05-17 01:50:49 +02:00
databases nixos/firebird: updated firebird package 2021-05-23 10:53:00 -03:00
desktops nixos/flatpak: Remove guiPackages internal option 2021-05-18 14:06:23 +02:00
development python3Packages.scikitlearn: rename to scikit-learn 2021-05-17 17:41:36 +07:00
display-managers
editors
games nixos/terraria: open ports in the firewall 2021-05-20 12:11:08 -07:00
hardware nixos/spacenavd: run as user service 2021-05-22 12:48:12 +02:00
logging
mail nixos/mailman: fix documentation option links 2021-05-14 18:33:24 +02:00
misc Revert "nixos/nix-daemon: fix sandbox-paths option" 2021-05-24 10:51:02 +02:00
monitoring nixos/prometheus: init pihole-exporter 2021-05-24 04:05:59 +02:00
network-filesystems nixos: convert netatalk to settings-style configuration 2021-05-20 17:39:28 +02:00
networking Merge pull request #124263 from Lassulus/solanum3 2021-05-25 20:51:32 +02:00
printing
scheduling
search
security nixos/bitwarden_rs: fix startup on 32 thread machines 2021-05-24 04:36:17 +00:00
system nixos/self-deploy: init (#120940) 2021-05-18 08:29:37 -07:00
torrent nixos/services/torrent/transmission.nix: add a missing apparmor rule 2021-05-05 22:47:52 +02:00
ttys
video nixos/mirakurun: add polkit rule for smart card access (#122066) 2021-05-12 13:57:49 -04:00
wayland
web-apps nixos/wordpress: regenerate secret keys if misspelled key name is found 2021-05-29 04:24:42 +02:00
web-servers nixos/nginx: add option rejectSSL exposing ssl_reject_handshake 2021-05-24 15:10:09 +02:00
x11 nixos/gnome: Do not enable metacity by default 2021-05-28 14:57:36 +02:00