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

[Feature] - 프로덕션 모니터링 구축 #620

Merged
merged 4 commits into from
Dec 8, 2024
Merged

Conversation

nak-honest
Copy link
Member

@nak-honest nak-honest commented Dec 7, 2024

✅ 작업 내용

  • 프로덕션 모니터링 서버 구축
  • logback-spring.xml 에서 jasypt 로 복호화 된 loki url을 받도록 스프링 초기화 동작 재정의
  • SSL 인증서 적용

🙈 참고 사항

Copy link

github-actions bot commented Dec 7, 2024

Test Results

 30 files   30 suites   8s ⏱️
296 tests 295 ✅ 1 💤 0 ❌
308 runs  307 ✅ 1 💤 0 ❌

Results for commit 5c257ff.

♻️ This comment has been updated with latest results.

Comment on lines 14 to 19
public static void main(String[] args) {
SpringApplication.run(TourootApplication.class, args);
new SpringApplicationBuilder()
.environment(new StandardEncryptableEnvironment())
.sources(TourootApplication.class).run(args);
}
}
Copy link
Member Author

@nak-honest nak-honest Dec 7, 2024

Choose a reason for hiding this comment

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

logback-spring.xml에서 jasypt 로 암호화 한 loki.loki-url 을 복호화 하지 못하는 문제가 있었습니다.

로깅은 스프링 부팅 초기에 매우 일찍 구성되기 때문에,
일반적인 설정으로는 jasypt로 복호화 된 값을 읽어오지 못한다고 합니다.

따라서 jasypt docs 에서 설명한 대로 스프링 초기화 동작을 위와 같이 재정의 하였습니다.

참고 링크

Copy link

@Libienz Libienz left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~ 대시보드까지 확인해보았어요!!

Copy link

@eunjungL eunjungL left a comment

Choose a reason for hiding this comment

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

수고하셨슴다 낙낙!

로키 Dev profile url 암호화 부분 관련해서 낙낙의 확인이 필요할 것 같아 일단 RC 드립니다!
문제 없다고 하시면 바로 approve로 바꾸겠습니다 👍

@@ -194,3 +194,5 @@ cloud:
image-base-uri: https://touroot.kr/
origin-storage-path: touroot/

loki:
loki-url: ENC(FHJkwYBoGIuSifQd/92GjnWRS1nvcil2CPFCcWbTicu4rMe/gyFRYzQeqAMCyPkr)
Copy link

Choose a reason for hiding this comment

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

저희 DEV profile의 loki-url은 평문 상태인데 이 부분도 암호화가 필요할까요~?
만약 필요하다면 확인 한 번 부탁드림다 🙇

Copy link
Member Author

Choose a reason for hiding this comment

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

http://loki:3100/loki/api/v1/push 는 IP 주소가 노출되지 않아서 괜찮을 것 같아욥!

하지만 숨겨서 나쁠거 없으니 숨겨보도록 하겠습니다!!

backend/src/main/java/kr/touroot/TourootApplication.java Outdated Show resolved Hide resolved
Copy link

@eunjungL eunjungL left a comment

Choose a reason for hiding this comment

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

빠른 리뷰 확인 굿 👍

@nak-honest nak-honest merged commit f1df0fd into develop/be Dec 8, 2024
3 checks passed
@nak-honest nak-honest deleted the feature/be/#619 branch December 8, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants