Skip to content

feat: 관리자 API(AdminController) 권한 검증 로직 추가#179

Open
seonghobae wants to merge 1 commit into
mainfrom
admin-api-authorization-14384608482565855960
Open

feat: 관리자 API(AdminController) 권한 검증 로직 추가#179
seonghobae wants to merge 1 commit into
mainfrom
admin-api-authorization-14384608482565855960

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

이 PR은 시스템 내 변환 작업 전체를 조회, 삭제, 재시도할 수 있는 관리자 API(AdminController)에 보안 권한 검증을 도입합니다.

추가 및 변경 사항

  • TenantPermissionsADMIN_READ, ADMIN_WRITE 상수를 추가했습니다.
  • AdminController의 모든 엔드포인트에 @RequestHeader HttpHeaders headers를 추가하고, TenantAccessService.require()를 호출하여 권한을 검증하도록 변경했습니다.
  • 유닛 테스트(AdminControllerTest)에 TenantAccessService Mock을 추가하고 필수 헤더를 주입하도록 수정하여 기존 100% 테스트 커버리지를 유지했습니다.
  • CHANGELOG.md에 추가된 내용을 업데이트했습니다.

PR created automatically by Jules for task 14384608482565855960 started by @seonghobae

`AdminController`의 엔드포인트에 `TenantAccessService`를 통한 `ADMIN_READ`, `ADMIN_WRITE` 권한 검증을 추가하여 보안을 강화했습니다. `TenantPermissions`에 신규 권한 문자열을 정의하고, 이를 통해 적절한 권한이 있는 사용자만 관리자용 API를 호출할 수 있도록 했습니다.
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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.

1 participant