Skip to main content

You are currently viewing the Trifork Blog, to view our full website please go to Trifork.com

Integrating the AWS Parameter Store with Spring Cloud

I’ll tell you all my secrets (but I lie about my past) — Tom Waits – Tango till they’re sore tl;dr We’ve integrated the AWS Parameter Store with Spring Cloud so that it can be used as a secure configuration backend for services deployed to EC2, including ECS. This code has recently been merged in Spring […]

Read More

How to manage Database Migrations with Flyway?

Joris Kuipers, CTO at Trifork, presented a webinar on some usage patterns for Flyway. You can find the recording on our Trifork YouTube channel. Tools like Flyway address a common concern for many people, which quickly leads to questions on how to pick a tool and then apply it in the best manner for one’s particular […]

Read More

Using Spring Session for concurrent session control in a clustered environment

For a long time, Spring Security has provided support to limit the number of sessions a single user can have concurrently. This prevents users from being logged in from many different devices at the same time, for example to ensure that they won’t share their credentials to a paid site with their friends and family. […]

Read More

Spring-AMQP and payload validation: some notes from the trenches

It’s been a while since I’ve written one of our from-the-trenches blogs: that’s mostly because I’ve been very busy in those trenches developing systems for our customers. This week I completed a Spring Boot-based microservice which is responsible for interacting with some 3rd party SOAP service: its own clients communicate with it by sending request […]

Read More

Declarative multi-tenant security with Spring Security and Spring-MVC

It’s been a while since our last ‘from the trenches’ entry, and as I’ve found I am better at authoring blogs than convincing colleagues to do the same I figured I’d write you another installment. This time I’d like to focus on an easy yet powerful approach that we used to secure a multi-tenant Spring-MVC […]

Read More

Adding user info to log entries in a multi-user app using Mapped Diagnostic Context

Have you ever been in the situation where you were looking at one of your production log files and had a hard time seeing what log entries belonged to what requests? In a multi-user web application many requests are handled in parallel, so without additional context it becomes almost impossible to see how a single […]

Read More

From the trenches: Rendering Twitter Bootstrap form inputs for Spring-MVC with FreeMarker macros

From the trenches: Rendering Twitter Bootstrap form inputs for Spring-MVC with FreeMarker macros

This is the first entry in a new series of what we hope will become a regular appearance on our Trifork blog: “from the trenches”, with blogs that explain in a no-nonsense just-the-tech fashion how we applied certain tools, technologies, libraries and frameworks in our own projects to solve real-world challenges that we faced while […]

Read More