Files
document-haness/docs/clean-architecture-backend-template/final/assets/diagrams/rls-three-preconditions/rls-three-preconditions.alt.md
T

23 lines
1.3 KiB
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.
# PostgreSQL RLS 적용 여부를 가르는 분기
## Alternative text
RLS 비활성은 policy 미적용으로, superuser와 BYPASSRLS는 우회로, owner는 FORCE 여부로 갈리고, policy 대상인데 applicable policy가 없으면 default deny가 되는 흐름도
## Long description
PostgreSQL RLS를 세 개의 동시 전제로 보지 않는다. RLS가 활성화된 뒤 superuser 또는 BYPASSRLS인지, table owner인지와 FORCE RLS 여부를 확인한다. policy 대상 role에 applicable policy가 없으면 default deny이고, policy가 있으면 USING과 WITH CHECK를 평가한다.
## Elements and evidence
- **Boundary: policy 적용 대상 판정** (boundary): No additional description. Evidence: L7400L7432.
- **Boundary: policy 존재와 평가** (boundary): No additional description. Evidence: L7400L7432.
- **RLS 활성 여부** (process): No additional description. Evidence: L7400L7432.
- **policy 적용 대상** (process): No additional description. Evidence: L7400L7432.
- **applicable policy** (process): No additional description. Evidence: L7400L7432.
## Relationships
- **RLS 활성 여부 → policy 적용 대상:** RLS on. Evidence: L7400L7432.
- **policy 적용 대상 → applicable policy:** 적용. Evidence: L7400L7432.