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

Security defaults of a bundle

The security state a bundle should hand over - what Exponential already does by default, the settings a bundle should decide (file modes, debug output, CheckValidity, cookies, HTTPS and headers, trusted proxies, demo…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/bundlers/security-defaults-of-a-bundle.md

On this page

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

  1. What Exponential already does
  2. What a bundle should decide
  3. What must never ship
  4. The go-live checklist for bundles
  5. Security problems after release

What Exponential already does

From the defaults table in 13.1 The layers at a glance:

LayerDefault
Rewrite rulesstrict list, PHP below the root refused
Secretsgenerated into settings/override
Debug outputoff
Admin siteaccesssign-in required
Passwords10 characters, bcrypt
Session cookieHttpOnly, SameSite=Lax, Secure over HTTPS
Form tokensactive
Forwarded headersbelieved only from 127.0.0.1 and ::1
Security headersfive headers on every page
Auditon

What a bundle should decide

TopicDecisionWhere
File modesThe shipped [FileSettings] modes are 0777/0666; site.ini recommends 0770/0660 with the right user and groupFile permissions and var/ ownership
Ownershipone user (or one group) writes var/ and settings/; workers never rootthe same page
HTTPSon every name, HTTP redirected; HSTS raised once stable13.9
Cookies[Session] CookieSecure=true on an HTTPS-only bundle13.7
ProxiesTrustedProxies[] lists exactly the proxies your bundle puts in front13.10
Administrationits 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 deploymentManagedByDeployment
Weak passwordsadd your product name to WeakPasswordList[]Default credentials

What must never ship

  • A filled settings/override/ or settings/siteaccess/ from your build (First boot and install once).
  • A kickstart.ini with passwords; var/log/initial-admin-password; logs of your build.
  • EXP_DEMO_MODE=1 in any unit, pool, image or crontab of a bundle for real sites (Demo mode must be off).
  • [DebugSettings] DebugOutput=enabled or PHP display_errors=On.
  • Web server rules that serve settings/, var/, .git or composer.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.json do not return the file.
  • To do: settings/override/ has mode 0640 or stricter after the install.
  • To do: [DebugSettings] DebugOutput=disabled; display_errors=Off.
  • To do: [SiteAccessSettings] CheckValidity=false after the install (the installer writes it).
  • To do: No Demo mode banner.
  • To do: ezformtoken active.
  • To do: Security headers present.
  • To do: One user or group writes var/ and settings/; 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

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