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
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
cryptpad.nix
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
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
grocy.nix grocy: 2.7.1 -> 3.0.0 2020-12-22 16:00:33 +01:00
grocy.xml
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
jitsi-meet.nix
jitsi-meet.xml
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
mastodon.nix nixos/mastodon: use rails command instead of rake 2021-05-21 15:04:12 +02:00
matomo-doc.xml
matomo.nix
mattermost.nix
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
pgpkeyserver-lite.nix
plantuml-server.nix
restya-board.nix
rss-bridge.nix
selfoss.nix
shiori.nix treewide: remove duplicates SystemCallFilters 2021-05-13 15:44:56 +03:00
sogo.nix
trac.nix
trilium.nix treewide: remove kampka as maintainer (#109813) 2021-01-18 21:23:49 +01:00
tt-rss.nix
virtlyst.nix
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
zabbix.nix nixos/zabbixWeb: include DOUBLE_IEEE754 directive 2020-12-18 13:15:55 -05:00