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>
90 lines
7.6 KiB
XML
90 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="958" height="345" viewBox="0 0 958 345" role="img" aria-labelledby="diagram-title diagram-description">
|
|
<title id="diagram-title">인증서 갱신이 서빙에 닿기까지</title>
|
|
<desc id="diagram-description">certbot renew 는 archive 디렉터리에 새 인증서를 쓰고 live 심볼릭 링크가 그것을 가리키게 한다. nginx 는 ssl_certificate 가 가리키는 파일을 기동 시점에 한 번 읽어 메모리에 보관하므로, 경로가 그대로여도 reload 없이는 옛 인증서를 계속 서빙한다. 이 실험대에서는 certbot-renew.service 의 ExecStartPost, renewal-hooks 의 세 디렉터리, certbot 의 nginx 플러그인이 모두 비어 있어 2305초 동안 옛 인증서가 서빙됐다. deploy 훅 하나를 넣자 같은 구간이 1~2초가 됐다.</desc>
|
|
<metadata>{"techviz":{"spec_version":"1.1","id":"renewal-to-serving-gap","profile":"component-flow"},"source_context":{"document":"docs/keycloak-session-store/final/document.md","document_sha256":"609353e10bfd37a9bbb6a79ecf2a32f3d3c02d5d161879a14ad4713e49e7e5e8","anchor":{"kind":"heading","value":"D-4 · D-4a — 인증서, 그리고 이 실험대 최대의 발견","line":497}},"evidence_policy":"Each factual element cites source lines or is marked assumption.","diagram_only":true}</metadata>
|
|
<defs>
|
|
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
<path d="M 0 0 L 10 5 L 0 10 z" />
|
|
</marker>
|
|
<style>
|
|
:root { color-scheme: light; }
|
|
text { font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #111827; }
|
|
.canvas { fill: #ffffff; }
|
|
.group-box { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.4; stroke-dasharray: 7 5; }
|
|
.group-label-bg { fill: #ffffff; }
|
|
.group-label { font-size: 13px; font-weight: 650; fill: #374151; }
|
|
.edge { fill: none; stroke: #374151; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arrow); }
|
|
.edge.style-dashed, .edge.semantic-dashed, .edge.assumption { stroke-dasharray: 7 5; }
|
|
.edge.style-dotted { stroke-dasharray: 2 5; }
|
|
.edge.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
|
.edge.emphasis-muted { stroke: #9ca3af; }
|
|
.edge.emphasis-warning, .edge.kind-failure, .edge.kind-error { stroke: #dc2626; stroke-width: 2.2; }
|
|
.edge-label-bg { fill: #ffffff; }
|
|
.edge-label { font-size: 12px; font-weight: 560; text-anchor: middle; }
|
|
.node-shape { fill: #ffffff; stroke: #4b5563; stroke-width: 1.7; }
|
|
.node-shape.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
|
.node-shape.emphasis-muted { stroke: #9ca3af; fill: #f9fafb; }
|
|
.node-shape.emphasis-warning { stroke: #d97706; stroke-width: 2; fill: #fffdf5; }
|
|
.node-shape.kind-database, .node-shape.kind-datastore, .node-shape.kind-storage { fill: #f8fafc; }
|
|
.node-shape.kind-queue, .node-shape.kind-event, .node-shape.kind-topic { fill: #fafafa; }
|
|
.node-shape.assumption { stroke-dasharray: 4 4; }
|
|
.storage-bottom, .controller-divider { fill: none; stroke: #4b5563; stroke-width: 1.4; }
|
|
.controller-led { fill: #4b5563; }
|
|
.actor-symbol { fill: none; stroke: #4b5563; stroke-width: 1.8; stroke-linecap: round; }
|
|
.actor-symbol.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
|
.node-label { font-size: 14px; font-weight: 650; text-anchor: middle; }
|
|
.node-role { font-size: 10px; letter-spacing: 0.04em; text-anchor: middle; fill: #6b7280; }
|
|
.node-detail-divider { stroke: #d1d5db; stroke-width: 1; }
|
|
.node-detail { font-size: 11px; fill: #374151; }
|
|
.assumption-badge { font-size: 9px; font-weight: 700; fill: #92400e; }
|
|
.failure-mark { stroke: #dc2626; stroke-width: 4; stroke-linecap: round; }
|
|
.lifeline { stroke: #9ca3af; stroke-width: 1.2; stroke-dasharray: 5 5; }
|
|
.timeline-axis { stroke: #374151; stroke-width: 1.8; marker-end: url(#arrow); }
|
|
.timeline-stem { stroke: #6b7280; stroke-width: 1.3; }
|
|
.timeline-marker { fill: #ffffff; stroke: #374151; stroke-width: 1.7; }
|
|
.timeline-marker.primary { fill: #2563eb; stroke: #2563eb; }
|
|
.timeline-marker.warning { fill: #dc2626; stroke: #dc2626; }
|
|
.timeline-label { font-size: 13px; font-weight: 650; text-anchor: middle; }
|
|
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
|
|
</style>
|
|
</defs>
|
|
<rect class="canvas" width="958" height="345" />
|
|
<polyline class="edge kind-blocked style-solid emphasis-normal" points="592.5,251.5 677.8,251.5 677.8,189.0 763.0,189.0" data-evidence="536-540" />
|
|
<rect class="edge-label-bg" x="635.8" y="206.2" width="131.9" height="22" rx="3" />
|
|
<text class="edge-label" x="701.8" y="221.2">reload 없이는 닿지 않는다</text>
|
|
<polyline class="edge kind-request style-solid emphasis-normal" points="603.0,95.5 683.0,95.5 683.0,171.0 763.0,171.0" data-evidence="556-562" />
|
|
<rect class="edge-label-bg" x="667.9" y="119.2" width="78.3" height="22" rx="3" />
|
|
<text class="edge-label" x="707.0" y="134.2">reload 신호</text>
|
|
<polyline class="edge kind-request style-solid emphasis-normal" points="220.0,171.0 300.0,171.0 300.0,95.5 380.0,95.5" data-evidence="527-533" />
|
|
<rect class="edge-label-bg" x="281.5" y="119.2" width="85.0" height="22" rx="3" />
|
|
<text class="edge-label" x="324.0" y="134.2">갱신 성공 시 호출</text>
|
|
<polyline class="edge kind-write style-solid emphasis-normal" points="220.0,189.0 305.2,189.0 305.2,251.5 390.5,251.5" data-evidence="504-510" />
|
|
<rect class="edge-label-bg" x="293.4" y="206.2" width="71.6" height="22" rx="3" />
|
|
<text class="edge-label" x="329.2" y="221.2">새 인증서 기록</text>
|
|
<g id="node-certbot">
|
|
<rect class="node-shape kind-process emphasis-primary role-source" data-evidence="499-504" x="70.0" y="144.5" width="150.0" height="71.0" rx="7" />
|
|
<text class="node-label" x="145.0" y="171.5">certbot renew</text>
|
|
<line class="node-detail-divider" x1="84.0" y1="192.5" x2="206.0" y2="192.5" />
|
|
<text class="node-detail" x="86.0" y="209.5">--force-renewal</text>
|
|
</g>
|
|
<g id="node-deploy-hook">
|
|
<rect class="node-shape kind-process emphasis-warning role-control" data-evidence="527-533" x="380.0" y="60.0" width="223.0" height="71.0" rx="7" />
|
|
<text class="node-label" x="491.5" y="87.0">renewal-hooks/deploy</text>
|
|
<line class="node-detail-divider" x1="394.0" y1="108.0" x2="589.0" y2="108.0" />
|
|
<text class="node-detail" x="396.0" y="125.0">nginx -t && nginx -s reload</text>
|
|
</g>
|
|
<g id="node-live-link">
|
|
<rect class="node-shape kind-datastore emphasis-primary role-store" data-evidence="536-540" x="390.5" y="216.0" width="202.0" height="71.0" /><ellipse class="node-shape kind-datastore emphasis-primary role-store" cx="491.5" cy="216.0" rx="101.0" ry="13.0" /><path class="storage-bottom" d="M 390.5 287.0 A 101.0 13.0 0 0 0 592.5 287.0" />
|
|
<text class="node-label" x="491.5" y="243.0">live/fullchain.pem</text>
|
|
<line class="node-detail-divider" x1="404.5" y1="264.0" x2="578.5" y2="264.0" />
|
|
<text class="node-detail" x="406.5" y="281.0">archive/cert2.pem 을 가리킨다</text>
|
|
</g>
|
|
<g id="node-nginx">
|
|
<rect class="node-shape kind-service emphasis-primary role-target" data-evidence="541-548" x="763.0" y="144.5" width="150.0" height="71.0" rx="7" />
|
|
<text class="node-label" x="838.0" y="171.5">nginx 워커</text>
|
|
<line class="node-detail-divider" x1="777.0" y1="192.5" x2="899.0" y2="192.5" />
|
|
<text class="node-detail" x="779.0" y="209.5">마스터 유지 · 워커 교체</text>
|
|
</g>
|
|
</svg>
|