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
The files
| File | Secret | If lost or leaked |
|---|---|---|
site.ini.append.php | database user and password | database access |
audit.ini.append.php | audit signing key and pseudonym key | old archives can no longer be verified; pseudonyms can be reversed |
mailpreferences.ini.append.php | the 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 set | remote access to server figures and /Q/phpinfo |
sevenxauthentication2fa.ini.append.php | [TOTPSettings] SecretKey | everyone must set up the authenticator app again |
var/log/initial-admin-password (not in settings) | the generated first administrator password | the administrator account; delete it after the first sign-in |
Protecting them
- Never commit
settings/override/to version control and never copy it to a public place. - Mode
0640or stricter, owner the site's user (or root), group the site's group. Since 6.0.15 saves from the administration orexp:inikeep the file's mode and create new files0640. Check that nothing is world-writable:find settings extension/*/settings -perm -o+wmust print nothing. - Back them up as secrets, encrypted, together with the database.
- Give
setup/setup(settings views) only to administrators; the administration andexp:inimask secret values. - With
ManagedByDeployment, the administration cannot write settings at all; generated keys are still written. - 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.
Related pages
- 13.3 Secrets in settings/override
- File permissions and ownership
- Backups and recovery
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.