Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage News Bootable Apps for Immutable Infrastructure and Security

Bootable Apps for Immutable Infrastructure and Security

Axel Fontaine, CEO of Boxfuse, spoke at QCon London 2016 about the "Bootable App" pattern, a bare bones machine image for deploying immutable infrastructure to the cloud. This minimal image covers all layers of the stack, including OS kernel, libraries and runtime environment but still has a small footprint (in the order of megabytes instead of gigabytes), reducing both image upload time and storage costs while also significantly reducing the attack surface on running instances.

Fontaine proposes to include in this minimal image only the strictly necessary components from the lower layers of the stack. The image would then contain the application itself, the application server, the corresponding language runtime and required libraries, and the OS kernel. The figure below shows the typical set of components included in a Bootable App (credit to Axel Fontaine) as opposed to a traditional fully featured image.

Because this minimalist image leaves out many standard OS tools that are common attack points (for instance SSH), the resulting instances bypass both known and future vulnerabilities (Fontaine recommends adopting centralized logging to ensure logs can be accessed long past any instance's demise).

Another immutability benefit for application security is short instances lifetime as they get replaced on every deployment, thus limiting the duration and extent of a successful attack on any particular instance. Fontaine warns about the implications: instances need to be disposable at any point in time (data stores should have their own security and reliability mechanisms) and sessions should be encrypted and signed in client cookies.

Fontaine also recommends minimizing unnecessary complexity, for cost and security efficiency. Examples include setting up complex service discovery tools when an elastic load balancer might be enough; introducing containers (and the associated image management, scheduling and orchestration, volume management and networking solutions) when the application can run and scale using the native services provided by the cloud platform. Organizations should focus on increasing the business value of their applications, simplifying their delivery process and considering the overall cost of running a service (including time to setup and manage complexity), not just the cloud hosting costs.

Rate this Article