Skip to main content

6 posts tagged with "java"

View All Tags

spring-keyring-config: Spring Boot Secrets from Your OS Keyring (instead of .env)

· 5 min read
Ionuț Barangă
Software Engineer

Close-up of keys

Photo by George Becker on Pexels

Every Spring Boot project I touch eventually grows a .env, an application-local.yml, or some secrets.properties that I'm told to "just not commit". It's convenient: one file, all your local keys, sourced in seconds.

But here's the catch: that file is plaintext, and it sits on disk. Anything running as you can read it — a misbehaving build plugin, a backup daemon, or, increasingly, a coding agent you let loose in your repo. Putting a sensitive API key or a production-adjacent DB password in there is something I'm not comfortable doing on my dev workstation.

Spring Boot Integration Testing with Testcontainers and JUnit5

· 3 min read
Ionuț Barangă
Software Engineer

Testing

Photo by CHUTTERSNAP on Unsplash

Spring Boot testing library offers an out-of-the box @SpringBootTest annotation that boots the entire application and gets it ready for testing.

However, getting backing services (e.g. databases, caches, message brokers) available and not interfering with development or other environments might still be a challenging task.