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>
56 lines
2.1 KiB
Plaintext
56 lines
2.1 KiB
Plaintext
수집 시각: 2026-09-03 15:32:04 KST
|
|
단계: A(nginx) + B(Traefik) + C(앱) 모두 적용 후
|
|
|
|
=== [1] nginx 가 보내는 값 ===
|
|
28: proxy_set_header X-Forwarded-Proto https;
|
|
29: proxy_set_header X-Forwarded-Port 443;
|
|
30: proxy_set_header X-Forwarded-For $remote_addr;
|
|
31: proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
=== [2] Traefik entryPoint 인자 ===
|
|
"--entryPoints.web.forwardedHeaders.trustedIPs=10.42.0.0/16
|
|
"--entryPoints.websecure.forwardedHeaders.trustedIPs=10.42.0.0/16
|
|
|
|
=== [3] 앱 스위치 ===
|
|
SERVER_FORWARD_HEADERS_STRATEGY=native
|
|
|
|
=== [4] 최종 측정 ===
|
|
x-forwarded-proto https
|
|
x-forwarded-port 443
|
|
x-forwarded-host app1.hyeonworks.com
|
|
x-real-ip 100.123.124.30
|
|
x-forwarded-server traefik-697889c85-g7xpp
|
|
--- 앱이 해석한 값
|
|
scheme https
|
|
secure True
|
|
serverName app1.hyeonworks.com
|
|
serverPort 443
|
|
remoteAddr 100.123.124.30
|
|
localAddr 10.42.0.10
|
|
requestUrl https://app1.hyeonworks.com/api/echo
|
|
|
|
=== [5] 위조 테스트 — 클라이언트가 http/evil/1.2.3.4 를 주입 ===
|
|
x-forwarded-proto https
|
|
x-forwarded-port 443
|
|
x-forwarded-host app1.hyeonworks.com
|
|
x-real-ip 100.123.124.30
|
|
x-forwarded-server traefik-697889c85-g7xpp
|
|
--- 앱이 해석한 값
|
|
scheme https
|
|
secure True
|
|
serverName app1.hyeonworks.com
|
|
serverPort 443
|
|
remoteAddr 100.123.124.30
|
|
localAddr 10.42.1.6
|
|
requestUrl https://app1.hyeonworks.com/api/echo
|
|
|
|
★ 주입값이 하나도 반영되지 않았다. nginx 의 $remote_addr 덮어쓰기가 방어한다.
|
|
|
|
=== [6] 파드 분배 6회 ===
|
|
pod 10.42.0.10 | remoteAddr 100.123.124.30 | scheme https
|
|
pod 10.42.1.6 | remoteAddr 100.123.124.30 | scheme https
|
|
pod 10.42.0.10 | remoteAddr 100.123.124.30 | scheme https
|
|
pod 10.42.1.6 | remoteAddr 100.123.124.30 | scheme https
|
|
pod 10.42.0.10 | remoteAddr 100.123.124.30 | scheme https
|
|
pod 10.42.1.6 | remoteAddr 100.123.124.30 | scheme https
|