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>
15 lines
8.4 KiB
JSON
15 lines
8.4 KiB
JSON
{
|
|
"assetKey": "a14-f015-virtualthreadprofile-propertyname-bind",
|
|
"kind": "terminal",
|
|
"command": "set -e\nset -o pipefail\nD=$(mktemp -d); trap 'rm -rf \"$D\"' EXIT\nC=/shared/codebase/clean-architecture-backend-template\nM=$C/src/adapter/inbound/web\nCACHE=/root/.gradle/caches/modules-2/files-2.1\njava -version 2>&1 | grep version\ncp=\"\"\nwhile IFS= read -r line; do\n coord=${line%%=*}; confs=${line#*=}\n case \",$confs,\" in *\",testRuntimeClasspath,\"*) ;; *) continue ;; esac\n g=${coord%%:*}; rest=${coord#*:}; n=${rest%%:*}; v=${rest##*:}\n jar=$(find \"$CACHE/$g/$n/$v\" -name '*.jar' ! -name '*sources*' ! -name '*javadoc*' 2>/dev/null | head -1) || true\n [ -n \"$jar\" ] && cp=\"$cp:$jar\"\ndone < <(grep -E '^[a-zA-Z0-9._-]+:[^=]+=' \"$M/gradle.lockfile\")\nSIB=$(find \"$C/src\" -path '*/build/libs/*+21234e38cdb9*.jar' ! -name '*-testkit.jar' | sort | tr '\\n' ':')\nPROC=$(find \"$CACHE/org.springframework.boot/spring-boot-configuration-processor/4.0.8\" -name '*.jar' ! -name '*sources*' | head -1)\n\nmkdir -p \"$D/meta\"\njavac -encoding UTF-8 -proc:only -processorpath \"$PROC\" -cp \"$SIB$cp\" -d \"$D/meta\" \\\n \"$M/src/main/java/dev/caskeleton/adapter/inbound/web/advanced/mvc/VirtualThreadSettings.java\" 2>&1 | head -3\n\ncat > \"$D/NamePublishProbe.java\" <<'JAVA'\nimport dev.caskeleton.adapter.inbound.web.advanced.mvc.VirtualThreadMvcConfiguration;\nimport dev.caskeleton.adapter.inbound.web.advanced.mvc.VirtualThreadSettings;\nimport dev.caskeleton.adapter.inbound.web.advanced.virtualthread.VirtualThreadProfile;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.util.List;\nimport org.springframework.boot.context.properties.ConfigurationPropertiesScan;\nimport org.springframework.boot.test.context.runner.WebApplicationContextRunner;\nimport org.springframework.context.annotation.Configuration;\n\n/** 발행된 이름과 실제 이름을 각각 두고, 두 가지 구성으로 컨텍스트를 띄운다. */\npublic final class NamePublishProbe {\n\n private static final String PUBLISHED = VirtualThreadProfile.propertyName();\n private static final String REAL = \"backend.web.advanced.mvc-virtual-threads.enabled\";\n\n /** 예산은 어느 행에서나 같이 준다. 켜짐 여부만 가른다. */\n private static final String[] BUDGETS = {\n \"backend.web.advanced.mvc-virtual-threads.admission-limit=100\",\n \"backend.web.advanced.mvc-virtual-threads.database-pool-size=20\",\n \"backend.web.advanced.mvc-virtual-threads.outbound-bulkhead=20\",\n };\n\n /** 출하 조립 루트가 이 리프에 대해 거는 것과 같은 패키지. CaSkeletonApplication:72. */\n @Configuration(proxyBeanMethods = false)\n @ConfigurationPropertiesScan(basePackages = \"dev.caskeleton.adapter.inbound.web\")\n static class ShippingPropertiesScan {}\n\n /** 이 리프에서 값을 요구하는 설정은 하나뿐이다. 이 발견과 무관하지만 없으면 기동이 멈춘다. */\n private static final String ISSUER = \"ca-skeleton.security.issuer-uri=https://issuer.example\";\n\n private static String[] with(String... extra) {\n String[] values = new String[BUDGETS.length + extra.length];\n System.arraycopy(BUDGETS, 0, values, 0, BUDGETS.length);\n System.arraycopy(extra, 0, values, BUDGETS.length, extra.length);\n return values;\n }\n\n private static WebApplicationContextRunner base() {\n // 이 설정의 실행기가 요구한다. 없으면 어느 이름을 두든 기동이 실패한다.\n return new WebApplicationContextRunner()\n .withBean(org.springframework.core.task.TaskDecorator.class, () -> runnable -> runnable);\n }\n\n private static void row(\n WebApplicationContextRunner runner, String label, String property, String... extra) {\n runner\n .withPropertyValues(\n property == null ? with(extra) : with(concat(extra, property)))\n .run(\n context -> {\n if (context.getStartupFailure() != null) {\n Throwable root = context.getStartupFailure();\n while (root.getCause() != null) {\n root = root.getCause();\n }\n System.out.printf(\" %-12s %-52s %s%n\", label,\n property == null ? \"(없음)\" : property, \"기동 실패 : \" + root.getMessage());\n return;\n }\n boolean gated = context.getBeanNamesForType(VirtualThreadProfile.class).length > 0;\n String settings =\n context.getBeanNamesForType(VirtualThreadSettings.class).length == 0\n ? \"없음\"\n : \"enabled=\" + context.getBean(VirtualThreadSettings.class).isEnabled();\n System.out.printf(\" %-12s %-52s %-9s %s%n\", label,\n property == null ? \"(없음)\" : property, gated ? \"켜짐\" : \"안 켜짐\", settings);\n });\n }\n\n private static String[] concat(String[] head, String tail) {\n String[] out = new String[head.length + 1];\n System.arraycopy(head, 0, out, 0, head.length);\n out[head.length] = tail;\n return out;\n }\n\n public static void main(String[] args) throws Exception {\n System.out.println();\n System.out.println(\"[이 메서드가 발행하는 이름과 실제 게이트 이름]\");\n System.out.printf(\" %-22s %s%n\", \"propertyName() 반환값\", PUBLISHED);\n System.out.printf(\" %-22s %s%n\", \"게이트와 바인딩\", REAL);\n\n System.out.println();\n System.out.println(\"[게이트된 설정 클래스만 올린 구성]\");\n System.out.println(\" 두 구성 모두 예산 세 값을 늘 함께 준다. 그 값이 없으면 켠 행은 바인딩 검증에서 멈춘다.\");\n System.out.printf(\" %-12s %-52s %-9s %s%n\", \"\", \"그 밖에 설정한 advanced 속성\", \"프로파일 빈\", \"설정 빈\");\n WebApplicationContextRunner gateOnly =\n base().withUserConfiguration(VirtualThreadMvcConfiguration.class);\n row(gateOnly, \"발행한 이름\", PUBLISHED + \"=true\");\n row(gateOnly, \"실제 이름\", REAL + \"=true\");\n\n System.out.println();\n System.out.println(\"[루트가 이 리프에 거는 속성 스캔을 그대로 올린 구성]\");\n System.out.printf(\" %-12s %-52s %-9s %s%n\", \"\", \"그 밖에 설정한 advanced 속성\", \"프로파일 빈\", \"설정 빈\");\n WebApplicationContextRunner shipping =\n base()\n .withUserConfiguration(\n ShippingPropertiesScan.class, VirtualThreadMvcConfiguration.class);\n row(shipping, \"아무것도\", null);\n System.out.println(\" 아래 세 행은 그 한 값만 채우고 나머지는 그대로 둔다.\");\n row(shipping, \"없음\", null, ISSUER);\n row(shipping, \"발행한 이름\", PUBLISHED + \"=true\", ISSUER);\n row(shipping, \"실제 이름\", REAL + \"=true\", ISSUER);\n\n Path meta = Path.of(args[0], \"META-INF\", \"spring-configuration-metadata.json\");\n System.out.println();\n System.out.println(\"[이 설정 클래스만 고정 소스로 처리해 얻은 설정 메타데이터]\");\n if (!Files.isRegularFile(meta)) {\n System.out.println(\" 생성되지 않음\");\n return;\n }\n List<String> names =\n Files.readAllLines(meta).stream()\n .map(String::trim)\n .filter(line -> line.startsWith(\"\\\"name\\\": \\\"backend.\"))\n .map(line -> line.substring(line.indexOf(':') + 3, line.lastIndexOf('\"')))\n .distinct()\n .sorted()\n .toList();\n names.forEach(name -> System.out.println(\" \" + name));\n System.out.printf(\"%n 발행한 이름이 그 안에 있는가 : %s%n\", names.contains(PUBLISHED) ? \"있다\" : \"없다\");\n }\n}\nJAVA\njavac -encoding UTF-8 -cp \"$SIB$cp\" -d \"$D/out\" \"$D/NamePublishProbe.java\" 2>&1 | head -5\nprintf '%s\\n' '<configuration><root level=\"OFF\"/></configuration>' > \"$D/out/logback.xml\"\njava -Dstdout.encoding=UTF-8 -cp \"$D/out:$SIB$cp\" NamePublishProbe \"$D/meta\"\n",
|
|
"cwd": "/shared/codebase/clean-architecture-backend-template/src",
|
|
"exitCode": 0,
|
|
"executedAt": "2026-09-03T06:15:16+00:00",
|
|
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
|
|
"raw": "evidence/raw/a14-f015-virtualthreadprofile-propertyname-bind.txt",
|
|
"svg": "evidence/rendered/a14-f015-virtualthreadprofile-propertyname-bind.svg",
|
|
"rawSha256": "42dc1b36e457db917c6b45487534313d39f8e9b47b07fb35fe9cbab813a98892",
|
|
"lines": 29,
|
|
"redaction": "열 이름을 advanced 속성으로 좁힘"
|
|
}
|