Files
document-haness/docs/clean-architecture-backend-template/final/evidence/meta/a-validator-that-demands-tls-and-an-assembly-that-omits-it-run.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.1 KiB
JSON

{
"assetKey": "a-validator-that-demands-tls-and-an-assembly-that-omits-it-run",
"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/messaging/messaging-spring-boot-starter\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\")\n\ncat > \"$D/TlsDefaultProbe.java\" <<'JAVA'\nimport org.apache.kafka.clients.CommonClientConfigs;\nimport org.apache.kafka.clients.producer.ProducerConfig;\nimport org.apache.kafka.common.config.SaslConfigs;\nimport org.apache.kafka.common.config.SslConfigs;\nimport org.apache.kafka.common.serialization.ByteArraySerializer;\nimport org.apache.kafka.common.serialization.StringSerializer;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.TreeSet;\n\n/** 조립되는 두 생산자의 설정 맵을 그대로 Kafka 클라이언트에 넘겨 해석된 보안 값을 읽는다. */\npublic final class TlsDefaultProbe {\n\n /** KafkaMessagingAutoConfiguration.messagingKafkaProducer:139-152 이 넣는 것 전부. */\n private static Map<String, Object> platformTransport() {\n Map<String, Object> config = new HashMap<>();\n config.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, \"broker-1:9093\");\n config.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, ByteArraySerializer.class);\n config.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, ByteArraySerializer.class);\n config.put(ProducerConfig.ACKS_CONFIG, \"all\");\n config.put(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG, true);\n return config;\n }\n\n /** KafkaSenderConfig.kafkaSeamProducer:65-80 이 넣는 것 전부. */\n private static Map<String, Object> seam() {\n Map<String, Object> config = new HashMap<>();\n config.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, \"broker-1:9093\");\n config.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);\n config.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class);\n config.put(ProducerConfig.ACKS_CONFIG, \"all\");\n config.put(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG, true);\n config.put(ProducerConfig.MAX_BLOCK_MS_CONFIG, 10_000);\n config.put(ProducerConfig.LINGER_MS_CONFIG, 0);\n config.put(ProducerConfig.REQUEST_TIMEOUT_MS_CONFIG, 15_000);\n config.put(ProducerConfig.DELIVERY_TIMEOUT_MS_CONFIG, 30_000);\n return config;\n }\n\n private static void report(String label, Map<String, Object> config) {\n System.out.println(\" \" + label);\n System.out.println(\" 조립부가 넣은 키 \" + config.size() + \" 개 : \" + new TreeSet<>(config.keySet()));\n ProducerConfig resolved = new ProducerConfig(config);\n System.out.println(\n \" security.protocol = \"\n + resolved.getString(CommonClientConfigs.SECURITY_PROTOCOL_CONFIG));\n System.out.println(\n \" ssl.endpoint.identification.algorithm = \\\"\"\n + resolved.getString(SslConfigs.SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG) + \"\\\"\");\n System.out.println(\n \" sasl.mechanism = \"\n + resolved.getString(SaslConfigs.SASL_MECHANISM));\n System.out.println(\n \" sasl.jaas.config = \"\n + resolved.getPassword(SaslConfigs.SASL_JAAS_CONFIG));\n System.out.println(\n \" ssl.enabled.protocols = \"\n + resolved.getList(SslConfigs.SSL_ENABLED_PROTOCOLS_CONFIG));\n System.out.println();\n }\n\n public static void main(String[] args) {\n System.out.println();\n System.out.println(\"kafka-clients \" + org.apache.kafka.common.utils.AppInfoParser.getVersion()\n + \" 가 아래 설정 맵에서 해석하는 보안 값\");\n report(\"KafkaMessagingAutoConfiguration.messagingKafkaProducer\", platformTransport());\n report(\"KafkaSenderConfig.kafkaSeamProducer\", seam());\n }\n}\nJAVA\njavac -encoding UTF-8 -cp \"$cp\" -d \"$D/out\" \"$D/TlsDefaultProbe.java\" 2>&1 | head -10\njava -Dstdout.encoding=UTF-8 -cp \"$D/out:$cp\" TlsDefaultProbe 2>&1 | grep -vE '^[0-9]{4}-|^\\s+at |WARN |INFO |SLF4J'\n",
"cwd": "/shared/codebase/clean-architecture-backend-template",
"exitCode": 0,
"executedAt": "2026-09-03T12:25:21+00:00",
"sourceRevision": "21234e38cdb9a926cbc92bb97a2aee2e4a7d2916",
"raw": "evidence/raw/a-validator-that-demands-tls-and-an-assembly-that-omits-it-run.txt",
"svg": "evidence/rendered/a-validator-that-demands-tls-and-an-assembly-that-omits-it-run.svg",
"rawSha256": "8166ac858937e31c89d3b966af339b8d7ca308e0c93d3359f550afe3bb25416f",
"lines": 19,
"redaction": "없음 — 로그 줄만 걸러낸 실행 출력"
}