Many of the systems we run for ourselves and for customers are built on Laravel and related technologies. This page explains how we keep those applications secure - from the way we write code to how we deploy it on our Cultrix Cloud hosting platform.
The aim is simple: applications should behave themselves, protect data, and stay maintainable over time.
Our development stack
We primarily build on:
- Laravel for application logic and APIs
- Statamic and Laravel Filament for content and admin interfaces
- PHP, MySQL and related technologies on our Cultrix Cloud platform
- Git-based source control and deployment workflows
Internal systems such as Control, Asset Directory and Washplant follow the same principles as customer-facing applications, so improvements in one area benefit all.
Secure-by-design principles
Our secure development standard for Laravel is based on a few steady principles:
- Least privilege in code. Applications should only have access to what they genuinely need.
- Separation of concerns. Clear layers for data access, business logic and presentation.
- Defence in depth. Validation, authorisation and protection at multiple levels.
- No secrets in source control. Configuration and credentials are kept out of the codebase.
- Secure defaults. We favour secure framework defaults rather than bespoke shortcuts.
This is backed up by a written secure coding standard for Laravel that our developers are expected to follow.
How we build and ship software
Our development lifecycle is intentionally straightforward, so it’s easy to follow and easy to audit.
1. Plan and design
- Requirements gathered with security and privacy in mind from the start.
- Data flows and trust boundaries considered as features are designed.
- Decisions recorded in tickets or project documentation.
2. Build
- Developers follow our Laravel secure coding standard.
- Input validation and output encoding are implemented consistently.
- Authorisation checks are carried out at controller and/or policy level.
- Logging is added where it will help with troubleshooting and security investigations.
3. Review and test
- Changes are committed to Git and reviewed before merging into main branches.
- Peer review is used to catch mistakes and share knowledge.
- Automated and manual tests are run as appropriate for the application.
- Security-focused checks are carried out for higher-risk changes.
4. Deploy
- Code is deployed initially to a staging environment on Cultrix Cloud.
- Configuration is managed via Laravel environment files (.env) on the server, not in the repository.
- Once validated, changes are promoted to production via controlled deployment steps.
5. Maintain and improve
- Dependencies are kept under review and updated regularly.
- Security advisories are monitored for the stack we use.
- Issues and improvements are tracked, prioritised and implemented in future releases.
Secrets and configuration management
Application secrets - such as API keys, database passwords and integration credentials - are handled carefully:
- Secrets are stored in Laravel
.envfiles on the live and staging servers, not in source control. - Access to these servers is limited to authorised Cultrix engineers.
- If a secret is lost or compromised, it is regenerated in the relevant system and updated on the server.
- Configuration changes follow the same controlled deployment process as code where appropriate.
This approach reduces the risk of credentials leaking through repositories, backups or development machines.
Environments: live and staging
For internal systems and more complex customer applications we maintain at least two environments:
- Staging: used for testing new features, updates and configuration changes before they go live.
- Production: the live environment used by end-users and customers.
Staging environments are typically populated with test data or carefully controlled subsets of live data, depending on the need and sensitivity of the application. Access to staging and production is restricted and logged.
Dependencies and third-party code
Modern software relies on third-party libraries and frameworks. We manage this in a controlled way:
- We prefer well-supported, widely used packages.
- Composer dependencies are reviewed and updated regularly.
- Security advisories for Laravel and key packages are monitored.
- Deprecated or unmaintained packages are phased out where feasible.
We also make use of penetration testing and vulnerability scanning against our hosted applications to validate that the overall stack is behaving as intended.
Application hosting and runtime security
Applications we build are typically hosted on our Cultrix Cloud platform, which is covered on our Network and system security page. In short, that environment provides:
- hardened Linux servers with CloudLinux and cPanel
- isolation between customers
- web application protections such as Imunify360
- backups and restore capabilities
For some projects, applications may be hosted in other environments at the customer’s request; in those cases we work with the customer to ensure the hosting platform is appropriately secured.
Shared responsibilities
Application security is a shared effort:
- Cultrix is responsible for secure coding, deployment, hosting configuration and patching where we host or manage the application.
- Customers are responsible for deciding what data is collected and how it is used within their business.
- Customers control access to their own users and should use strong authentication practices.
Where you need specific wording for a shared responsibility model, for example for your own policies, we can assist.
Questions about application security
If you’d like to discuss a particular application, need details for a security questionnaire, or want help improving an existing system, please contact us. We can walk through the architecture, controls and options in as much detail as you need.