Repository navigation
[fix] #270 - 구글 토큰 폐기 outbox에 토큰을 암호화하여 저장 #271
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,9 @@ | |
|
|
||
| import com.Timo.Timo.domain.calendar.google.enums.RevocationStatus; | ||
| import com.Timo.Timo.global.common.BaseTimeEntity; | ||
| import com.Timo.Timo.global.crypto.AesGcmConverter; | ||
| import jakarta.persistence.Column; | ||
| import jakarta.persistence.Convert; | ||
| import jakarta.persistence.Entity; | ||
| import jakarta.persistence.EnumType; | ||
| import jakarta.persistence.Enumerated; | ||
|
|
@@ -26,6 +28,7 @@ public class GoogleTokenRevocationOutbox extends BaseTimeEntity { | |
| @Column(name = "id") | ||
| private Long id; | ||
|
|
||
| @Convert(converter = AesGcmConverter.class) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. p3) 배포 전 확인 사항에 지금 배포가 끝난 뒤(이전 컨테이너 정지 후)에
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. converter를 뒤늦게 달아서 생기는 문제네요.... 코드 추가는 필요 없을 것 같고 db에서 쿼리로 조회 후에 pending 행들은 수동으로 지우는 작업이 진행되면 좋을 것 같습니다. (아마 지금 탈퇴하는 사용자가 없어서 거의 없을 것 같아요!)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 꼼꼼한 리뷰들 감사드립니당 |
||
| @Column(name = "token", nullable = false, length = 2048) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. p3) 이번 수정으로는 새로 쌓이는 행만 암호화되고 이미 쌓여 있는 배포 후에 기존 평문 행도 정리(
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 넵넵 감사합니다 |
||
| private String token; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 컨버터가 요기에만 없었더라고요! 확인 감사합니당