nixpkgs/nixos/modules/services/web-apps
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
..
atlassian treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
icingaweb2 nixos/icingaweb2: Fix php packages 2020-10-15 16:16:33 +02:00
ihatemoney nixos/ihatemoney: run uwsgi emperor as normal user 2021-01-10 19:26:42 +01:00
bookstack.nix nixos/bookstack: use umask before echoing & clear cache before starting 2021-05-03 16:27:38 +02:00
calibre-web.nix nixos/calibre-web: init module 2021-03-27 14:43:33 +03:00
convos.nix nixos/convos: init 2020-06-22 13:58:34 +02:00
cryptpad.nix nixos/cryptpad: add module 2019-06-07 13:02:51 +02:00
discourse.nix nixos/discourse: Assert deployed PostgreSQL version 2021-05-28 22:16:10 -07:00
discourse.xml nixos/discourse: Add NixOS manual entry 2021-04-05 13:55:57 +02:00
documize.nix treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
dokuwiki.nix Merge pull request #115228 from siraben/unzip-buildInputs 2021-03-06 13:30:43 -05:00
engelsystem.nix doc: improve 20.09 release notes 2020-10-27 21:11:22 +01:00
galene.nix galene: 0.2 -> 0.3 and bugfix of the associated module 2021-02-19 21:26:08 +01:00
gerrit.nix utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
gotify-server.nix nixos/gotify: init module and test 2019-10-25 16:19:41 +02:00
grocy.nix grocy: 2.7.1 -> 3.0.0 2020-12-22 16:00:33 +01:00
grocy.xml nixos/grocy: init module 2020-02-09 21:55:27 +01:00
hedgedoc.nix treewide: update 21.03 to 21.05 2021-02-12 14:12:48 -08:00
hledger-web.nix nixos/hledger-web: set capabilites as boolean 2021-03-26 13:45:13 +01:00
jirafeau.nix nixos/jirefeau: add services.jirafeau module 2020-02-18 09:37:44 -08:00
jitsi-meet.nix nixos/jitsi-meet: add docs 2020-09-09 22:18:20 -07:00
jitsi-meet.xml nixos/jitsi-meet: add docs 2020-09-09 22:18:20 -07:00
keycloak.nix nixos/keycloak: Split certificatePrivateKeyBundle into two options 2021-05-21 13:09:38 +02:00
keycloak.xml nixos/keycloak: Split certificatePrivateKeyBundle into two options 2021-05-21 13:09:38 +02:00
limesurvey.nix nixos/httpd: code cleanup 2020-01-31 20:39:12 -05:00
mastodon.nix nixos/mastodon: use rails command instead of rake 2021-05-21 15:04:12 +02:00
matomo-doc.xml matomo: Fix consistency check 2019-11-18 14:52:47 +01:00
matomo.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
mattermost.nix nixos/*: use $out instead of $bin with buildGoPackage 2020-04-28 20:30:29 +10:00
mediawiki.nix nixos/mediawiki: add name type 2021-01-31 11:28:04 +01:00
miniflux.nix Merge pull request #111030 from cript0nauta/miniflux-sudo 2021-03-12 20:42:09 -05:00
moinmoin.nix nixos/moinmoin: fix module by switching to eventlet worker 2020-12-31 13:58:17 +01:00
moodle.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
nextcloud.nix nixos/nextcloud: Rename services.nextcloud.nginx.disableImagemagick to services.nextcloud.nginx.enableImagemagick 2021-04-22 02:17:12 +02:00
nextcloud.xml nextcloud21: init at 21.0.0, set as default version 2021-02-22 13:04:42 +01:00
nexus.nix nexus: 3.18.1-01 -> 3.19.1-01 2019-10-28 21:34:55 +01:00
pgpkeyserver-lite.nix nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
plantuml-server.nix plantuml-server: init at 1.2020.14 2020-07-08 19:45:16 +02:00
restya-board.nix restya-board: fix configuration option and switch to file based password provisioning 2019-12-23 05:45:15 +01:00
rss-bridge.nix nixos/rss-bridge: init 2020-08-13 19:51:30 +02:00
selfoss.nix treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
shiori.nix treewide: remove duplicates SystemCallFilters 2021-05-13 15:44:56 +03:00
sogo.nix sogo: remove SOGoZipPath 2020-08-17 12:15:16 +02:00
trac.nix nixos/trac: service init 2019-11-03 17:24:08 +01:00
trilium.nix treewide: remove kampka as maintainer (#109813) 2021-01-18 21:23:49 +01:00
tt-rss.nix nixos: remove StandardOutput=syslog, StandardError=syslog lines 2020-08-13 18:49:15 +02:00
virtlyst.nix treewide: Switch to system users 2019-10-12 22:25:28 +02:00
whitebophir.nix nixos/whitebophir: expose new option provided by whitebophir 1.8.0 2021-02-10 23:33:02 +01:00
wiki-js.nix wiki-js: init at 2.5.191 2021-03-20 20:43:21 +01:00
wordpress.nix nixos/wordpress: regenerate secret keys if misspelled key name is found 2021-05-29 20:16:47 +00:00
youtrack.nix nixos/treewide: Fix incorrectly rendered examples 2020-04-02 07:49:25 +02:00
zabbix.nix nixos/zabbixWeb: include DOUBLE_IEEE754 directive 2020-12-18 13:15:55 -05:00