[FEAT] 부스 예약 : QR 발급 실패 시 승인 롤백 보상 처리 구현#27
Open
dldusgh318 wants to merge 4 commits into
Open
Conversation
Collaborator
boogiewooki02
left a comment
There was a problem hiding this comment.
고생하셨습니다! 코드리뷰 두 가지만 확인 부탁드립니다!
| .permitAll() | ||
| .requestMatchers("/api/auth/signup", "/api/auth/login", "/api/health") | ||
| .permitAll() | ||
| .requestMatchers("/api/admin/auth/signup") |
Collaborator
There was a problem hiding this comment.
/api/admin/auth/signup이 permitAll()로 열려 있어서 URL만 알면 누구나
ADMIN 계정을 만들 수 있습니다. 일반 회원가입에서 관리자 선택을 제거했더라도,
이 공개 API로 관리자 권한을 발급받을 수 있어 /api/admin/** 보호가 무력화될
수 있습니다.
관리자 가입은 기존 관리자 권한 필요, 초대 토큰 검증, 로컬/개발 프로필 전용
등 별도 제한을 두는 게 안전해 보입니다.
| "/api/map-locations", | ||
| "/api/map-locations/**") | ||
| .permitAll() | ||
| .requestMatchers(HttpMethod.GET, "/api/booth-reservations/*") |
Collaborator
There was a problem hiding this comment.
PR 설명에는 예약 조회를 로그인 계정 기준으로 변경했다고 되어 있는데, 단건 예
약 조회 GET /api/booth-reservations/{reservationId}는 여전히 공개 접근 가
능합니다. 응답에 신청자명, 부스, 테이블 수, 상태, QR 정보가 포함되므로
reservationId를 알면 타인의 예약 정보를 볼 수 있습니다.
QR 스캔 확인 화면 때문에 공개 조회가 의도라면 PR 설명과 API 책임을 명확히 분
리하는 게 좋고, 아니라면 단건 조회도 인증 후 본인 예약 또는 관리자만 조회 가
능하도록 제한하는 게 맞아 보입니다.
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.
close #8
🔎 개요
부스 예약 QR 발급 실패 시 승인 상태를 보상 처리하고, 관리자/사용자 화면에서 실패 상태와 재처리 동선을 확인할 수 있도록 구현했습니다.
📝 작업 내용
QR_FAILED로 전환하도록 구현USER만 생성하도록 수정/admin/signup화면 분리👀 변경 사항
/admin/signup에서 생성합니다.403을 반환합니다.📸 스크린샷 (Optional)
/admin/signup