Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/runtime-reachability-and-composition/case/case-messaging-security-f04.md
T
DongHyeonkaandClaude Fable 5.1 b25357c48a docs(clean-architecture-backend-template): fold analysis into final and re-select one topic
- analysis/·source-index·state.json 을 final/document.md 제2부·제3부로 접었다. SSOT 는 하나다
- 파일럿 — commit-ambiguity-as-a-result 를 새 기준으로 재선별. 후보 14 → 글감 5
  (PROMOTE 5 · MERGE_INTO 3 · KEEP_IN_SSOT 4 · 보류 2). 기록 5건을 다시 썼고 그림 1개를
  techviz 로 만들었다
- 재선별이 잡은 것: 제1부 §6.2·§11.1 이 자기 §13.2 와 어긋나 있었다(레인을 안 돌렸다 vs
  돌렸다) — 정정. 이미 답이 나와 있던 Question 을 HEAD 재실행 질문으로 다시 세웠다.
  Concept 이 인용한 코드가 SSOT 에 없어 뺐다
- candidateScope·sourceRepository 기록. 나머지 43개 주제는 재선별 대기(PENDING 905)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 12:39:20 +09:00

3.5 KiB

kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, assets, evidence, source, module, priority
kind slug title topic project status sourceRevision rootTreeNode evidenceCapturedOn assets evidence source module priority
CASE messaging-security-f04 종료 시 자격증명 소거가 호출되지 않는다 runtime-reachability-and-composition clean-architecture-backend-template 게시 전 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 case:messaging-security-f04 2026-09-01
key file
messaging-security-f04 ../../../final/evidence/rendered/messaging-security-f04.svg
../../../final/evidence/raw/messaging-security-f04.txt
원본 분석 절은 final/document.md#a19-messaging-security#L661 이다.
messaging-security P3

종료 시 자격증명 소거가 호출되지 않는다

CredentialRuntimeRegistry.clearAll()의 javadoc이 "Clears every held credential, for shutdown"이라고 하고, 호출자가 저장소에 없다. 이 leaf 전체가 "비밀이 힙에 남지 않게 한다"를 목적으로 하고(char[], clear(), 회전 시 즉시 소거), 종료 경로에서 그 마지막 단계가 빠져 있다.

관계

  • 배선된 게이트는 자기 leaf 레인에서 검증한다 같은 분석 리프에서 끌어낸 규칙이다.
  • 같은 술어가 두 타입에 있으면 하나가 다른 하나를 부른다 같은 분석 리프에서 끌어낸 규칙이다.
  • 가변 필드로 상태 전이를 표현하면 가시성을 함께 정한다 같은 분석 리프에서 끌어낸 규칙이다.
  • 맵 갱신 함수 안에서 I/O를 하면 그 지연이 락 범위가 된다 같은 분석 리프에서 끌어낸 규칙이다.

문제

CredentialRuntimeRegistry.clearAll()의 javadoc이 "Clears every held credential, for shutdown"이라고 하고, 호출자가 저장소에 없다.

이 leaf 전체가 "비밀이 힙에 남지 않게 한다"를 목적으로 하고(char[], clear(), 회전 시 즉시 소거), 종료 경로에서 그 마지막 단계가 빠져 있다.

결론

프로세스가 끝나면 힙도 사라지지만, 종료가 느리거나 힙 덤프가 뜨는 경우가 정확히 이 통제가 노리는 상황이다.

검증 환경

OpenJDK : 21.0.12 java -version 으로 확인 Gradle : 9.0.0 src/gradle/wrapper/gradle-wrapper.properties 의 distributionUrl 로 확인 확인 방식 : clearAll 호출자 전수 검색과 종료 계약의 자격증명 소거 단계 대조 소스 수정 : x

재현 조건

원문은 final/document.md#a19-messaging-security#L661 에 있다.

본문

CredentialRuntimeRegistry.clearAll()의 javadoc이 "Clears every held credential, for shutdown"이라고 하고, 호출자가 저장소에 없다.

clearAll() 의 javadoc 과 호출자 수

:::evidence key="messaging-security-f04" alt="분석 문서 final/document.md#a19-messaging-security 에서 이 기록의 근거 절을 그대로 잘라낸 15줄. 코드베이스를 측정한 것이 아니라 원본 판정이 무엇을 적었는지를 보여 준다." caption="final/document.md#a19-messaging-security 발췌 — 15줄" zoom="true" :::

이 leaf 전체의 목적에서 마지막 단계가 빠졌다

"비밀이 힙에 남지 않게 한다"를 위해 char[], clear(), 회전 시 즉시 소거를 두었는데 종료 경로가 비어 있다.

프로세스가 끝나면 힙도 사라지지만

종료가 느리거나 힙 덤프가 뜨는 경우가 정확히 이 통제가 노리는 상황이다.

확인하지 못한 것

힙 덤프로 자격증명 잔존을 확인하지 않았다. 호출자 부재로 판정했다.