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 activemq: add type to configurationDir (#110450) 2021-01-22 11:11:05 +01:00
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 nixos/geth: initial service 2021-02-23 19:28:51 +01:00
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 nixos/greetd: Add greetd module (#118294) 2021-04-06 19:35:32 +00:00
editors treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
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 nixos/promtail: Set TimeoutStopSec=10 2021-04-28 21:02:11 +02:00
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 nixos/printing: simplify filterGutenprint function 2021-03-14 11:59:00 +01:00
scheduling nixos/atd: prefer 'install' over 'mkdir/chmod/chown' 2021-05-01 15:16:19 +02:00
search nixos/elasticsearch-curator: add type 2021-01-27 11:50:19 -08:00
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 nixos/getty: add services.getty.extraArgs 2021-02-26 13:17:04 +01:00
video nixos/mirakurun: add polkit rule for smart card access (#122066) 2021-05-12 13:57:49 -04:00
wayland cage: drop maintainership (#121174) 2021-04-29 18:07:13 +02:00
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