Files
document-haness/docs/clean-architecture-backend-template/final/evidence/rendered/a14-f015-virtualthreadprofile-propertyname-bind.svg
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

196 lines
19 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="2196" viewBox="0 0 1200 2196" role="img">
<title>terminal evidence</title>
<desc>Terminal-style rendering generated from retained command output. Sensitive-looking values are redacted in the visual asset.</desc>
<rect x="1" y="1" width="1198" height="2194" rx="14" fill="#0d1117" stroke="#30363d"/>
<rect x="1" y="1" width="1198" height="44" rx="14" fill="#161b22"/>
<rect x="1" y="30" width="1198" height="14" fill="#161b22"/>
<circle cx="24" cy="22" r="6" fill="#ff5f57"/>
<circle cx="44" cy="22" r="6" fill="#febc2e"/>
<circle cx="64" cy="22" r="6" fill="#28c840"/>
<text x="92" y="27" fill="#8b949e" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace">terminal evidence</text>
<text x="24" y="68" fill="#c9d1d9" font-size="15" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">$ set -e
set -o pipefail
D=$(mktemp -d); trap &#x27;rm -rf &quot;$D&quot;&#x27; EXIT
C=/shared/codebase/clean-architecture-backend-template
</tspan><tspan x="24" dy="22">M=$C/src/adapter/inbound/web
CACHE=/root/.gradle/caches/modules-2/files-2.1
java -version 2&gt;&amp;1 | grep version
cp=&quot;&quot;
whil</tspan><tspan x="24" dy="22">e IFS= read -r line; do
coord=${line%%=*}; confs=${line#*=}
case &quot;,$confs,&quot; in *&quot;,testRuntimeClasspath,&quot;*) ;; *) con</tspan><tspan x="24" dy="22">tinue ;; esac
g=${coord%%:*}; rest=${coord#*:}; n=${rest%%:*}; v=${rest##*:}
jar=$(find &quot;$CACHE/$g/$n/$v&quot; -name &#x27;*.j</tspan><tspan x="24" dy="22">ar&#x27; ! -name &#x27;*sources*&#x27; ! -name &#x27;*javadoc*&#x27; 2&gt;/dev/null | head -1) || true
[ -n &quot;$jar&quot; ] &amp;&amp; cp=&quot;$cp:$jar&quot;
done &lt; &lt;(gre</tspan><tspan x="24" dy="22">p -E &#x27;^[a-zA-Z0-9._-]+:[^=]+=&#x27; &quot;$M/gradle.lockfile&quot;)
SIB=$(find &quot;$C/src&quot; -path &#x27;*/build/libs/*+21234e38cdb9*.jar&#x27; ! -nam</tspan><tspan x="24" dy="22">e &#x27;*-testkit.jar&#x27; | sort | tr &#x27;\n&#x27; &#x27;:&#x27;)
PROC=$(find &quot;$CACHE/org.springframework.boot/spring-boot-configuration-processor</tspan><tspan x="24" dy="22">/4.0.8&quot; -name &#x27;*.jar&#x27; ! -name &#x27;*sources*&#x27; | head -1)
mkdir -p &quot;$D/meta&quot;
javac -encoding UTF-8 -proc:only -processorpath</tspan><tspan x="24" dy="22"> &quot;$PROC&quot; -cp &quot;$SIB$cp&quot; -d &quot;$D/meta&quot; \
&quot;$M/src/main/java/dev/caskeleton/adapter/inbound/web/advanced/mvc/VirtualThreadS</tspan><tspan x="24" dy="22">ettings.java&quot; 2&gt;&amp;1 | head -3
cat &gt; &quot;$D/NamePublishProbe.java&quot; &lt;&lt;&#x27;JAVA&#x27;
import dev.caskeleton.adapter.inbound.web.advanc</tspan><tspan x="24" dy="22">ed.mvc.VirtualThreadMvcConfiguration;
import dev.caskeleton.adapter.inbound.web.advanced.mvc.VirtualThreadSettings;
impo</tspan><tspan x="24" dy="22">rt dev.caskeleton.adapter.inbound.web.advanced.virtualthread.VirtualThreadProfile;
import java.nio.file.Files;
import ja</tspan><tspan x="24" dy="22">va.nio.file.Path;
import java.util.List;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;</tspan><tspan x="24" dy="22">
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
import org.springframework.context.ann</tspan><tspan x="24" dy="22">otation.Configuration;
/** 발행된 이름과 실제 이름을 각각 두고, 두 가지 구성으로 컨텍스트를 띄운다. */
public final cla</tspan><tspan x="24" dy="22">ss NamePublishProbe {
private static final String PUBLISHED = VirtualThreadProfile.propertyName();
private static f</tspan><tspan x="24" dy="22">inal String REAL = &quot;backend.web.advanced.mvc-virtual-threads.enabled&quot;;
/** 예산은 어느 행에서나 같이 준다. 켜짐 여부</tspan><tspan x="24" dy="22">만 가른다. */
private static final String[] BUDGETS = {
&quot;backend.web.advanced.mvc-virtual-threads.admission-limit=</tspan><tspan x="24" dy="22">100&quot;,
&quot;backend.web.advanced.mvc-virtual-threads.database-pool-size=20&quot;,
&quot;backend.web.advanced.mvc-virtual-thread</tspan><tspan x="24" dy="22">s.outbound-bulkhead=20&quot;,
};
/** 출하 조립 루트가 이 리프에 대해 거는 것과 같은 패키지. CaSkeletonApplication:72. */</tspan><tspan x="24" dy="22">
@Configuration(proxyBeanMethods = false)
@ConfigurationPropertiesScan(basePackages = &quot;dev.caskeleton.adapter.inboun</tspan><tspan x="24" dy="22">d.web&quot;)
static class ShippingPropertiesScan {}
/** 이 리프에서 값을 요구하는 설정은 하나뿐이다. 이 발견과 무관하지</tspan><tspan x="24" dy="22">만 없으면 기동이 멈춘다. */
private static final String ISSUER = &quot;ca-skeleton.security.issuer-uri=https://issuer.examp</tspan><tspan x="24" dy="22">le&quot;;
private static String[] with(String... extra) {
String[] values = new String[BUDGETS.length + extra.length];</tspan><tspan x="24" dy="22">
System.arraycopy(BUDGETS, 0, values, 0, BUDGETS.length);
System.arraycopy(extra, 0, values, BUDGETS.length, ext</tspan><tspan x="24" dy="22">ra.length);
return values;
}
private static WebApplicationContextRunner base() {
// 이 설정의 실행기가 요구</tspan><tspan x="24" dy="22">한다. 없으면 어느 이름을 두든 기동이 실패한다.
return new WebApplicationContextRunner()
.withBean(org.spring</tspan><tspan x="24" dy="22">framework.core.task.TaskDecorator.class, () -&gt; runnable -&gt; runnable);
}
private static void row(
WebApplicati</tspan><tspan x="24" dy="22">onContextRunner runner, String label, String property, String... extra) {
runner
.withPropertyValues(
</tspan><tspan x="24" dy="22"> property == null ? with(extra) : with(concat(extra, property)))
.run(
context -&gt; {
</tspan><tspan x="24" dy="22"> if (context.getStartupFailure() != null) {
Throwable root = context.getStartupFailure();
</tspan><tspan x="24" dy="22"> while (root.getCause() != null) {
root = root.getCause();
}
System</tspan><tspan x="24" dy="22">.out.printf(&quot; %-12s %-52s %s%n&quot;, label,
property == null ? &quot;(없음)&quot; : property, &quot;기동 실패 : &quot; + ro</tspan><tspan x="24" dy="22">ot.getMessage());
return;
}
boolean gated = context.getBeanNamesForType(Virt</tspan><tspan x="24" dy="22">ualThreadProfile.class).length &gt; 0;
String settings =
context.getBeanNamesForType(Virtua</tspan><tspan x="24" dy="22">lThreadSettings.class).length == 0
? &quot;없음&quot;
: &quot;enabled=&quot; + context.getBean(V</tspan><tspan x="24" dy="22">irtualThreadSettings.class).isEnabled();
System.out.printf(&quot; %-12s %-52s %-9s %s%n&quot;, label,
</tspan><tspan x="24" dy="22"> property == null ? &quot;(없음)&quot; : property, gated ? &quot;켜짐&quot; : &quot;안 켜짐&quot;, settings);
});
}
private stati</tspan><tspan x="24" dy="22">c String[] concat(String[] head, String tail) {
String[] out = new String[head.length + 1];
System.arraycopy(hea</tspan><tspan x="24" dy="22">d, 0, out, 0, head.length);
out[head.length] = tail;
return out;
}
public static void main(String[] args) t</tspan><tspan x="24" dy="22">hrows Exception {
System.out.println();
System.out.println(&quot;[이 메서드가 발행하는 이름과 실제 게이트 이름]&quot;);
</tspan><tspan x="24" dy="22"> System.out.printf(&quot; %-22s %s%n&quot;, &quot;propertyName() 반환값&quot;, PUBLISHED);
System.out.printf(&quot; %-22s %s%n&quot;, &quot;게이트와</tspan><tspan x="24" dy="22"> 바인딩&quot;, REAL);
System.out.println();
System.out.println(&quot;[게이트된 설정 클래스만 올린 구성]&quot;);
System.out</tspan><tspan x="24" dy="22">.println(&quot; 두 구성 모두 예산 세 값을 늘 함께 준다. 그 값이 없으면 켠 행은 바인딩 검증에서 멈춘다.&quot;);
System.out.pri</tspan><tspan x="24" dy="22">ntf(&quot; %-12s %-52s %-9s %s%n&quot;, &quot;&quot;, &quot;그 밖에 설정한 advanced 속성&quot;, &quot;프로파일 빈&quot;, &quot;설정 빈&quot;);
WebApplicationContextR</tspan><tspan x="24" dy="22">unner gateOnly =
base().withUserConfiguration(VirtualThreadMvcConfiguration.class);
row(gateOnly, &quot;발행한 이</tspan><tspan x="24" dy="22">&quot;, PUBLISHED + &quot;=true&quot;);
row(gateOnly, &quot;실제 이름&quot;, REAL + &quot;=true&quot;);
System.out.println();
System.out.pri</tspan><tspan x="24" dy="22">ntln(&quot;[루트가 이 리프에 거는 속성 스캔을 그대로 올린 구성]&quot;);
System.out.printf(&quot; %-12s %-52s %-9s %s%n&quot;, &quot;&quot;, &quot;</tspan><tspan x="24" dy="22">밖에 설정한 advanced 속성&quot;, &quot;프로파일 빈&quot;, &quot;설정 빈&quot;);
WebApplicationContextRunner shipping =
base()
</tspan><tspan x="24" dy="22"> .withUserConfiguration(
ShippingPropertiesScan.class, VirtualThreadMvcConfiguration.class);
row</tspan><tspan x="24" dy="22">(shipping, &quot;아무것도&quot;, null);
System.out.println(&quot; 아래 세 행은 그 한 값만 채우고 나머지는 그대로 둔다.&quot;);
row(</tspan><tspan x="24" dy="22">shipping, &quot;없음&quot;, null, ISSUER);
row(shipping, &quot;발행한 이름&quot;, PUBLISHED + &quot;=true&quot;, ISSUER);
row(shipping, &quot;실제 </tspan><tspan x="24" dy="22">이름&quot;, REAL + &quot;=true&quot;, ISSUER);
Path meta = Path.of(args[0], &quot;META-INF&quot;, &quot;spring-configuration-metadata.json&quot;);
</tspan><tspan x="24" dy="22"> System.out.println();
System.out.println(&quot;[이 설정 클래스만 고정 소스로 처리해 얻은 설정 메타데이터]&quot;);
if (!Fi</tspan><tspan x="24" dy="22">les.isRegularFile(meta)) {
System.out.println(&quot; 생성되지 않음&quot;);
return;
}
List&lt;String&gt; names =
</tspan><tspan x="24" dy="22"> Files.readAllLines(meta).stream()
.map(String::trim)
.filter(line -&gt; line.startsWith(&quot;\&quot;nam</tspan><tspan x="24" dy="22">e\&quot;: \&quot;backend.&quot;))
.map(line -&gt; line.substring(line.indexOf(&#x27;:&#x27;) + 3, line.lastIndexOf(&#x27;&quot;&#x27;)))
.d</tspan><tspan x="24" dy="22">istinct()
.sorted()
.toList();
names.forEach(name -&gt; System.out.println(&quot; &quot; + name));
S</tspan><tspan x="24" dy="22">ystem.out.printf(&quot;%n 발행한 이름이 그 안에 있는가 : %s%n&quot;, names.contains(PUBLISHED) ? &quot;있다&quot; : &quot;없다&quot;);
}
}
JAVA
jav</tspan><tspan x="24" dy="22">ac -encoding UTF-8 -cp &quot;$SIB$cp&quot; -d &quot;$D/out&quot; &quot;$D/NamePublishProbe.java&quot; 2&gt;&amp;1 | head -5
printf &#x27;%s\n&#x27; &#x27;&lt;configuration&gt;&lt;ro</tspan><tspan x="24" dy="22">ot level=&quot;OFF&quot;/&gt;&lt;/configuration&gt;&#x27; &gt; &quot;$D/out/logback.xml&quot;
java -Dstdout.encoding=UTF-8 -cp &quot;$D/out:$SIB$cp&quot; NamePublishPr</tspan><tspan x="24" dy="22">obe &quot;$D/meta&quot;
</tspan></text>
<text x="24" y="1432" fill="#8b949e" font-size="13" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">cwd: /shared/codebase/clean-architecture-backend-template/src</tspan></text>
<text x="24" y="1454" fill="#8b949e" font-size="13" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">time: 2026-09-03T06:15:16+00:00 · exit 0</tspan></text>
<line x1="24" y1="1468" x2="1176" y2="1468" stroke="#30363d"/>
<text x="24" y="1508" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">openjdk version &quot;21.0.12&quot; 2026-07-21</tspan></text>
<text x="24" y="1530" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="1552" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">[이 메서드가 발행하는 이름과 실제 게이트 이름]</tspan></text>
<text x="24" y="1574" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> propertyName() 반환값 backend.web.advanced.virtual-threads.enabled</tspan></text>
<text x="24" y="1596" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 게이트와 바인딩 backend.web.advanced.mvc-virtual-threads.enabled</tspan></text>
<text x="24" y="1618" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="1640" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">[게이트된 설정 클래스만 올린 구성]</tspan></text>
<text x="24" y="1662" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 두 구성 모두 예산 세 값을 늘 함께 준다. 그 값이 없으면 켠 행은 바인딩 검증에서 멈춘다.</tspan></text>
<text x="24" y="1684" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 그 밖에 설정한 advanced 속성 프로파일 빈 설정 빈</tspan></text>
<text x="24" y="1706" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 발행한 이름 backend.web.advanced.virtual-threads.enabled=true 안 켜짐 없음</tspan></text>
<text x="24" y="1728" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 실제 이름 backend.web.advanced.mvc-virtual-threads.enabled=true 켜짐 enabled=true</tspan></text>
<text x="24" y="1750" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="1772" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">[루트가 이 리프에 거는 속성 스캔을 그대로 올린 구성]</tspan></text>
<text x="24" y="1794" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 그 밖에 설정한 advanced 속성 프로파일 빈 설정 빈</tspan></text>
<text x="24" y="1816" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 아무것도 (없음) 기동 실패 : APP_SECURITY_JWT_ISSUER (ca-skeleton.secur</tspan><tspan x="24" dy="22">ity.issuer-uri) is required</tspan></text>
<text x="24" y="1860" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 아래 세 행은 그 한 값만 채우고 나머지는 그대로 둔다.</tspan></text>
<text x="24" y="1882" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 없음 (없음) 안 켜짐 enabled=false</tspan></text>
<text x="24" y="1904" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 발행한 이름 backend.web.advanced.virtual-threads.enabled=true 안 켜짐 enabled=false</tspan></text>
<text x="24" y="1926" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 실제 이름 backend.web.advanced.mvc-virtual-threads.enabled=true 켜짐 enabled=true</tspan></text>
<text x="24" y="1948" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="1970" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">[이 설정 클래스만 고정 소스로 처리해 얻은 설정 메타데이터]</tspan></text>
<text x="24" y="1992" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> backend.web.advanced.mvc-virtual-threads</tspan></text>
<text x="24" y="2014" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> backend.web.advanced.mvc-virtual-threads.admission-limit</tspan></text>
<text x="24" y="2036" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> backend.web.advanced.mvc-virtual-threads.admission-wait</tspan></text>
<text x="24" y="2058" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> backend.web.advanced.mvc-virtual-threads.database-pool-size</tspan></text>
<text x="24" y="2080" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> backend.web.advanced.mvc-virtual-threads.enabled</tspan></text>
<text x="24" y="2102" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> backend.web.advanced.mvc-virtual-threads.outbound-bulkhead</tspan></text>
<text x="24" y="2124" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"></tspan></text>
<text x="24" y="2146" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 발행한 이름이 그 안에 있는가 : 없다</tspan></text>
</svg>