Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/#620: 마스킹 해제, 로그 파일 90일동안 보존 되도록 수정 #621

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

LJH098
Copy link
Collaborator

@LJH098 LJH098 commented Jan 9, 2025

📌관련 이슈
close #620

🔑 주요 변경사항

  1. 마스킹 해제
  • 다른 설정은 안건들고 마스킹 하는 부분만 제거하였습니다.
  1. 로그 파일 90일동안 보존되게 수정
  • maxHistory 옵션을 이용하여 90일 지난 것은 삭제되도록 설정
  1. 사용 하지 않는 코드 삭제
  • SSE 관련 코드들 삭제

@LJH098 LJH098 requested a review from hwangdaesun January 9, 2025 13:23
@LJH098 LJH098 self-assigned this Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

Overall Project 65.79%

There is no coverage information present for the Files changed

Comment on lines 9 to 20
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="com.gaebaljip.exceed.common.log.MaskingPatternLayout">
<maskPattern>\"(?i).*email.*"\s*:\s*\"(.*?)\"</maskPattern>
<maskPattern>\"(?i).*password.*"\s*:\s*\"(.*?)\"</maskPattern>
<maskPattern>\"(?i).*height.*"\s*:\s*(\d+)</maskPattern>
<maskPattern>\"(?i).*weight.*"\s*:\s*(\d+)</maskPattern>
<maskPattern>\"(?i).*targetWeight.*"\s*:\s*(\d+)</maskPattern>
<maskPattern>\"(?i).*age.*"\s*:\s*(\d+)</maskPattern>
<maskPattern>\"(?i).*etc.*"\s*:\s*\"(.*?)\"</maskPattern>
<maskPattern>\"(?i).*activity.*"\s*:\s*\"(.*?)\"</maskPattern>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</layout>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

개인정보 고려해서 etc랑 password는 마스킹 살리는 게 좋지 않을까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pwd는 마스킹 해도 될 것 같은데 etc는 한번 마스킹하면 다시 못 되돌릴텐데 etc도 마스킹하나요? 그때 나중에 수사 이런 것 때문에 90일동안 로그 남겨둔다고 했는데 etc도 기록해야 될 것 같다는 생각이 들어요

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

etc가 개인 알러지 상태 작성하는 거랑 관련된 건데 데이터베이스에 저장할 때 암호화하니깐 로그 저장하는 것도 암호화해야한다고 생각했어요. 확실히 기억이 안 나서 슬랙에 함 물어보는 게 좋을 것 같아요.

Copy link

Overall Project 65.59%
File Coverage
UpdateWeightService.java 100% 🍏

Copy link
Collaborator

@hwangdaesun hwangdaesun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants