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>
88 lines
3.5 KiB
Plaintext
88 lines
3.5 KiB
Plaintext
수집 시각: 2026-09-03 15:02:27 KST
|
|
|
|
=== [A] 정상 경로 — 브라우저와 같은 요청 ===
|
|
명령: curl -s https://app1.hyeonworks.com/api/echo
|
|
x-forwarded-proto http
|
|
x-forwarded-port 80
|
|
x-forwarded-for 10.42.0.1
|
|
x-forwarded-host app1.hyeonworks.com
|
|
x-real-ip 10.42.0.1
|
|
x-forwarded-server traefik-59b7647586-ftwf8
|
|
--- 앱이 해석한 값
|
|
scheme http
|
|
secure False
|
|
serverName app1.hyeonworks.com
|
|
serverPort 80
|
|
remoteAddr 10.42.0.8
|
|
localAddr 10.42.1.3
|
|
requestUrl http://app1.hyeonworks.com/api/echo
|
|
|
|
=== [B] 대조 실험 1 — nginx 우회, 헤더 없이 Traefik 직접 ===
|
|
명령: curl http://192.168.122.11/api/echo -H 'Host: app1.hyeonworks.com' (test-server 에서)
|
|
x-forwarded-proto http
|
|
x-forwarded-port 80
|
|
x-forwarded-for 10.42.0.1
|
|
x-forwarded-host app1.hyeonworks.com
|
|
x-real-ip 10.42.0.1
|
|
x-forwarded-server traefik-59b7647586-ftwf8
|
|
--- 앱이 해석한 값
|
|
scheme http
|
|
secure False
|
|
serverName app1.hyeonworks.com
|
|
serverPort 80
|
|
remoteAddr 10.42.0.8
|
|
localAddr 10.42.0.9
|
|
requestUrl http://app1.hyeonworks.com/api/echo
|
|
|
|
=== [C] 대조 실험 2 — nginx 우회, 올바른 헤더를 명시해서 ===
|
|
명령: 위와 동일 + -H 'X-Forwarded-Proto: https' -H 'X-Forwarded-Port: 443' -H 'X-Forwarded-For: 203.0.113.7'
|
|
x-forwarded-proto http
|
|
x-forwarded-port 80
|
|
x-forwarded-for 10.42.0.1
|
|
x-forwarded-host app1.hyeonworks.com
|
|
x-real-ip 10.42.0.1
|
|
x-forwarded-server traefik-59b7647586-ftwf8
|
|
--- 앱이 해석한 값
|
|
scheme http
|
|
secure False
|
|
serverName app1.hyeonworks.com
|
|
serverPort 80
|
|
remoteAddr 10.42.0.8
|
|
localAddr 10.42.1.3
|
|
requestUrl http://app1.hyeonworks.com/api/echo
|
|
|
|
★ [C] 에서 https/443/203.0.113.7 을 명시했음에도 http/80/10.42.0.1 이 도달했다.
|
|
→ Traefik 이 들어온 X-Forwarded-* 를 신뢰하지 않고 재작성한다는 독립적 증거.
|
|
|
|
=== [D] 위조 테스트 — 클라이언트가 직접 헤더 주입 ===
|
|
명령: curl https://app1.hyeonworks.com/api/echo -H 'X-Forwarded-Host: evil.example.com' -H 'X-Forwarded-For: 1.2.3.4'
|
|
x-forwarded-proto http
|
|
x-forwarded-port 80
|
|
x-forwarded-for 10.42.1.0
|
|
x-forwarded-host app1.hyeonworks.com
|
|
x-real-ip 10.42.1.0
|
|
x-forwarded-server traefik-59b7647586-ftwf8
|
|
--- 앱이 해석한 값
|
|
scheme http
|
|
secure False
|
|
serverName app1.hyeonworks.com
|
|
serverPort 80
|
|
remoteAddr 10.42.0.8
|
|
localAddr 10.42.0.9
|
|
requestUrl http://app1.hyeonworks.com/api/echo
|
|
|
|
★ evil.example.com 과 1.2.3.4 가 도달하지 않았다 = 신뢰 경계는 작동.
|
|
|
|
=== [E] 파드 분배 8회 ===
|
|
pod 10.42.1.3 | traefik traefik-59b7647586-ftwf8
|
|
pod 10.42.0.9 | traefik traefik-59b7647586-ftwf8
|
|
pod 10.42.1.3 | traefik traefik-59b7647586-ftwf8
|
|
pod 10.42.0.9 | traefik traefik-59b7647586-ftwf8
|
|
pod 10.42.1.3 | traefik traefik-59b7647586-ftwf8
|
|
pod 10.42.0.9 | traefik traefik-59b7647586-ftwf8
|
|
pod 10.42.1.3 | traefik traefik-59b7647586-ftwf8
|
|
pod 10.42.0.9 | traefik traefik-59b7647586-ftwf8
|
|
|
|
=== [F] HTTP → HTTPS 리다이렉트 ===
|
|
status=301 location=https://app1.hyeonworks.com/api/echo
|