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

124 lines
12 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1426" viewBox="0 0 1200 1426" 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="1424" 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/messaging/messaging-spring-boot-starter
CACHE=/root/.gradle/caches/modules-2/files-2.1
java -version 2&gt;&amp;1 | gre</tspan><tspan x="24" dy="22">p version
cp=&quot;&quot;
while IFS= read -r line; do
coord=${line%%=*}; confs=${line#*=}
case &quot;,$confs,&quot; in *&quot;,testRuntimeCla</tspan><tspan x="24" dy="22">sspath,&quot;*) ;; *) continue ;; esac
g=${coord%%:*}; rest=${coord#*:}; n=${rest%%:*}; v=${rest##*:}
jar=$(find &quot;$CACHE/</tspan><tspan x="24" dy="22">$g/$n/$v&quot; -name &#x27;*.jar&#x27; ! -name &#x27;*sources*&#x27; ! -name &#x27;*javadoc*&#x27; 2&gt;/dev/null | head -1) || true
[ -n &quot;$jar&quot; ] &amp;&amp; cp=&quot;$c</tspan><tspan x="24" dy="22">p:$jar&quot;
done &lt; &lt;(grep -E &#x27;^[a-zA-Z0-9._-]+:[^=]+=&#x27; &quot;$M/gradle.lockfile&quot;)
cat &gt; &quot;$D/TlsDefaultProbe.java&quot; &lt;&lt;&#x27;JAVA&#x27;
impor</tspan><tspan x="24" dy="22">t org.apache.kafka.clients.CommonClientConfigs;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apac</tspan><tspan x="24" dy="22">he.kafka.common.config.SaslConfigs;
import org.apache.kafka.common.config.SslConfigs;
import org.apache.kafka.common.ser</tspan><tspan x="24" dy="22">ialization.ByteArraySerializer;
import org.apache.kafka.common.serialization.StringSerializer;
import java.util.HashMap;</tspan><tspan x="24" dy="22">
import java.util.Map;
import java.util.TreeSet;
/** 조립되는 두 생산자의 설정 맵을 그대로 Kafka 클라이언트에 넘겨 해석</tspan><tspan x="24" dy="22">된 보안 값을 읽는다. */
public final class TlsDefaultProbe {
/** KafkaMessagingAutoConfiguration.messagingKafkaProduc</tspan><tspan x="24" dy="22">er:139-152 이 넣는 것 전부. */
private static Map&lt;String, Object&gt; platformTransport() {
Map&lt;String, Object&gt; config</tspan><tspan x="24" dy="22"> = new HashMap&lt;&gt;();
config.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, &quot;broker-1:9093&quot;);
config.put(ProducerCon</tspan><tspan x="24" dy="22">fig.KEY_SERIALIZER_CLASS_CONFIG, ByteArraySerializer.class);
config.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG</tspan><tspan x="24" dy="22">, ByteArraySerializer.class);
config.put(ProducerConfig.ACKS_CONFIG, &quot;all&quot;);
config.put(ProducerConfig.ENABLE_ID</tspan><tspan x="24" dy="22">EMPOTENCE_CONFIG, true);
return config;
}
/** KafkaSenderConfig.kafkaSeamProducer:65-80 이 넣는 것 전부. */
p</tspan><tspan x="24" dy="22">rivate static Map&lt;String, Object&gt; seam() {
Map&lt;String, Object&gt; config = new HashMap&lt;&gt;();
config.put(ProducerConf</tspan><tspan x="24" dy="22">ig.BOOTSTRAP_SERVERS_CONFIG, &quot;broker-1:9093&quot;);
config.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializ</tspan><tspan x="24" dy="22">er.class);
config.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
config.put(Producer</tspan><tspan x="24" dy="22">Config.ACKS_CONFIG, &quot;all&quot;);
config.put(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG, true);
config.put(ProducerConfi</tspan><tspan x="24" dy="22">g.MAX_BLOCK_MS_CONFIG, 10_000);
config.put(ProducerConfig.LINGER_MS_CONFIG, 0);
config.put(ProducerConfig.REQUES</tspan><tspan x="24" dy="22">T_TIMEOUT_MS_CONFIG, 15_000);
config.put(ProducerConfig.DELIVERY_TIMEOUT_MS_CONFIG, 30_000);
return config;
}
</tspan><tspan x="24" dy="22">
private static void report(String label, Map&lt;String, Object&gt; config) {
System.out.println(&quot; &quot; + label);
Syst</tspan><tspan x="24" dy="22">em.out.println(&quot; 조립부가 넣은 키 &quot; + config.size() + &quot; 개 : &quot; + new TreeSet&lt;&gt;(config.keySet()));
ProducerConfig </tspan><tspan x="24" dy="22">resolved = new ProducerConfig(config);
System.out.println(
&quot; security.protocol = &quot;</tspan><tspan x="24" dy="22">
+ resolved.getString(CommonClientConfigs.SECURITY_PROTOCOL_CONFIG));
System.out.println(
&quot; s</tspan><tspan x="24" dy="22">sl.endpoint.identification.algorithm = \&quot;&quot;
+ resolved.getString(SslConfigs.SSL_ENDPOINT_IDENTIFICATION_AL</tspan><tspan x="24" dy="22">GORITHM_CONFIG) + &quot;\&quot;&quot;);
System.out.println(
&quot; sasl.mechanism = &quot;
+</tspan><tspan x="24" dy="22"> resolved.getString(SaslConfigs.SASL_MECHANISM));
System.out.println(
&quot; sasl.jaas.config </tspan><tspan x="24" dy="22"> = &quot;
+ resolved.getPassword(SaslConfigs.SASL_JAAS_CONFIG));
System.out.println(
&quot; ssl.</tspan><tspan x="24" dy="22">enabled.protocols = &quot;
+ resolved.getList(SslConfigs.SSL_ENABLED_PROTOCOLS_CONFIG));
S</tspan><tspan x="24" dy="22">ystem.out.println();
}
public static void main(String[] args) {
System.out.println();
System.out.println(&quot;k</tspan><tspan x="24" dy="22">afka-clients &quot; + org.apache.kafka.common.utils.AppInfoParser.getVersion()
+ &quot; 가 아래 설정 맵에서 해석하는 보안 </tspan><tspan x="24" dy="22">&quot;);
report(&quot;KafkaMessagingAutoConfiguration.messagingKafkaProducer&quot;, platformTransport());
report(&quot;KafkaSender</tspan><tspan x="24" dy="22">Config.kafkaSeamProducer&quot;, seam());
}
}
JAVA
javac -encoding UTF-8 -cp &quot;$cp&quot; -d &quot;$D/out&quot; &quot;$D/TlsDefaultProbe.java&quot; 2&gt;&amp;</tspan><tspan x="24" dy="22">1 | head -10
java -Dstdout.encoding=UTF-8 -cp &quot;$D/out:$cp&quot; TlsDefaultProbe 2&gt;&amp;1 | grep -vE &#x27;^[0-9]{4}-|^\s+at |WARN |INF</tspan><tspan x="24" dy="22">O |SLF4J&#x27;
</tspan></text>
<text x="24" y="882" 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</tspan></text>
<text x="24" y="904" 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-03T12:25:21+00:00 · exit 0</tspan></text>
<line x1="24" y1="918" x2="1176" y2="918" stroke="#30363d"/>
<text x="24" y="958" 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="980" 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="1002" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0">kafka-clients 4.1.2 가 아래 설정 맵에서 해석하는 보안 값</tspan></text>
<text x="24" y="1024" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> KafkaMessagingAutoConfiguration.messagingKafkaProducer</tspan></text>
<text x="24" y="1046" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 조립부가 넣은 키 5 개 : [acks, bootstrap.servers, enable.idempotence, key.serializer, value.serializer]</tspan></text>
<text x="24" y="1068" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> security.protocol = PLAINTEXT</tspan></text>
<text x="24" y="1090" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> ssl.endpoint.identification.algorithm = &quot;https&quot;</tspan></text>
<text x="24" y="1112" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> sasl.mechanism = GSSAPI</tspan></text>
<text x="24" y="1134" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> sasl.jaas.config = null</tspan></text>
<text x="24" y="1156" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> ssl.enabled.protocols = [TLSv1.2, TLSv1.3]</tspan></text>
<text x="24" y="1178" 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="1200" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> KafkaSenderConfig.kafkaSeamProducer</tspan></text>
<text x="24" y="1222" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> 조립부가 넣은 키 9 개 : [acks, bootstrap.servers, delivery.timeout.ms, enable.idempotence, key.serializer, linger.ms, max.bl</tspan><tspan x="24" dy="22">ock.ms, request.timeout.ms, value.serializer]</tspan></text>
<text x="24" y="1266" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> security.protocol = PLAINTEXT</tspan></text>
<text x="24" y="1288" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> ssl.endpoint.identification.algorithm = &quot;https&quot;</tspan></text>
<text x="24" y="1310" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> sasl.mechanism = GSSAPI</tspan></text>
<text x="24" y="1332" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> sasl.jaas.config = null</tspan></text>
<text x="24" y="1354" fill="#e6edf3" font-size="14" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" xml:space="preserve"><tspan x="24" dy="0"> ssl.enabled.protocols = [TLSv1.2, TLSv1.3]</tspan></text>
<text x="24" y="1376" 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>