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
3.3 KiB
JSON
15 lines
3.3 KiB
JSON
{
|
|
"assetKey": "analysis-finding-a05-f023",
|
|
"kind": "terminal",
|
|
"command": "#!/bin/bash\nset -euo pipefail\ncd /shared/codebase/clean-architecture-backend-template\nhits() {\n local out rc\n out=$(git grep -nE \"$1\" -- \"$2\") && rc=0 || rc=$?\n [ \"$rc\" -le 1 ] || { echo \"SEARCH FAILED rc=$rc : $1\" >&2; return 2; }\n [ \"$rc\" -eq 0 ] && printf '%s\\n' \"$out\" || true\n}\nmod() { sed -E 's#^src/(.*)/src/([a-zA-Z]+)/java/.*/([A-Za-z]+\\.java):([0-9]+): *# \\1 · \\2 · \\3:\\4 #'; }\nat() { awk -v s=\"$2\" -v e=\"$3\" -v n=\"$4\" 'NR>=s && NR<=e {printf \" %s:%d %s\\n\", n, NR, $0}' \"$1\"; }\nA=src/application-core/src/main/java/dev/caskeleton/application/fileserver/quota/DefaultTransferAdmissionController.java\nQ=src/adapter/outbound/persistence-jpa/src/main/java/dev/caskeleton/adapter/outbound/persistence/fileserver/JpaFileQuotaService.java\nD=docs/fileserver/design-deviations.md\ntest -f \"$A\" && test -f \"$Q\"\n\necho \"# 설계 문서가 쿼터를 무엇으로 정의하는가\"\n{ grep -n -i 'reserved + committed\\|quota' \"$D\" || true; } | head -8 \\\n | sed -E 's#^([0-9]+): *# design-deviations.md:\\1 #'\necho \" 승인 컨트롤러의 클래스 설명 :\"\nat \"$A\" 1 30 DefaultTransferAdmissionController.java\n\necho\necho \"# 승인이 실제로 검사하는 것\"\nat \"$A\" 44 62 DefaultTransferAdmissionController.java\n\necho\necho \"# 예약이 저장되는 자리\"\nat \"$Q\" 36 53 JpaFileQuotaService.java\n\necho\necho \"# 범위별 바이트 집계를 읽는 자리\"\nhits 'reservedBytes\\(|committedBytes\\(' 'src/**/*.java' | mod\necho \" 그중 정의 파일 밖의 main 호출자 : $(\n hits 'reservedBytes\\(|committedBytes\\(' 'src/**/*.java' \\\n | { grep '/src/main/' || true; } | { grep -v 'JpaFileQuotaService.java' || true; } | grep -c . || true) 줄\"\necho \" [대조] acquireUpload 를 부르는 main 줄 : $(\n hits '\\.acquireUpload\\(' 'src/**/*.java' | { grep -c '/src/main/' || true; }) 줄\"\n\necho\necho \"# 설정에 바이트 상한이 있는가\"\nawk 'NR>=810 && NR<=832 {printf \" application.yml:%d %s\\n\", NR, $0}' src/app-bootstrap/src/main/resources/application.yml\nP=$(git ls-files -- 'src/**/FileserverProperties.java' | head -1)\nif [ -n \"$P\" ]; then\n echo \" 프로퍼티가 선언하는 값 :\"\n { grep -nE '^ (private|public).*[a-zA-Z]+;|record ' \"$P\" || true; } | head -14 \\\n | sed -E 's#^([0-9]+): *# FileserverProperties.java:\\1 #'\nfi\necho \" 범위별 바이트 상한 이름이 나오는 자리 :\"\nprintf ' fileserver 안에서 그 이름을 쓰는 자리 : %s 개\\n' \\\n \"$(hits 'quotaBytes|scopeBytes|capacityBytes|tenantCapacity|maxScopeBytes' 'src/**/fileserver/**/*.java' | grep -c . || true)\"\necho \" 승인이 읽는 프로퍼티 :\"\n{ grep -nE 'properties\\.[a-zA-Z]+\\(\\)' \"$A\" || true; } | sed -E 's#^([0-9]+): *# :\\1 #'\n",
|
|
"cwd": "/shared/codebase/clean-architecture-backend-template",
|
|
"exitCode": 0,
|
|
"executedAt": "2026-09-04T06:08:25+00:00",
|
|
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
|
|
"raw": "evidence/raw/analysis-finding-a05-f023.txt",
|
|
"svg": "evidence/rendered/analysis-finding-a05-f023.svg",
|
|
"rawSha256": "c976c37ded393622fb0af30a2822218b2c6792f350e9b95fdd48bd8eb9503908",
|
|
"lines": 132,
|
|
"redaction": "비밀값 없음"
|
|
}
|