fix(secrets)!: 로컬 비밀 기본값을 __LOCAL_DEV_ 규칙에 맞추고 가림 약속을 구현과 맞춘다
로컬 비밀 기본값(compose·lane·application-local의 DB 비밀번호, MinIO root, Keycloak admin)이 __LOCAL_DEV_ 접두어 규칙을 따르지 않아 prod sentinel 검사가 그 값을 알아보지 못한다. secrets-classification.yaml은 구현 없는 masking_rule full_except_last_4를 약속하고, full로 적은 키 일부 (salt·PEM·HMAC/signing key, URI 사용자 정보)를 LogMaskingPatterns가 가리지 않는다. required_test는 없는 시험 이름이다. IP 신뢰 설정을 두 문서가 다르게 적는다(application-local은 framework, rate-limiting은 native). - 기본값을 __LOCAL_DEV_db_password__·__LOCAL_DEV_minio_root__· __LOCAL_DEV_keycloak_admin__로 바꾼다. - masking_rule을 full|userinfo|none 셋으로 줄이고, LogMaskingPatterns의 키 목록을 넓히고 URI userinfo와 여러 줄 PEM 블록 가림을 더한다. 시험이 masking_rule 어휘, required_test 클래스 존재, full·userinfo 행이 실제로 가려지는지 본다. 버린 안: full_except_last_4 구현(끝 네 자리를 남길 값이 없다). - IP 신뢰는 native + 내부 proxy 목록 하나로 적는다. 위험: 로컬 compose 볼륨이 옛 비밀번호로 만들어졌으면 DB 접속이 실패한다 (docs/upgrade/2026-11-round9-observability.md 6행). 운영 값은 바뀌지 않는다. 검증: 위와 같은 desktop 실행(묶음 셋을 합친 트리) rc=0. Refs: RR9-02-10, RR9-02-12, RR9-02-13 BREAKING CHANGE: 로컬 compose·lane의 비밀 기본값이 바뀐다. 옛 볼륨은 지우거나 env로 옛 값을 준다(docs/upgrade/2026-11-round9-observability.md 6~7행).
This commit is contained in:
@@ -266,7 +266,7 @@ run_lane() {
|
||||
#
|
||||
# The database credentials are additionally *exported*, because two different mechanisms have to
|
||||
# agree on them. The application reads this file; the `db` service takes its POSTGRES_USER and
|
||||
# POSTGRES_PASSWORD from Compose interpolation — `${APP_DATASOURCE_PASSWORD:-ca_skeleton}` — and
|
||||
# POSTGRES_PASSWORD from Compose interpolation — `${APP_DATASOURCE_PASSWORD:-__LOCAL_DEV_db_password__}` — and
|
||||
# interpolation reads the process environment and the project .env file, never a service's
|
||||
# env_file. So the application got the generated password and the database got the literal
|
||||
# default, and no lane whose overlay did not happen to restate the value could ever authenticate.
|
||||
|
||||
Reference in New Issue
Block a user