Hearthwood Understory
Many web applications are built using a combination of frameworks, external libraries and plug-ins. These provide functionality and speed up development. At the same time, the application becomes dependent on the quality, updates and compatibility of those components. The user interface, business logic and database access often run within the same environment, under the same system user. The separation of these responsibilities then exists mainly in the code. A vulnerability in one component can therefore provide access to more data and functionality than that component needs. Applications also regularly use external services, for example for authentication, email, analytics or AI. This can result in data being processed outside the application's own environment. Understanding and controlling where that data goes, who can access it and what is retained requires attention for each service.
Hearthwood Understory enforces boundaries beyond the code too.
Hearthwood Understory combines its own software core with built-in services and a managed environment. The core is developed without external frameworks, libraries or plug-ins. Underneath, we use standard system software such as Linux, Apache, PHP and MySQL.
The client, which runs the user interface, is separated from the backend that executes business rules and processes data. This separation is also enforced through separate system users and access rights. The client communicates with the backend through a proxy and has no direct access to the database or key management.
Services such as authentication, encryption, key management and mail processing also have their own responsibilities and limited access. Data protection is therefore part of the environment on which your application builds.
External tools and services can connect to this environment. For each integration, you decide what access is needed and which data may leave the environment. You can use modern development tools while keeping your application's boundaries explicit.
Understory thus provides a cohesive foundation on which to develop business functionality, with security and privacy included from the core.
How does it fit together?
The architecture consists of separate applications, centralized authentication, centralized key management, encrypted storage, and controlled communication.
Data protection
Each application processes only the data needed for its function and receives only the corresponding access permissions. Encryption is the default for storage. Only operational data that needs to be stored in readable form and is suitable for this is stored unencrypted in the database.
Communication
Systems communicate through controlled connections: encrypted over the network or locally through protected Unix sockets. Systems gain access using short-lived tokens. Where necessary, separate, task-specific components handle processing.
Authentication
Applications do not manage login credentials themselves. Authentication takes place through a central identity and authentication system. Sessions expire after inactivity and have a limited lifetime.
Key management
Encryption keys, passwords, and other access credentials are managed centrally and made available only to systems that need them. Keys are tied to both the system and the application.
Traceability
Relevant actions, access, and errors are recorded within each application in audit logs, access logs, and error logs. When systems exchange data, we can correlate the associated actions. This allows us to establish what happened and which user or system was responsible.
Separate storage
Applications do not store files, send or receive emails, or contain user accounts themselves. Files and payloads are stored centrally in encrypted form, but are available only to the responsible system.
Which components make this work?
Several components have been developed for specific tasks. These components can also be used independently.
Hearthwood Fence: Centralized identity and authentication with Single Sign On
Hearthwood Amber: Encryption of sensitive data, payloads, and files
Hearthwood Burr: Centralized management of encryption keys and access credentials for systems and applications
Hearthwood Mycelium: Controlled receipt and sending of email
Hearthwood Cambium: Centralized file management with encrypted storage
Hearthwood Watch: Monitoring of server status, services and outstanding alerts
We use the same foundation for APIs, task-specific workers, and system services. For example, Hearthwood Burr runs as a system service accessible through a Unix socket. Separate sending and receiving workers handle email transfers between Hearthwood Mycelium and the applications. Our application backends are APIs built on that same foundation.
What does this mean for application development?
The supporting services are already in place; developers focus on business functionality, with room for their own development approach. The architecture therefore changes little about application development itself, but it provides additional benefits and assigns responsibilities where they belong.
Gate records an outgoing message and leaves further processing to the worker and Mycelium. The user does not have to wait for email delivery. If email processing is temporarily unavailable, Gate can keep working and the message can be processed later.
Mycelium has a clearly defined responsibility: receiving, checking, processing and sending messages. The receiving application determines what a message means for a case or business process. Mycelium therefore does not manage customer cases or mailboxes; after transfer, messages can be deleted according to the cleanup policy.
What do we build on it ourselves?
On this foundation, we build our own back office, custom solutions for customers, and our software products, including Hearthwood Gate, Hearthwood Canopy, Hearthwood Trail, and Hearthwood Clearing.
Software that feels familiar, with data protection as its foundation. Users can simply do their work without having to deal with the underlying technology.