Repository navigation
feat: 우분투 계정을 서버별 ubuntu_accounts 표로 나눔 - #731
Merged
Merged
Conversation
서버마다 AD·NAS가 달라 한 사용자가 서버 수만큼 계정을 가질 수 있게 함. V23이 기존 계정을 복사하고, 기본 서버 쓰기는 옛 users 컬럼에 미러링해 롤백을 안전하게 둠. 회수·홈 삭제 후보·가입 이름 중복 검사를 계정/서버 단위로 바꿈.
Merged
yoon6yo
pushed a commit
that referenced
this pull request
Nov 18, 2026
* feat: 관리자 작업 기록 어노테이션과 작업·대상 enum 추가 과제 3절에서 정한 @AdminAction, AdminActionType, AdminTargetType 을 그대로 둔다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: 관리자 작업 기록 표(V24)와 엔티티·저장소 추가 - 쌓기만 하는 표. @immutable 엔티티, 저장소는 save·search 만 연다(삭제 없음) - 결과는 저장하지 않고 http_status 로 계산(2xx SUCCESS, 4xx REJECTED, 5xx ERROR) - 인덱스: (target_type, target_id, admin_action_log_id), (admin_id, created_at) - 본문·경로 변수·쿼리는 가린 JSON 을 longtext 로 저장 - 커서 방식 조회, 실패만 보기(http_status >= 400) 조건 - V23 은 main 의 V23__ubuntu_accounts.sql(#731)과 겹쳐 V24 를 쓴다 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: @AdminAction 요청을 인터셉터에서 기록 - preHandle 에서 어노테이션을 읽고 afterCompletion 에서 최종 상태 코드로 한 줄 남긴다 - 본문은 RequestBodyAdvice 로 @Valid 전에 잡아 검증 실패(400)도 남긴다 - 실패 응답의 code 를 ResponseBodyAdvice 로 error_code 에 옮긴다 - password·token·secret 이 들어간 칸은 *** 로 가린다(중첩·배열·쿼리 포함) - 별도 트랜잭션(REQUIRES_NEW)으로 저장하고, 실패하면 응답은 그대로 두고 [ADMIN_ACTION_LOG] ERROR 로그를 남긴다 - 저장·가리기 빈은 ObjectProvider 로 받아 @WebMvcTest 조각 테스트를 깨지 않는다 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: 관리자 작업 기록 조회 API 추가 GET /api/admin/action-logs: targetType·targetId, adminId, action, from·to, failedOnly, cursor·size(기본 20, 최대 100). /api/admin/** 아래라 관리자만 부를 수 있다. 수정·삭제 경로는 두지 않는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: 관리자 작업 19개에 @AdminAction 적용 컨트롤러 본문은 바꾸지 않고 어노테이션과 import 만 추가했다. 통합 테스트로 성공·400·409 기록, 403·어노테이션 없는 API 미기록, 저장 실패 시 응답 유지, failedOnly 조회를 확인한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
요약
ubuntu_accounts(user, server_name, username, uid, gid, status)표를 추가했습니다 (V23).users컬럼에도 미러링해 롤백을 안전하게 둡니다. 옛 컬럼 삭제는 검증 뒤 후속 버전에서 합니다.확인한 것
./gradlew build통과 (1499개 테스트, 실패 0).validate와 엔티티 일치는 테스트가 H2라 대조하지 못했습니다. 스테이징 배포 때 확인이 필요합니다.범위 밖 (LAB 계정을 켜기 전에 해결)