Tagged articles
4 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 29, 2026 · Backend Development

Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot

This article shows how to replace static DTO definitions with a zero‑intrusion, high‑concurrency solution for column‑level data masking in Spring Boot 3.5.0 by leveraging Jackson's serialization pipeline, a global Mixin, custom annotations, a contextual serializer, and a ResponseBodyAdvice that respects request‑scoped permissions.

DTODynamic MaskingJackson
0 likes · 10 min read
Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot
Liangxu Linux
Liangxu Linux
Jul 13, 2021 · Information Security

Why Running Docker Containers as Root Is Dangerous and How to Avoid It

Running Docker containers as root or with the --privileged flag can expose the host to unnecessary risks; this article explains the differences, demonstrates root usage in common images, and provides practical methods—such as specifying non‑root users in Dockerfiles or using security contexts—to securely run containers.

$rootContainer SecurityKubernetes
0 likes · 7 min read
Why Running Docker Containers as Root Is Dangerous and How to Avoid It