An independent audit found ten documents printing values their evidence files do not contain. C-1 printed a session count of 0 where the evidence says 4, C-2 printed a success readback for a command that exited 1, and A-1 credited the conntrack flush with a split that the timestamps attribute to a pod restart four seconds earlier. Also measured wal_writer_delay, which A-3 had asserted as matching without ever querying it, relabelled the A-6 control that moved 41 percent, noted A-8's nine-sample resolution, corrected D-1's RTO to the 41 seconds its own timeline shows, and added a correction banner to D-2. Every experiment document now links its evidence files with their real collection times, and the duplicate screenshots are documented as duplicates. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2.2 KiB
2.2 KiB
B-2 — 다중 인스턴스 운영 증거
2026-09-04 15:05–15:15 KST
해설: docs/experiment-b2-multi-instance-session.md
| 파일 | 무엇을 보여주는가 |
|---|---|
01-jdbc-store-deploy.txt |
JDBC 저장소로 배포. 테이블이 조용히 안 만들어졌다 |
02-schema.txt |
원인 — 기본 DDL 은 blob(PostgreSQL 에 없음), -postgres.sql 판본이 따로 있다. PRIMARY KEY (client_registration_id, principal_name) — 조회 키 문제가 DDL 에 박혀 있다 |
03-plaintext-tokens.txt |
Q3 검증 2번 — bytea 안이 JWT 문자열 그대로. 디코드하면 {"alg":"HS512",...} |
04-overwrite-test.txt |
Q1 검증 3번 — 같은 사용자 재로그인 시 행 수 1 그대로, issued_at 과 md5 만 바뀜 = UPDATE(덮어쓰기) |
05-logout-cleanup.txt |
Q1 검증 4번 — Redis 0키 / PostgreSQL 1행 잔존 / Keycloak SSO 2세션 잔존 |
b2-before-relogin.png |
JDBC 전환 직후, 옛 세션은 여전히 false |
b2-tokens-shared-across-instances.png |
재로그인 후 accessTokenStoredOnServer: true — 두 replica 에서 동작 |
핵심 네 줄
- 세션 Redis + 토큰 PostgreSQL 분리 저장이 성립한다. B-1 의 "로그인은 됐는데 토큰이 없는" 상태가 해결됐다.
- refresh token 은 평문이다. DB 읽기 권한이면 작동하는 토큰을 얻는다.
- 같은 사용자의 두 번째 로그인이 첫 번째를 덮어쓴다. 기본키에 session id 가 없어 구조적으로 그렇다.
- 로그아웃은 셋 중 하나만 지운다. 평문 토큰과 Keycloak SSO 세션이 남는다.
스크린샷 주의
b2-tokens-shared-across-instances.png 는 B-0 의
b0-bff-token-boundary.png 와 동일 파일이다 (md5 9ed00537…).
두 시점 모두 accessTokenStoredOnServer: true 인 같은 화면이라 바이트가 같다.
그래서 이 png 는 "JDBC 전환으로 토큰이 공유된다" 를 단독으로 증명하지
못한다. 그 증명은 01-jdbc-store-deploy.txt(테이블 생성)과
03-plaintext-tokens.txt(행에 토큰이 들어 있음)가 한다.
b2-before-relogin.png 는 B-1 의 캡처와 동일 파일이다.