Files
document-haness/docs/keycloak-session-store/source/docs/evidence/b7-cookie-secret/README.md
T
DongHyeonkaandClaude Opus 5 b2963105a8 docs(keycloak-session-store): import the session-storage lab as a new project
The keycloak project ended with four open questions that design could not
settle. A two-VM lab was built to answer them by measurement, and this is
that material: 26 experiments, 125 raw command outputs, 22 browser captures.

Follows the import procedure in README.md.

  source/     the originating repository verbatim — 78 documents, 28 SVGs,
              8 manifests, plus .source-revision recording the commit
  final/      the SSOT
    document.md   729 lines written from the 29 experiment documents, not
                  concatenated: what was predicted, what was measured, and
                  where the measurement itself was wrong
    evidence/raw    125 outputs, flattened to <experiment>__<file> because
                    the originals collided (01-baseline.txt appeared three
                    times) and the audit only globs the top level
    evidence/meta   one per raw file; command and exitCode are null and the
                    README says why rather than inventing them
    evidence/browser  22 captures
    assets/       three diagrams through techviz
    .techviz/     their VizSpecs

A separate project rather than an addition to keycloak: the B-layer answers
that project's four questions, but the A, C and D layers are about cluster
failure, SSO and operations, and one document.md should hold one subject.
The four question records there can point here through 관계.

Recorded rather than papered over: only three of the 28 diagrams were
remade. The repository forbids hand-drawn SVG and forbids titles inside the
canvas; all 28 originals carry both, so converting them is redrawing, not
reformatting. They stay in source/ and the gap is written into the document.

verify-pipeline.py passes. audit-records.py reports no issues.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 22:51:59 +09:00

1.3 KiB
Raw Blame History

B-7 — oauth2-proxy cookie secret 교체 증거

2026-09-04 16:00–16:15 KST 해설: docs/experiment-b7-cookie-secret-rotation.md

파일 무엇을 보여주는가
01-deploy.txt 양 노드에 replica 하나씩. / 302, /ping 200
02-cookie-portability.txt curl 로 흐름을 완주하려던 시도 — 파드 IP 는 호스트에서 안 닿는다
03-rotation.txt --cookie-secret string 단수 확인 · 교체 후 session ticket cookie failed validation · Error removing session · Redis 에 고아 세션 2개
b7-oauth2proxy-login-success.png Redis 세션 전환 후 성공한 Forward-Auth — x-forwarded-user/email/preferred-username 과 티켓 형태 쿠키

핵심 네 줄

  1. BFF 와 정반대다. 인가 요청이 쿠키에 있어 콜백이 다른 replica 로 가도 성공한다 — B-0 에서 BFF 가 실패한 바로 그 지점.
  2. 502 의 원인은 큰 쿠키였다. Traefik 직접은 정상이고 nginx 만 502 — B-4 의 헤더 절벽이 응답 쪽에서 재현됐다.
  3. 겹침 구간을 만들 수 없다. --cookie-secret 이 단수라 B-6 의 무중단 회전이 불가능하다.
  4. 교체하면 서버 세션이 고아로 남는다. 티켓을 못 푸니 지울 수도 없다.