-
Notifications
You must be signed in to change notification settings - Fork 5
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
[refactor] dev 환경이 사라짐에 따른 코드, 설정, ci/cd 수정 #501
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b189302
feat: JasyptConfig 추가
mooncw 681d9b9
refactor: 서비스 실행에 사용하는 기존 application.yml 분리
mooncw 4c22f3c
refactor: 서비스 실행에 필요없는 application.yml 삭제
mooncw c8f1b02
refactor: test에 사용하는 application.yml 수정 및 test에 필요한 TestJasyptConfig …
mooncw 46b65ff
refactor: cd-dev 삭제 및 ci 수정
mooncw 1bafe70
refactor: ci에서 깃허브 액션 환경에서 테스트할 때 필요한 datahub를 docker-compose를 이용하여 생…
mooncw 06367ad
refactor: cd 수정 및 오타 수정
mooncw 7d6072f
refactor: kernelsquare 쪽으로 redirect-uri하는 부분은 암호화하고 OAuth2LoginSucces…
mooncw 33a7f43
chore: ci 오타 수정
mooncw 4795ec0
chore: cr 삭제
mooncw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
23 changes: 0 additions & 23 deletions
23
core/src/main/java/com/kernelsquare/core/compose/Kafka.yml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
core/src/main/java/com/kernelsquare/core/compose/MongoDB.yml
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
core/src/main/java/com/kernelsquare/core/config/JasyptConfig.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.kernelsquare.core.config; | ||
|
||
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties; | ||
import org.jasypt.encryption.StringEncryptor; | ||
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor; | ||
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
@EnableEncryptableProperties | ||
public class JasyptConfig { | ||
@Value("${jasypt.password}") | ||
private String password; | ||
|
||
@Bean("jasyptEncryptorAES") | ||
public StringEncryptor stringEncryptor() { | ||
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor(); | ||
SimpleStringPBEConfig config = new SimpleStringPBEConfig(); | ||
config.setPassword(password); | ||
config.setAlgorithm("PBEWITHHMACSHA512ANDAES_256"); // 알고리즘 | ||
config.setKeyObtentionIterations("1000"); // 반복할 해싱 횟수 | ||
config.setPoolSize("1"); // 인스턴스 pool | ||
config.setProviderName("SunJCE"); // 기본 암호화 제공자 | ||
config.setSaltGeneratorClassName("org.jasypt.salt.RandomSaltGenerator"); // 기본 salt 생성 클래스 | ||
config.setIvGeneratorClassName("org.jasypt.iv.RandomIvGenerator"); // 랜덤 초기화 벡터 | ||
config.setStringOutputType("base64"); //인코딩 방식 | ||
encryptor.setConfig(config); | ||
return encryptor; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
...-mongodb/src/test/java/com/kernelsquare/domainmongodb/common/config/TestJasyptConfig.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.kernelsquare.domainmongodb.common.config; | ||
|
||
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties; | ||
import org.jasypt.encryption.StringEncryptor; | ||
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor; | ||
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.boot.test.context.TestConfiguration; | ||
import org.springframework.context.annotation.Bean; | ||
|
||
@TestConfiguration | ||
@EnableEncryptableProperties | ||
public class TestJasyptConfig { | ||
@Value("${jasypt.password}") | ||
private String password; | ||
|
||
@Bean("jasyptEncryptorAES") | ||
public StringEncryptor stringEncryptor() { | ||
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor(); | ||
SimpleStringPBEConfig config = new SimpleStringPBEConfig(); | ||
config.setPassword(password); | ||
config.setAlgorithm("PBEWITHHMACSHA512ANDAES_256"); // 알고리즘 | ||
config.setKeyObtentionIterations("1000"); // 반복할 해싱 횟수 | ||
config.setPoolSize("1"); // 인스턴스 pool | ||
config.setProviderName("SunJCE"); // 기본 암호화 제공자 | ||
config.setSaltGeneratorClassName("org.jasypt.salt.RandomSaltGenerator"); // 기본 salt 생성 클래스 | ||
config.setIvGeneratorClassName("org.jasypt.iv.RandomIvGenerator"); // 랜덤 초기화 벡터 | ||
config.setStringOutputType("base64"); //인코딩 방식 | ||
encryptor.setConfig(config); | ||
return encryptor; | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
혹시 왜 바꾸신지 궁금하신 분들을 위한 주석
요약하면, ./gradlew clean build는 이전 빌드의 영향을 받지 않는 깨끗한 상태에서 프로젝트를 빌드하고자 할 때 사용하며, ./gradlew build는 빠른 빌드 시간을 위해 이전 빌드의 결과물을 재사용하고자 할 때 사용
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.
이전 빌드 결과물이 없어서요