Skip to content

[Fix] 문서 권한 회수 후 최신 원장에 따른 최종 인가 - #537

Merged
Gimini-3 merged 5 commits into
developfrom
fix/536
Oct 16, 2026
Merged

Gimini-3 merged 5 commits into
developfrom
fix/536

Conversation

@Gimini-3

Copy link
Copy Markdown
Contributor

변경

  • USER 접근 캐시를 최종 권한 원장과 교차 검증합니다. 출처·대상·접근 비트·만료·현재 컬렉션 연결을 확인합니다.
  • 상세·본문·파일 Snapshot·새 검색의 최종 읽기 인가는 현재 Primary 역할을 같은 연결에서 확인합니다.
  • 상세 등 조회 Transaction을 read-write로 명시해 read-only 라우팅을 피하며 standby에 잘못 도착하면 503으로 닫힙니다.

검증

  • 로컬 PostgreSQL 17.8·물리 Standby 2대: 계약 10개 + 실제 standby 1개, 11/11 통과
  • stale USER 캐시 주입 후 상세·본문·파일 403, 새 검색 결과 0건·금지 내용 0건, 저장소 호출 0건
  • 실제 standby 인가 PERM-003·503
  • 유효 USER·소유자·PUBLIC·컬렉션 권한 보존, 위조 ADMIN·만료·연결 제거 차단
  • 기존 관련 단위 회귀 93개 통과
  • 시험 URL·Accept·Docker internal 네트워크 준비 실패도 별도 기록

검색 모델·후보·접수 원장은 mock이며 실제 최종 인가 DB와 MVC를 실행했습니다. 공개 인증·실제 모델·GCS·자동 승격·과거 대화·진행 요청은 포함하지 않습니다. 공개 배포는 하지 않았습니다.

Closes #536

@Gimini-3
Gimini-3 requested a review from kangcheolung October 16, 2026 20:26
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: DocGrid/docgrid/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 311e465c-55a5-4a67-8d72-e0089cbd4a72
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Gimini-3 Gimini-3 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수동 검토: 캐시 출처의 문서·사용자·대상 종류·접근 비트·만료를 원장으로 검증하며 컬렉션은 현재 연결·ACTIVE 상태도 확인합니다. 기존 소유자·PUBLIC·ROLE·DEPARTMENT 경로를 유지했습니다. 상세·본문·파일 조회는 명시적 read-write 경계로 현재 Primary 역할과 같은 연결을 사용합니다. 검색은 후보의 최종 필터에서 Primary 인가를 실행합니다. 실제 로컬 PG의 stale 캐시 주입·네 MVC 경로·실제 standby 거부 총 11개와 관련 단위 93개 통과를 확인했습니다. 전체 CI에서 발견한 검색 실패 원장 통합 시험의 새 Bean 주입 누락도 수정하여 backend·frontend가 통과했습니다. 과거 RAG·진행 요청·후보 목록·공개 배포는 검증 범위와 구분했습니다.

@Gimini-3
Gimini-3 merged commit e798b4e into develop Oct 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 문서 권한 회수 후 최신 원장에 따른 최종 인가

1 participant