Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Secrets in settings/override

For administrators and hosting teams of public sites - which files in settings/override hold secrets (database password, audit keys, mail preference secret, Velocity token, 2FA encryption key), what happens if they are…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/security/secrets-in-settings-override.md

On this page

Secrets in settings/override

This page is for administrators, hosting teams and developers. Several files in settings/override/ hold secrets that the installer writes or the code generates on first use. Losing them breaks things; leaking them opens the site (13.3 Secrets in settings/override).

Contents

  1. The files
  2. Protecting them
  3. Moving an installation
  4. Related pages

The files

FileSecretIf lost or leaked
site.ini.append.phpdatabase user and passworddatabase access
audit.ini.append.phpaudit signing key and pseudonym keyold archives can no longer be verified; pseudonyms can be reversed
mailpreferences.ini.append.phpthe site secret ([SecretSettings] TokenSecret)unsubscribe and preference links stop working, suppression entries stop matching, every user is signed out once
velocity.ini.append.php[DashboardSettings] Token when setremote access to server figures and /Q/phpinfo
sevenxauthentication2fa.ini.append.php[TOTPSettings] SecretKeyeveryone must set up the authenticator app again
var/log/initial-admin-password (not in settings)the generated first administrator passwordthe administrator account; delete it after the first sign-in

Protecting them

  1. Never commit settings/override/ to version control and never copy it to a public place.
  2. Mode 0640 or stricter, owner the site's user (or root), group the site's group. Since 6.0.15 saves from the administration or exp:ini keep the file's mode and create new files 0640. Check that nothing is world-writable: find settings extension/*/settings -perm -o+w must print nothing.
  3. Back them up as secrets, encrypted, together with the database.
  4. Give setup/setup (settings views) only to administrators; the administration and exp:ini mask secret values.
  5. With ManagedByDeployment, the administration cannot write settings at all; generated keys are still written.
  6. Keys from a secrets store: the audit can take its keys from settings you write ([AuditKeySettings] GenerateKeys=disabled) (4.6 Keys).

Moving an installation

Copy settings/override/ with every move to another machine. A copy started without mailpreferences.ini.append.php generates a new site secret on its first mail or sign-in, and old links and suppression entries no longer match; copying the file in afterwards does not help for what was sent in between.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x