nixpkgs/nixos/modules/services
Martin Weinelt f4d6d51a09 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>
(cherry picked from commit 724ed08df02546fea2ab38613d615dd47461528c)
2021-05-29 20:16:47 +00: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 Merge pull request #104420 from danielfullmer/syncoid-perm-fix 2021-05-22 17:57:56 +02:00
blockchain/ethereum nixos/geth: initial service 2021-02-23 19:28:51 +01:00
cluster Fix description for services.kubernetes.addonManager.enable (#71448) 2021-05-19 13:49:27 -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 clickhouse: 20.11.4.13-stable -> 21.3.11.5-lts 2021-05-19 14:08:46 -07: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 nixos/dendrite: remove (#124524) 2021-05-27 10:41:05 +02:00
monitoring Merge pull request #122833 from helsinki-systems/feat/prometheus-metric-relabel 2021-05-21 23:13:41 +02:00
network-filesystems nixos: convert netatalk to settings-style configuration 2021-05-20 17:39:28 +02:00
networking nixos/wireguard: Remove .path systemd unit for privkey. Fixes #123203 2021-05-28 18:28:35 -07: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-28 11:36:54 -07: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 20:16:47 +00:00
web-servers Merge pull request #122825 from Izorkin/update-duplicates-systemcallfilters 2021-05-17 12:06:06 +01:00
x11 Merge remote-tracking branch 'origin/master' into staging-next 2021-05-22 18:19:10 -07:00