Security defaults of a bundle
This page is for bundlers who want their bundle to be safe when it is switched on, before the recipient has read anything. The reference is Chapter 13: Security hardening for production; the overview for administrators is Security hardening.
Contents
- What Exponential already does
- What a bundle should decide
- What must never ship
- The go-live checklist for bundles
- Security problems after release
What Exponential already does
From the defaults table in 13.1 The layers at a glance:
| Layer | Default |
|---|---|
| Rewrite rules | strict list, PHP below the root refused |
| Secrets | generated into settings/override |
| Debug output | off |
| Admin siteaccess | sign-in required |
| Passwords | 10 characters, bcrypt |
| Session cookie | HttpOnly, SameSite=Lax, Secure over HTTPS |
| Form tokens | active |
| Forwarded headers | believed only from 127.0.0.1 and ::1 |
| Security headers | five headers on every page |
| Audit | on |
What a bundle should decide
| Topic | Decision | Where |
|---|---|---|
| File modes | The shipped [FileSettings] modes are 0777/0666; site.ini recommends 0770/0660 with the right user and group | File permissions and var/ ownership |
| Ownership | one user (or one group) writes var/ and settings/; workers never root | the same page |
| HTTPS | on every name, HTTP redirected; HSTS raised once stable | 13.9 |
| Cookies | [Session] CookieSecure=true on an HTTPS-only bundle | 13.7 |
| Proxies | TrustedProxies[] lists exactly the proxies your bundle puts in front | 13.10 |
| Administration | its own host where the bundle allows it (exp:install --access=host --host ... --admin-host ...) | 13.5 |
| Settings from the browser | [ConfigurationSettings] ManagedByDeployment=enabled for bundles managed by deployment | ManagedByDeployment |
| Weak passwords | add your product name to WeakPasswordList[] | Default credentials |
What must never ship
- A filled
settings/override/orsettings/siteaccess/from your build (First boot and install once). - A
kickstart.iniwith passwords;var/log/initial-admin-password; logs of your build. EXP_DEMO_MODE=1in any unit, pool, image or crontab of a bundle for real sites (Demo mode must be off).[DebugSettings] DebugOutput=enabledor PHPdisplay_errors=On.- Web server rules that serve
settings/,var/,.gitorcomposer.json. - Private keys or tokens in extensions: exports refuse "an extension that holds a secret value or key material", and so should your build.
The go-live checklist for bundles
Apply 13.16 Go-live checklist to the installed bundle in your test environment. The items a bundle can settle before release:
- To do:
/.git/config,/settings/site.ini,/composer.jsondo not return the file. - To do:
settings/override/has mode0640or stricter after the install. - To do:
[DebugSettings] DebugOutput=disabled;display_errors=Off. - To do:
[SiteAccessSettings] CheckValidity=falseafter the install (the installer writes it). - To do: No Demo mode banner.
- To do:
ezformtokenactive. - To do: Security headers present.
- To do: One user or group writes
var/andsettings/; no world-writable files; workers never root.
The rest (personal accounts, HTTPS certificates, mail, audit alert recipients, the update routine) belongs to the recipient; list it in your getting-started text.
Security problems after release
- A vulnerability in Exponential: report it privately to [email protected], "not in the public issue tracker"
(
SECURITY.md); fixes arrive in the next 6.0.x release. - Your bundle then needs a release with that version (Updates and upgrade paths).
- Partners: Escalations and security issues.
Related pages
- Hardening for hosts
- Security responsibilities
- Default credentials and first sign-in
- 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.