Merged
Conversation
Collaborator
Author
|
엥 왜 실패해요 |
minsoo0506
approved these changes
Mar 1, 2026
Collaborator
minsoo0506
left a comment
There was a problem hiding this comment.
확인했습니다 :) 매번 감사합니다 유찬 선생...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경사항
어드민 권한일 경우, 아래 API들을 사용할 수 있도록 validate 검증을 수정했습니다.
아래 API들을 어드민도 사용할 수 있습니다. 사실상 거의 대부분의 API를 활용할 수 있도록 열어뒀습니다
코드가 많이 바뀌지 않아, 잘 돌아갈 것이라고 생각해 테스트 코드만 작성했으며, 실제 postman을 통한 API 테스트는 진행하지 않았습니다.
테스트
ValidationUtilsAdminBypassTest
ValidationUtils의 권한 검증 메서드에 대한 어드민 bypass 단위 테스트
validateGroupMembership() - 그룹 멤버십 검증
validateBasicAccess() - 기본 접근 검증 (복합 흐름) (기본 접근 검증 (사용자, 스터디 그룹 존재, 멤버십))
validateMentorAccess() - 멘토 접근 검증 (복합 흐름) (멘토 접근 검증 (사용자 존재, 스터디 그룹 존재, 멘토 권한))
validateMentorRole() - 멘토 역할 검증
validateMenteeRole() - 멘티 역할 검증 (리그레션) (멘티 접근 검증 (사용자 존재, 스터디 그룹 존재, 멘티 권한))
(과제 제출/수정/삭제 같은 멘티 전용 작업은 어드민도 불가함을 보장)
MentorServiceAdminBypassTest
MentorService의 creator 체크 및 쓰기 작업에 대한 어드민 bypass 단위 테스트
checkMentor() - 멘토(creator) 확인
warnMember() - 멘티 경고 부여
addMember() - 멤버 추가
deleteMember() - 멤버 삭제
이거 통과되면 바로 프로젝트 구조를 좀 수정하려고 합니다.

깃허브 액션 Security 수정
문제
해결