<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Diego Lendoiro on Medium]]></title>
        <description><![CDATA[Stories by Diego Lendoiro on Medium]]></description>
        <link>https://medium.com/@dlen?source=rss-c5ef3faed42e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Eaxu7O1jJBd2zvvj.</url>
            <title>Stories by Diego Lendoiro on Medium</title>
            <link>https://medium.com/@dlen?source=rss-c5ef3faed42e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:39:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dlen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Improving passbolt security with distroless containers]]></title>
            <link>https://medium.com/passbolt/improving-passbolt-security-with-distroless-containers-3ed58e5791de?source=rss-c5ef3faed42e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ed58e5791de</guid>
            <category><![CDATA[bazel]]></category>
            <category><![CDATA[passbolt]]></category>
            <category><![CDATA[distroless]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Diego Lendoiro]]></dc:creator>
            <pubDate>Mon, 17 Aug 2020 08:20:32 GMT</pubDate>
            <atom:updated>2021-10-08T06:21:42.482Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dYiFvqbFYCrdTqeueSKWg.png" /></figure><h4>It’s undeniable that containers have had a big impact on today’s software engineering.</h4><p>From infrastructure to deployments and development, containers introduced many benefits and challenges along the way. Some of the challenges we found at passbolt revolve around how to harden the containers and how to make them smaller.</p><p>Nowadays docker images look more like small virtual machines rather than just an encapsulated process running in a container. This is usually convenient for the vast majority of vendors. However, reducing the size of passbolt container images would:</p><ul><li>Reduce the disk usage.</li><li>Improve build times on CI.</li><li>Minimize network usage when pulling and pushing images.</li><li>Decrease the attack surface (by reducing the number of services).</li><li>Simplify the patching process (by reducing the number of dependencies).</li><li>Enhance signal to noise ratio when running vulnerability scanners (as false positives will be less likely).</li><li>Help establish the provenance of what it is installed in your container to just what you need.</li></ul><p>Most GNU/linux distributions publish the so called ‘-slim’ images which is already a good approach to reduce the dependencies your image ships. The alpine container images go in this same direction. However, <a href="https://github.com/docker-library/php/issues/592">alpine didn’t work well for us in the past</a> so we were looking for something else to run a very small production workload.</p><h4>Enter minimal “distroless” images</h4><p>The <a href="https://github.com/GoogleContainerTools/distroless">distroless</a> project initially started by Google provides a way to build docker images using a software building tool called <a href="https://bazel.build/">bazel</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zlwILkqJ3xT84weX4gIItA.png" /><figcaption>{Fast, Correct} — Choose two</figcaption></figure><p>As per the distroless project’s readme:</p><blockquote>”Distroless” images contain only your application and its runtime dependencies. They do not contain package managers, shells or any other programs you would expect to find in a standard Linux distribution.</blockquote><p>The framework that the distroless project proposes had some benefits for us:</p><ul><li>It is based on debian packages.</li><li>We can continue using the nginx / php-fpm stack which is known for us.</li><li>As it is based on debian packages we still rely on a solid project that will continue the patching of dependencies passbolt requires.</li><li>We can take advantage of our recently published <a href="https://download.passbolt.com/ce">debian package</a>.</li><li>As it forces you to pin debian snapshots, builds are deterministic.</li></ul><p>It had some drawbacks:</p><ul><li>We had to build what they call “lang image” as there was no php-fpm distroless image. A <a href="https://github.com/GoogleContainerTools/distroless/pull/563">pull request</a> is pending approval.</li><li>We introduce a new tool to learn / dependency with bazel.</li></ul><p>The concept of the distroless images is that deb files are nothing more than a compressed file that contains some files and a directory structure.</p><p>Think about an empty file system where you untar your debs. We are setting a container that is just one process running so we just need to untar in such container as many dependencies to make this process to run without errors. As long as your process finds all the libraries on the expected locations you are good to go.</p><p>So first we needed to create a base php-fpm distroless image or what they call it a “lang image”. In our case the php-fpm image contained the minimum and what we thought were popular extensions:</p><ul><li>php-cli or php-fpm binary as entrypoint</li><li>Php extensions: php-json, php-mysql, php-common (package that contains a bunch of common extensions) and some more. The list is <a href="https://github.com/passbolt/distroless/blob/feature/php-fpm/experimental/php-fpm/BUILD#L18">here</a></li><li>Configuration files:<br> — A /etc/passwd file with an entry for www-data<br> — A <a href="http://www.conf/">www.conf</a> pool to set up some parameters of the php-fpm process</li></ul><p>That’s it! Do not expect to find anything else such as bash or any other shell or common linux utilities.</p><p>Then we used this php-fpm image to build our passbolt-fpm images on top of it. During the process we though that with just a distroless FPM version of passbolt would be enough. However, we realized soon enough that users would need some extra container images for admin tasks such as running migrations, create users and other command line utilities.</p><p>Both passbolt-fpm and passbolt-cli container images are very similar with a few different packages:</p><ul><li>Gnupg</li><li>Extra php-extensions: php-gnupg, php-intl, php-redis</li><li>Bash (only for passbolt-cli image)</li></ul><h4>Image sizes</h4><p>Comparing the sizes the reduction is quite big:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*F-MIWZsvoJ1dEINn9dZtSg.png" /></figure><p>On the above chart we have used:</p><ul><li>passbolt/passbolt current docker image based on php:7.3.21-fpm image</li><li>passbolt_debian_buster local image created based on debian:buster-slim image</li><li>bazel/experimental/passbolt-fpm distroless image</li></ul><h4>Vulnerability scan</h4><p>For the tests we used <a href="https://github.com/aquasecurity/trivy">aquasec’s trivy</a> and we obtained the following results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*eBLeFhVwgslSsMYcLiMq9w.png" /></figure><p>Vulnerability scanning is usually a very noisy step, assessing if a library that is bundled in your container is producing a risk or not is time consuming. Reducing the number of positives helps teams to assess easier if an image can be promoted to production environments.</p><h4>Hands on test</h4><p>If all the above sounds nice to you we have published the code to build all the distroless images:</p><ul><li><a href="https://github.com/passbolt/distroless/tree/feature/php-fpm/experimental/php-fpm">php-fpm distroless</a></li><li><a href="https://github.com/passbolt/distroless/blob/feature/passbolt-fpm/experimental/passbolt-fpm/BUILD">passbolt-fpm distroless</a></li><li><a href="https://github.com/passbolt/distroless/blob/feature/passbolt-fpm/experimental/passbolt-cli/BUILD">passbolt-cli distroless</a></li></ul><p>We also have published a docker “labs” repo where you can find all the docker images already built:</p><ul><li><a href="https://hub.docker.com/repository/docker/passbolt/labs">Passbolt labs docker repo</a></li></ul><p>And we also branched off our official passbolt-docker repo with a docker-compose.yml you can use to launch the whole stack of distroless passbolt images:</p><ul><li><a href="https://github.com/passbolt/passbolt_docker/tree/feature/distroless">Docker-compose for distroless</a></li></ul><p>This way you will be able to launch the whole passbolt stack using docker-compose. Keep in mind there are some caveats described on the readme.</p><h4>Future work</h4><p>We are aware there are other solutions to make php images smaller and we hope to publish more articles on the topic in the future.</p><p>Our plan is to continue pushing this approach on our hosted solutions and keep it always open for the community to build better tailored solutions and use them on premises if they think it fits their use cases.</p><p>As always your feedback is very valuable for us, drop us a line on the <a href="https://community.passbolt.com/">community forum</a> or in the <a href="https://github.com/passbolt/distroless">passbolt distroless repo</a>.</p><h4>References</h4><ul><li><a href="https://github.com/GoogleContainerTools/distroless">Official distroless repo</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ed58e5791de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/passbolt/improving-passbolt-security-with-distroless-containers-3ed58e5791de">Improving passbolt security with distroless containers</a> was originally published in <a href="https://medium.com/passbolt">passbolt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Passbolt debian package]]></title>
            <link>https://medium.com/passbolt/passbolt-debian-package-ad073b98e17f?source=rss-c5ef3faed42e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad073b98e17f</guid>
            <category><![CDATA[debian]]></category>
            <category><![CDATA[passbolt]]></category>
            <category><![CDATA[packaging]]></category>
            <category><![CDATA[installation]]></category>
            <dc:creator><![CDATA[Diego Lendoiro]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 11:36:01 GMT</pubDate>
            <atom:updated>2021-10-08T06:16:33.947Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vtob3uaCNs81OIUzOiFXXA.png" /></figure><p>We know, Installing passbolt is a quite hot topic. You just need to go in the <a href="https://community.passbolt.com/">community forum</a> to realize:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FJ22vZXH60CuC8l-2FYtFw.png" /><figcaption>Installation issues forum, a place full of sorrow</figcaption></figure><p>At Passbolt we tried to ease the pain of installing our products by releasing a <a href="https://hub.docker.com/passbolt/passbolt">Docker image</a> and, for the people who do not like Docker or can not use Docker, we released some<a href="https://github.com/passbolt/passbolt_install_scripts"> Bash install scripts</a>. Still, there are people out there having problems installing passbolt but <em>don’t you worry child, see passbolt has a plan for you </em>🎵<em>.</em></p><p>We feel your pain and in an effort to make things easier for you we started a collaboration with <a href="https://github.com/skarbat">Albert Casals</a> and we have released a <strong>BETA-SOON-TO-BE-PRODUCTION </strong>passbolt debian package.</p><p>We think the package is a way to make passbolt install friendly so people won’t feel the same frustration installing passbolt as with quitting Vim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*WK014lb-a6O1SbF0QeuXbw.png" /><figcaption><a href="https://twitter.com/iamdevloper/status/1041999624775626752">https://twitter.com/iamdevloper/status/1041999624775626752</a></figcaption></figure><h3>Getting started</h3><p>We have published a <a href="https://help.passbolt.com/hosting/install/ce/beta/debian-package.html">help page</a> that goes through one of the installation methods. However, here there is a TL;DR:</p><pre>sudo apt-get update<br>sudo apt-get install \<br>    apt-transport-https \<br>    ca-certificates \<br>    curl \<br>    gnupg-agent \<br>    software-properties-common \<br>    certbot \<br>    python3-certbot-nginx</pre><pre>sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 0xDE8B853FC155581D</pre><pre>echo &quot;deb https://download.passbolt.com/ce/debian buster stable&quot; |\ <br>sudo tee /etc/apt/sources.list.d/passbolt.list<br>sudo apt-get update<br>sudo apt-get install passbolt-ce-server</pre><p>We are not Debian expert packagers so we have not pushed the package to make it to the Debian official repositories (although we followed the Debian way as much as we could). Instead, we created <a href="https://download.passbolt.com/ce">passbolt’s official Debian repository</a>, from which you will get any passbolt upgrades as part of your system upgrade scripts by just adding a line in your <em>/etc/apt/sources.list</em></p><p>During the installation process you will see some screens that will ask you several questions. Currently the Debian package is designed to:</p><ul><li>Create an empty local MariaDB database for later population.</li><li>Create a user with permissions for the newly created database. This is the user passbolt will use later to connect to MariaDB.</li><li>Configure a new Nginx <a href="https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/">server block</a> for passbolt</li><li>Configure SSL through <a href="https://letsencrypt.org/">let’s encrypt</a> or using provided local SSL certificates</li></ul><p>At the moment, passbolt Debian package wizard supports only <strong>Nginx+PHP-FPM</strong> through the wizard but we plan to add support for Apache soon. If the <em>fuego🔥</em> inside you for Apache is too big you can still install passbolt package typing in your terminal:</p><pre><em>DEBIAN_FRONTEND=noninteractive apt-get install \<br>  --no-install-recommends passbolt-ce-server</em></pre><p>and customize your environment manually after the install.</p><p>We have tested the package with different versions of Ubuntu with successful results. However the package is, for now, designed with Debian in mind.</p><p>In the upcoming weeks we will publish more guides on our <a href="https://help.passbolt.com/">help site</a> on how to migrate your custom passbolt installations to an installation managed by the Debian package. Stay tuned to our <a href="https://twitter.com/passbolt">Twitter account</a> for more up-to-date news.</p><p>Keep in mind that this is a beta feature. We would love to hear the feedback from the community Debian experts, <em>connaisseurs</em> and all the regular users interested in passbolt to keep improving our package.</p><p>Enjoy ☮️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad073b98e17f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/passbolt/passbolt-debian-package-ad073b98e17f">📦 Passbolt debian package</a> was originally published in <a href="https://medium.com/passbolt">passbolt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Passbolt sails with Docker]]></title>
            <link>https://medium.com/passbolt/passbolt-sails-with-docker-cb6f928030e?source=rss-c5ef3faed42e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb6f928030e</guid>
            <category><![CDATA[passbolt]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Diego Lendoiro]]></dc:creator>
            <pubDate>Fri, 05 May 2017 14:19:19 GMT</pubDate>
            <atom:updated>2017-05-05T14:32:35.215Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*lx3spUxvk-8d7hfWKZRkhQ.png" /><figcaption>credits: <a href="https://www.yubartas.com/">yubartas.com</a></figcaption></figure><p>Recently we have been working on an <a href="https://hub.docker.com/r/passbolt/passbolt/">updated docker image for passbolt.</a> In this article we wanted to give you a little background around the choices we made when designing this new version.</p><h4>Motivation</h4><p>Passbolt is an open source password manager for teams that aims to be easy to use both for regular and advanced users. Naturally usability was also one of the main objectives for bundling passbolt with docker. We want everyone to be able to ship quickly a stable, fast and small footprint instance.</p><p>The team is currently focused on making Passbolt great <a href="https://twitter.com/passbolt/status/846601193065394176"><em>again</em></a><em>. </em>This means that most of the development time should go torwards fixing bugs or implementing new features. The team have little time left to provide dedicated support for all ecosystems. Therefore shipping an image with Passbolt bundled on it seemed a good approach: more users will be able to run passbolt, disregard their local GNU/Linux distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*3jWeoFb3_2DqZUhTvd1kaA.png" /><figcaption>credits: <a href="http://dockerdocs.org/what-is-docker/">http://dockerdocs.org/what-is-docker/</a></figcaption></figure><h4>Why Docker?</h4><p>Well, this might be a controversial topic since Docker has many lovers and haters. However Docker popularity and growing community can help to generate more interest for passbolt and, by doing so, to obtain more feedback that will ideally trigger more collaboration. For example one of passbolt power user managed to set up the docker image on a raspberry pi and we are looking forward hearing more about this experiment in a short future.</p><h4>The Image</h4><p>Passbolt docker image comes bundled with the following stack:</p><ul><li><a href="https://github.com/passbolt/passbolt_api">Passbolt API</a> with all required dependencies such as php gnupg</li><li>Nginx</li><li>Php-fpm</li></ul><p>Nginx and Php-fpm choices intend to give passbolt users a compromise between performance and resource usage. This strategy allow this image to be used on a variety of scenarios, from development to production.</p><p>Breaking Docker philosophy of one process per container allows us to reduce complexity to set up a running passbolt instance; however, we understand that on certain setups this practice is not acceptable and we are considering to release a php-fpm only setup to provide more flexibility for users that require it.</p><p>What is not bundled in Passbolt docker image:</p><ul><li>MySQL</li></ul><p>In this case the decision to break up data persistence on separate layers was easy. We think that separating the persistence layer from the application layer brings more options in the availability side, providing a more flexible image that adapts to, for instance, already running database nodes.</p><h3>passbolt on Twitter</h3><p>Quick poll: What should be the default configuration for passbolt official docker image when it comes to SSL certificates?</p><p>Unlike many of you requested, passbolt is bundled with a self signed dummy SSL certificate and an automatic gnupg key generation for people that just want to test the project. However it is possible to load your own certificates and gnupg keys via docker volumes. This approach was the simplest to implement and also, we believe, the most flexible.</p><p>Of course, everyone is welcome to contribute to the<a href="https://github.com/passbolt/passbolt_docker"> docker repository</a> with pull requests, or fork it to make any modifications to fit their needs.</p><p>Also, we’d love to hear your comments and receive feedback to improve this project. Please add your comments below or send an email <a href="/service/mailto:contact@passbolt.com">contact@passbolt.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb6f928030e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/passbolt/passbolt-sails-with-docker-cb6f928030e">Passbolt sails with Docker</a> was originally published in <a href="https://medium.com/passbolt">passbolt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>