Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/cross-leaf-integration-facts/case/case-the-admin-switch-turns-on-the-guard-and-not-the-service.md
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

76 lines
3.4 KiB
Markdown

---
kind: CASE
slug: the-admin-switch-turns-on-the-guard-and-not-the-service
title: admin 스위치가 가드를 켜고 서비스는 켜지 않는다
topic: cross-leaf-integration-facts
project: clean-architecture-backend-template
status: 게시 전
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
rootTreeNode: case:the-admin-switch-turns-on-the-guard-and-not-the-service
evidenceCapturedOn: 2026-09-01
assets:
- key: the-admin-switch-turns-on-the-guard-and-not-the-service
file: ../../../final/evidence/rendered/the-admin-switch-turns-on-the-guard-and-not-the-service.svg
- key: the-admin-switch-turns-on-the-guard-and-not-the-service-diagram
file: ../../../final/assets/diagrams/the-admin-switch-turns-on-the-guard-and-not-the-service.svg
evidence:
- ../../../final/evidence/raw/the-admin-switch-turns-on-the-guard-and-not-the-service.txt
source:
- 원본 분석 절은 analysis/19-messaging-platform.md#L975 이다.
module: integration/19-messaging-platform
priority: P2
---
# admin 스위치가 가드를 켜고 서비스는 켜지 않는다
운영자가 admin 기능을 켜는 프로퍼티 하나가 파괴적 작업 가드를 활성화한다. 같은 스위치가 그 가드를 실제로 부르는 admin 서비스 빈은 만들지 않는다.
## 문제
운영자가 admin 기능을 켜는 프로퍼티 하나가 파괴적 작업 가드를 활성화한다.
같은 스위치가 그 가드를 실제로 부르는 admin 서비스 빈은 만들지 않는다.
## 결론
결과적으로 스위치는 '켜졌다' 는 상태를 만들고 그 상태를 소비하는 경로가 없다.
두 리프의 SSOT 를 겹쳐야만 보이는 형태다 — 한쪽은 가드의 조건을, 다른 쪽은 서비스 빈의 부재를 소유한다.
## 검증 환경
OpenJDK : 21.0.12 java -version 으로 확인
Gradle : 9.0.0 src/gradle/wrapper/gradle-wrapper.properties 의 distributionUrl 로 확인
확인 방식 : admin 스위치가 만드는 빈 4종 전수 확인과 그 가드를 부르는 서비스 빈의 생성 지점 검색
소스 수정 : x
## 재현 조건
원문은 analysis/19-messaging-platform.md#L975 에 있다.
## 본문
<!-- body:start -->
운영자가 admin 기능을 켜는 프로퍼티 하나가 파괴적 작업 가드를 활성화한다. 같은 스위치가 그 가드를 실제로 부르는 admin 서비스 빈은 만들지 않는다.
## 스위치가 닿는 범위
:::evidence key="the-admin-switch-turns-on-the-guard-and-not-the-service-diagram" alt="admin 스위치에서 가드와 저널과 검증기는 만들어지고 admin 서비스 빈은 빗금인 두 갈래가 나온다" caption="스위치가 닿는 범위" zoom="false"
:::
## 스위치가 만드는 빈 넷
:::evidence key="the-admin-switch-turns-on-the-guard-and-not-the-service" alt="분석 문서 analysis/19-messaging-platform.md 에서 이 기록의 근거 절을 그대로 잘라낸 15줄. 코드베이스를 측정한 것이 아니라 원본 판정이 무엇을 적었는지를 보여 준다." caption="analysis/19-messaging-platform.md 발췌 — 15줄" zoom="true"
:::
## 켜졌다는 상태를 소비하는 경로가 없다
두 리프의 SSOT 를 겹쳐야만 보이는 형태다 — 한쪽은 가드의 조건을, 다른 쪽은 서비스 빈의 부재를 소유한다.
## 확인하지 못한 것
부팅된 컨텍스트에서 admin 평면을 켜고 빈 그래프를 관측하지 않았다. 런타임 관측을 수행하지 않았다.
<!-- body:end -->