Files
document-haness/docs/clean-architecture-backend-template/final/evidence/meta/a14-f005-publicpaths-restrictedpathrule-mgmtport.json
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

15 lines
5.2 KiB
JSON

{
"assetKey": "a14-f005-publicpaths-restrictedpathrule-mgmtport",
"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/app-bootstrap\nCACHE=/root/.gradle/caches/modules-2/files-2.1\njava -version 2>&1 | head -1\ncp=\"\"\nwhile IFS= read -r line; do\n coord=${line%%=*}; confs=${line#*=}\n case \",$confs,\" in *\",runtimeClasspath,\"*) ;; *) 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)\n [ -n \"$jar\" ] && cp=\"$cp:$jar\"\ndone < <(grep -E '^[a-zA-Z0-9._-]+:[^=]+=' \"$M/gradle.lockfile\")\nCP=${cp#:}\ncat > \"$D/ManagementPortProbe.java\" <<'JAVA'\npackage org.springframework.boot.actuate.autoconfigure.web.server;\n\nimport java.lang.reflect.Constructor;\nimport java.lang.reflect.Method;\nimport org.springframework.core.type.AnnotationMetadata;\nimport java.util.LinkedHashMap;\nimport java.util.Map;\nimport org.springframework.core.env.MapPropertySource;\nimport org.springframework.core.env.StandardEnvironment;\n\n/** 관리 포트가 같을 때 관리 컨텍스트 설정이 어디로 가는지 프레임워크에 직접 물어본다. */\npublic final class ManagementPortProbe {\n\n private static void portType(String app, String mgmt) {\n Map<String, Object> values = new LinkedHashMap<>();\n values.put(\"server.port\", app);\n if (mgmt != null) {\n values.put(\"management.server.port\", mgmt);\n }\n StandardEnvironment env = new StandardEnvironment();\n env.getPropertySources().addFirst(new MapPropertySource(\"probe\", values));\n System.out.printf(\" server.port=%-6s management.server.port=%-10s %s%n\",\n app, mgmt == null ? \"(없음)\" : mgmt, ManagementPortType.get(env));\n }\n\n public static void main(String[] args) throws Exception {\n System.out.println();\n System.out.println(\"[출하값과 두 포트를 같게 둔 값으로 ManagementPortType 을 부른다]\");\n portType(\"8080\", \"9001\");\n portType(\"8080\", \"8080\");\n portType(\"8080\", \"\");\n portType(\"8080\", null);\n\n System.out.println();\n System.out.println(\"[SAME 일 때 부트가 켜는 설정과 그 설정이 고르는 타입]\");\n Class<?> same = Class.forName(\n \"org.springframework.boot.actuate.autoconfigure.web.server\"\n + \".ManagementContextAutoConfiguration$SameManagementContextConfiguration\");\n Class<?> enabler = Class.forName(same.getName() + \"$EnableSameManagementContextConfiguration\");\n System.out.println(\" \" + same.getSimpleName() + \" 조건 : \"\n + same.getAnnotation(ConditionalOnManagementPort.class).value());\n System.out.println(\" \" + enabler.getSimpleName() + \" 가 켜는 것 : \"\n + enabler.getAnnotation(EnableManagementContext.class).value());\n\n System.out.println();\n System.out.println(\"[그 설정이 고르는 클래스. 조건 평가는 이 단계에 없다]\");\n Constructor<?> ctor = ManagementContextConfigurationImportSelector.class\n .getDeclaredConstructor();\n ctor.setAccessible(true);\n Object selector = ctor.newInstance();\n Method select = ManagementContextConfigurationImportSelector.class\n .getDeclaredMethod(\"selectImports\", AnnotationMetadata.class);\n select.setAccessible(true);\n String[] selected = (String[]) select.invoke(selector, AnnotationMetadata.introspect(enabler));\n for (String name : selected) {\n boolean ours = name.startsWith(\"dev.caskeleton\");\n String suffix = \"\";\n if (ours) {\n Object annotation = Class.forName(name).getAnnotation(\n org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration.class);\n suffix = \" 등록 타입 \" + ((org.springframework.boot.actuate.autoconfigure.web\n .ManagementContextConfiguration) annotation).value();\n }\n System.out.println(\" \" + (ours ? \"*\" : \" \") + \" \" + name + suffix);\n }\n }\n}\nJAVA\n# 선택자가 읽을 클래스는 고정 리비전 소스에서 직접 컴파일한다. 빌드 산출물은 쓰지 않는다.\nSIB=$(find \"$C/src\" -path '*/build/libs/*+21234e38cdb9.jar' ! -name '*-testkit.jar' | tr '\\n' ':')\njavac -encoding UTF-8 -cp \"$SIB$CP\" -d \"$D/out\" \\\n \"$M/src/main/java/dev/caskeleton/bootstrap/autoconfigure/fileserver/FileserverAdminManagementContextConfiguration.java\" \\\n \"$D/ManagementPortProbe.java\" 2>&1 | head -5\njava -Dstdout.encoding=UTF-8 -cp \"$D/out:$SIB$CP:$M/src/main/resources\" \\\n org.springframework.boot.actuate.autoconfigure.web.server.ManagementPortProbe\n",
"cwd": "/shared/codebase/clean-architecture-backend-template/src",
"exitCode": 0,
"executedAt": "2026-09-02T22:24:25+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/a14-f005-publicpaths-restrictedpathrule-mgmtport.txt",
"svg": "evidence/rendered/a14-f005-publicpaths-restrictedpathrule-mgmtport.svg",
"rawSha256": "b90938fd861b4913df0efaf73036bff3aed7c47be1a5fc2df52563a2b17048cb",
"lines": 17,
"redaction": "none — 값은 이 자산이 넣거나 저장소에서 읽은 것이다"
}