Cora Iberkleid 🚢
/ciberkleid

Developer Advocate at Tanzu by Broadcom focused on Kubernetes and Spring related technologies.
Cora Iberkleid 🚢
🍃Spring
2y ago
SSL keys and certificates serve as guardians of online security, protecting sensitive information and facilitating secure communication between applications. In a noble act of self-sacrifice, these keys and certs embrace expiration for the greater good of enhancing overall cybersecurity. Yet, they don't relinquish control without a fight.
SSL Pitstops
Picture a nail-biting Formula 1 race – a tire is reaching the end of its lifespan, risking chaos on the track. Much like our noble but very lazy guardians, this tire ain't gonna change itself. Our speedster is going to need a pitstop crew.
Similarly, traditional SSL certificate and key rotation necessitate a pitstop crew for applications. Inefficient handling can wreak havoc, causing downtime and frustrating users. These cybersecurity pitstop crews vary – manual labor involves restarting applications, external tools avoid app restarts but demand complex configuration, and proxies decouple SSL termination but require separate setup.
Crew Cuts
Enter Spring Boot 3.2, the new race car capable of changing its own tires without a pitstop crew. This new feature, hot reload, is a game-changer for developers and system administrators, providing a seamless solution to the SSL rotation challenge. No more halting operations or relying on external tools – the digital race can continue at full throttle. True to Spring Boot's style, it's also easy to configure.
In brief, the Spring Boot app loads keys & certs from given locations (per your configuration), and watches these locations for changes. When the files are changed (by an external process), the app will swap in the ones without restarting. Any new connections will use the new keys & certs.
Security Turboboost
This new capability not only ensures a more secure online presence but also maintains a smooth user experience. So, buckle up! The future of SSL management is here, and it's speeding ahead without looking back.
For details on setup, check out: https://spring.io/blog/2023/11/07/ssl-hot-reload-in-spring-boot-3-2-0
Cora Iberkleid 🚢
🍃Spring
2y ago
Spring's all about making software development easier, but Spring Cloud Gateway takes the cake. Without writing a smidge of code, you can achieve not only basic HTTP routing, but also sophisticated party tricks like weighted routing and rate limiting. Let's explore.
Gateways Are Super Important
A gateway sits between consumers (software or human) and your applications. The more apps you have (and with microservice architectures we tend to have a few), the more pain you'll feel without a gateway, but even with one or a few apps, the benefits are clear.
For developers, gateways simplify development by handling cross-cutting concerns. For operators, they are a central point for monitoring. For security teams, an opportunity to protect against threats and enforce policies. And for consumers, gateways provide a better experience through a friendly API, single point of access, and increased reliability.
The "No-Code" Experience
With Spring Cloud Gateway (SCG), you can certainly get dirty with Java. But for many cases, you don't have to. Many of the capabilities of SCG can simply be configured in your handy application.yml file. OK, it's not drag-and-drop, but YAML is a far cry from coding.
To whet your appetite, take a look at this example of consumer API control and weighted routing, which directs about half the traffic to one of two endpoints.
It doesn't get easier than this!
Hungry For More?
Try out the examples at https://github.com/ciberkleid/spring-cloud-gateway-sample or check out the docs at https://docs.spring.io/spring-cloud-gateway/reference/spring-cloud-gateway/configuring-route-predicate-factories-and-filter-factories.html.
Cora Iberkleid 🚢
🍃Spring
2y ago
If you're asking yourself the same question, it probably means your Spring app is due for a health check. But despite the many Doctors—Syer, Pollack, De Volder—on the Spring team, or any of their equally qualified teammates, none have the bandwidth for house calls for all Spring apps around the world.
Lucky for us (and them!), as of this morning, there is a new (and free!) tool that you can use at your leisure and in the privacy of your home to determine just how healthy your Spring app is.
I decided to try it on the trusty spring-petclinic application.
A Doctor in the House!
As shown below, you can use your pom.xml file to produce a list of the springframework dependencies (works for Gradle, too) and upload the list to the new (and did I say free?) Spring Health Assessment website.
Here are the results for an old commit of spring-petclinic from September 2022, which upgraded the app to Spring Boot 2.7.3:
And then again on the latest branch...
The report relies on the NIST National Vulnerability Database and provides further detail on each library analyzed.
A Fountain of Youth
Sadly, no vet can make my cat any younger, but for our Spring apps, the Spring Health Assessment Report can give us the knowledge we need to keep our apps young and spry forever.
Try it out at https://tanzu.vmware.com/spring-health-assessment