Member-only story

Spring Boot & Infisical | Managing your sensitive configuration

Egor Voronianskii
4 min readMay 30, 2024

Hello everyone! In this article, I’ll show you how to employ Infisical in your Spring Boot application.

Why Infisical?

Most of my projects utilize HashiCorp Vault to store sensitive data such as database usernames and passwords.

But last year, HashiCorp changed Terraform’s license to non-open source. This could also happen to Vault, or not.

The second reason why I chose Infisical for this article is because IBM acquired Terraform this year.

Introduction

Like the HashiCorp Vault, Infisical is a secret management platform. Let’s start by starting up the Infisical instance locally with the docker-compose file provided by the documentation. First, we need to download it with the following command.

curl -o docker-compose.prod.yml https://raw.githubusercontent.com/Infisical/infisical/main/docker-compose.prod.yml

The second step is to get the .env file. We can do it by command provided by the documentation.

  curl -o .env https://raw.githubusercontent.com/Infisical/infisical/main/.env.example

Now we can start an instance of Infisical.

docker-compose -f docker-compose.yml up

After that, you should see this screen at http://localhost:8080

--

--

Egor Voronianskii
Egor Voronianskii

Written by Egor Voronianskii

I am a Software Engineer, JVM enthusiast, cat - lover, part-time surfer.

No responses yet