수집 시각: 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