Recent Posts

Backend & Spring·October 13, 2026

A Login Recorded Under the Wrong User: The Ghost Left in ThreadLocal

청소가 생략된 호텔 객실에 새 투숙객이 들어와, 금고 안에 남아 있는 이전 투숙객의 반투명한 신분증을 발견하는 일러스트.

While we were adding an audit log, one login showed up under the wrong name: B logged in, but the record said A. This postmortem traces the ghost to a SecurityContext left behind in ThreadLocal by a filter that never called clearContext() on reused Tomcat threads.