In order to secure your Firestore production instance, you need to attach security rules to your database. But how to test them?

TL;DR: A full working example is available on my GitHub here: https://github.com/maxday/firestore-test-security-rules-quarkus

In order to secure your Firestore production instance, you need to attach security rules to your database. But how to test them?

In this article, we will see — step by step — how to write a simple Quarkus application that will run integration tests against your security rules in a Dockerized environment thanks to TestContainers.


You may have encounter this error :

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

This is due to the lack of libstdc++.so.6 as documented here : https://github.com/quarkusio/quarkus-images/issues/61

One workaround is to add this library (with two other needed dependencies)

Here is the Dockerfile :

Here is the full working example on GitHub : https://github.com/maxday/quarkus-native-distroless

Hope this helps !

https://design.jboss.org/quarkus/index.htm


In this article we will see, with a single git push, how your Quarkus app will go through a GitHub Actions pipeline, with very few configuration to get deployed on Cloud Run.

TL;DR : Try it here : https://quarkus-demo-actions-wz5zyp7liq-uc.a.run.app/hello and browse the code here : https://github.com/maxday/quarkus-demo-actions

We will go through the following four steps :

1- Build the app to produce a native executable.

2- Embed it into an ultra lightweight distroless Docker image (41.7MB).

3- Push this image to your container registry.

4- Deploy this image on Google Cloud Run.

Ready? Let’s go! 💪

Step 1 : build the app

If you don’t already have…


The open-source tool is available right here : https://maxday.github.io/trending/#JavaScript

Before diving into the process of building my own tool, I would like to focus on why I did this side-project.

IT is changing fast, very fast, and I need to make sure to that my skills stay up-to-date regarding new technologies, methodologies and processes. As a consequence, I often browse trending projects on Github but I wanted something more customized, very often updated and totally free. That’s why I started this project.

Spoiler alert : this article is more about the architecture part of this tool and less about the…

Maxime DAVID

12-Factor App believer, Speaker, Open-Source enthusiast, Principal Web Architect at National Bank of Canada

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store