Skip to content

민감한 런타임 로그를 마스킹하고 릴리스 빌드에서 비활성화#401

Merged
jjoonleo merged 1 commit into
mainfrom
codex/implement-issue-389
May 7, 2026
Merged

민감한 런타임 로그를 마스킹하고 릴리스 빌드에서 비활성화#401
jjoonleo merged 1 commit into
mainfrom
codex/implement-issue-389

Conversation

@jjoonleo

@jjoonleo jjoonleo commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Dart 공통 로거를 추가해 debug 전용 로그와 민감값 마스킹을 중앙화했습니다.
  • Dio 인터셉터와 request transformer에서 헤더, 쿼리, 본문, 응답 본문이 그대로 노출되지 않도록 변경했습니다.
  • main()에서 비디버그 빌드의 debugPrint 출력을 차단하고, FCM 토큰 로그는 마스킹하도록 바꿨습니다.
  • Android 알람 관련 Log.* 호출을 NativeLog로 감싸 릴리스 빌드에서는 출력되지 않게 했고, iOS AlarmKit 로그도 #if DEBUG로 제한했습니다.
  • 후속 작업을 위한 Logging-Policy.md와 마스킹 테스트를 추가했습니다.

Testing

  • flutter test test/core/logging/app_logger_test.dart
  • flutter analyze
  • git diff --check
  • Android Kotlin 컴파일도 시도했지만, 로컬 मशीन의 디스크 여유 공간 부족으로 Gradle 단계에서 중단되었습니다.

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit d3e949f):

https://ontime-c63f1--pr401-codex-implement-issu-93riaswk.web.app

(expires Thu, 14 May 2026 05:49:45 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7d60a2eae4c4a5839220ed6a57552a3b61cce5a3

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit d3e949f):

https://on-time-front-widgetbook--pr401-codex-implement-issu-raz6p46l.web.app

(expires Thu, 14 May 2026 05:50:16 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e53128a376fed0209d449279de9c0d94c83cdd8b

@jjoonleo jjoonleo marked this pull request as ready for review May 7, 2026 05:54
@jjoonleo jjoonleo merged commit 52f4b91 into main May 7, 2026
4 checks passed
@jjoonleo jjoonleo deleted the codex/implement-issue-389 branch May 7, 2026 05:56
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