Files
document-haness/docs/keycloak-session-store/final/assets/d3-secret-exposure/d3-secret-exposure.alt.md
T

21 lines
890 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# base64 는 암호화가 아니다
## Alternative text
Secret 의 값이 base64 디코드와 파드 환경 변수 두 경로로 모두 평문에 닿는 구성.
## Long description
kubectl get secret -o yaml 이 보여주는 base64 는 인코딩이지 암호화가 아니다. etcd 에 평문으로 있다. 그리고 파드 안에서 env 를 grep 하면 그대로 나온다. 값을 Secret 에 넣었다는 것과 값이 가려졌다는 것은 다른 사건이다.
## Elements and evidence
- **k8s Secret** (datastore): base64 로 담긴다. Evidence: L1002L1006.
- **etcd** (datastore): 평문으로 있다. Evidence: L1002L1006.
- **파드 환경 변수** (component): env 로 그대로 읽힌다. Evidence: L1002L1006.
## Relationships
- **k8s Secret → etcd:** 저장. Evidence: L1002L1006.
- **k8s Secret → 파드 환경 변수:** 주입. Evidence: L1002L1006.