GSMSV 운영 컨테이너 상태 및 오류 로그 Discord 알림 구축 - #42
Open
exijn wants to merge 1 commit into
Open
Conversation
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.
✨ 작업 내용
🔍 리뷰 시 참고사항
mudda-prodproject의app,postgres,redis입니다./etc/mudda/discord-alert.env에서만 읽습니다. GitHub Secret은 서버 프로세스에서 직접 읽지 않습니다.변경 파일
ops/runtime/의 감시·알림·마스킹 스크립트, systemd unit/timer, 설치·제거 스크립트, fixture 테스트ops/runtime/discord-alert.env.exampledocs/GSMSV_RUNTIME_ALERTS.md설계·보안
NoNewPrivileges,PrivateTmp,ProtectSystem, read-only 경로를 적용했습니다.docker ps,docker inspect,docker logs, readiness GET, 시스템 지표 조회만 수행하며restart,down, prune, volume 명령을 실행하지 않습니다.flock과 atomic temp-file +mv로 동시 실행과 상태 갱신 race를 제어합니다.검증 결과
bash -n ops/runtime/*.sh ops/runtime/tests/test.sh: 통과bash ops/runtime/tests/test.sh: 통과git diff --check: 통과systemd-analyze: 로컬 Windows 환경에 명령이 없어 실행하지 못함shellcheck: 설치되어 있지 않아 실행하지 못함./gradlew test: JDK 25/전역 JDK 26 설정 및 Kotlin DSL 호환 오류가 있었고, JDK 23 재시도는 Docker/Testcontainers 환경에서 중단됨자체 코드 리뷰
설치 전 사용자 작업
/etc/mudda/discord-alert.env에 실제 webhook을 직접 입력하고 root:600 권한 유지제외 범위 및 후속 작업
✅ 체크리스트
.env.example등) 변경이 필요한 경우 작성 또는 수정했나요?develop)🌏 Deploy, 리뷰어는 지정하지 않음)📎 관련 이슈(선택)