분류 전체보기
-
SunCertPathBuilderException 에러 - 스프링 이미지 빌드 시 인증서 추가JAVA 2024. 4. 11. 16:42
상황 - 동일한 K8S 클러스터&네임스페이스에 있는 Spring 서버에서 다른 Spring 서버로 https 요청을 날렸을 때 다음과 같은 에러 발생 KIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid ce..
-
[Spring] WebClient 사용시 http:// 프로토콜이 https:/로 자동 변환되는 이슈Spring 2023. 4. 7. 10:54
이슈가 되었던 상황 - 스프링에서 서버간 통신을 사용 할 때 WebClient를 사용 - WebClient를 메서드를 빈에 등록할 때 baseUrl을 집어 넣지 않고 사용하는 WebClient를 사용하는 곳에서 uri에 모든 서버 주소 호출에 재활용 WebClient 메서드를 다음과 같이 빈으로 등록 @Configuration public class WebClientConfig { @Bean public WebClient webClient() { return WebClient.builder() .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) .build(); } } 빈에 등록되어 있는 WebClient 메서드 사용 @..
-
[Tibero] 데이터 암호화SQL & Database 2023. 4. 7. 10:15
Tibero 데이터 암호화 - 티베로는 데이터를 암호화 하여 디스크에 저장하는 기능을 가지고 있다. - 데이터를 저장 할 때 암호화 하고 SELECT 할 때 복호화 해서 보여준다. 암호화 알고리즘 암호화 알고리즘 Description DES DES 64 bits key 3DES168 3 Key Triple DES 168 bits key AES128 AES 128 bits key AEAS192 AES 192 bits key AES256 AES 256 bits key SEED SEED 128 bits key 암호화 방법 1. 보안 지갑 생성 $ tbwallet_gen # tbwallet_gen 파일이 있는 경로에서 명령어를 쳐야함. 보통 $TB_HOME/config [ Tibero Security Wall..
-
AWS에서 Elastic Kubernetes Service (EKS) 생성하기CICD 2022. 2. 24. 20:10
EKS Cluster에서 Master Node Identity and Access Management (IAM) Role 생성 EKS Worker Node IAM Role 생성 EKS Cluster 생성 (K8S Master Node 생성) 생성된 Master Node 에 Worker Node 붙이기 Kubectl로 생성된 클러스터에 접속하기 위한 세팅 1. EKS Cluster에서 Master Node Identity and Access Management (IAM) Role 생성 2. EKS Worker Node IAM Role 생성 AmazonEKS_CNI_Policy AmazonEKSWorkerNodePolicy AmazonEC2ContainerRegistryReadOnly 3. EKS Clust..
-
[Jenkins] React Build Error: Treating warnings as errors because process.env.CI = true.CICD 2022. 2. 10. 16:05
Jenkins에서 yarn build로 React Project를 빌드하면 다음과 같은 에러가 발생한다. Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically. Failed to compile. 이 에러는 React project 내에 lint 에러가 존재 할 때 compile을 fail 시켜 버리기 때문이다. 코드 자채에는 문제가 없으므로 빌드가 되면 빌드 결과물에는 문제가 없다. 해결 방법 Jenkins logs (Fig 1.)에 나와 있듯이 CI=true가 default로 설정 되어 있기 때문에 CI=false로 해주어야 React project 내에 lint error를 무시하고 ..
-
[Jenkins] Publish Over SSH plugin install (Deprecated)CICD 2022. 2. 10. 15:52
Publish Over SSH 플러그인을 기존에 사용 중이 었으면 이미 설치가 되어 있기 때문에 문제가 없지만 Jenkins를 새로 설치 한 후에 Publish Over SSH 플러그인을 설치하려면 Jenkins Plugin Manager에서 설치가 불가능 하다. 이 플러그인은 Deprecated 되어 있기 때문에 검색이 되지 않는다. 따라서 설치 하기 위해서는 "publish-over-ssh.hpi" 파일을 다운로드 받아서 Jenkins에서 수동으로 설치해 주어야 한다. 1. publish-ver-ssh.hpi 다운로드 https://archives.jenkins-ci.org/plugins/publish-over-ssh/latest/ 이 url에서 파일을 다운로드 받는다. 2. Jenkins Plugi..
-
[Jenkins] Docker Build Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?CICD 2022. 2. 10. 15:38
Jenkin에서 Docker plugin을 제공해 주지만 Execute Shell에서 docker build 명령어로 직접 빌드 하려면 Jenkins Docker image 안에 Docker를 설치 해야 하고 Docker image 안에서 Docker를 빌드하면 다음과 같은 에러가 난다. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 저 에러를 구글에서 검색하면 docker 서비스를 재사작 하라고 한다. ..
-
[Jenkins] Jenkins에서 React 빌드 에러: gyp verb check python checking for Python executable "python" in the PATHCICD 2022. 2. 10. 15:04
Jenkins로 리액트 프로젝트를 빌드 하는데 다음과 같은 오류가 발생하였다. gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2 gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` failed Error: not found: python python과 python2.7 을 모두 설치 해 준 후에는 다음과 같은 에러가 발생 하였다. gyp ERR! build error gyp ERR! stack Error: `make` fai..