--- kind: CONCEPT slug: adapter-outbound-cache-redis-c02 title: 기본값이 가리키는 리소스가 없고 그것이 시작 실패로 잡힌다 topic: composition-and-lifecycle-models project: clean-architecture-backend-template status: 게시 전 sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 rootTreeNode: concept:adapter-outbound-cache-redis-c02 evidenceCapturedOn: 2026-09-01 assets: - key: adapter-outbound-cache-redis-c02 file: ../../../final/evidence/rendered/adapter-outbound-cache-redis-c02.svg evidence: - ../../../final/evidence/raw/adapter-outbound-cache-redis-c02.txt source: - 원본 분석 절은 analysis/10-adapter-outbound-cache-redis.md#L107 이다. module: adapter-outbound-cache-redis --- # 기본값이 가리키는 리소스가 없고 그것이 시작 실패로 잡힌다 `RedisSdkSettings.Raw.policyResource` 기본값 `classpath:redis-sdk/raw-command-allowlist.yml`은 저장소에 없는 파일이다. 결함이 아니라 이미 잡혀 있는 함정이다. ## 본문 `RedisSdkSettings.Raw.policyResource` 기본값은 `classpath:redis-sdk/raw-command-allowlist.yml`인데, 저장소에 그 파일은 **없다**(`159-...` §8.3b, `git ls-files` 매치 0. 이 leaf의 main resource는 `AutoConfiguration.imports`와 `redis-sdk/redis-command-policy.yml` 둘뿐). ## 결함이 아니라 이미 잡혀 있는 함정이다 `requireRawPolicyResource`가 그 사실과 과거 증상을 함께 적는다. > "`validate()` only checks that the setting is non-blank, and the default points at … a resource this module does not ship. So enabling the raw gateway passed configuration validation and then **failed at the first raw command, from inside a request, against a live connection.** The allowlist is the entire authorisation model for that gateway; not being able to read it is a startup failure." test `enabledRejectsAMissingRawAllowlistResource`와 `enabledAcceptsAReadableRawAllowlistResource`가 양쪽을 고정한다. ## 분석 원문의 확인 절차 :::evidence key="adapter-outbound-cache-redis-c02" alt="분석 문서 analysis/10-adapter-outbound-cache-redis.md 에서 이 기록의 근거 절을 그대로 잘라낸 15줄. 코드베이스를 측정한 것이 아니라 원본 판정이 무엇을 적었는지를 보여 준다." caption="analysis/10-adapter-outbound-cache-redis.md 발췌 — 15줄" zoom="true" :::