Merged
Conversation
3fb55df to
516e9b6
Compare
myqewr
approved these changes
Feb 24, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🌱 관련 이슈
📌 작업 내용 및 특이사항
🔍 참고사항
배포 개발 환경에 미리 certbot 과 nginx 를 통해 초기 SSL 인증서를 발급 받았습니다
certbot entrypoint 에서 renew 명령어를 사용해 유효기간에 따라 자동으로 갱신되도록 구성했습니다
📚 기타
🔧 Pull Request 워크플로우에서 환경 변수를 로드하지 못하는 이슈
GitHub Actions에서
pull_request이벤트는 보안상의 이유로 Environment(environment)에 설정된 Secrets & Variables를 로드할 수 없었고 이로 인해 테스트 실행 시 환경 변수가 누락되어 오류가 발생함📌 문제 발생 과정
1️⃣ Redis 포트 환경 변수 누락으로
NumberFormatException발생gradle check실행 시 Redis 포트(REDIS_PORT)가 null이 되어NumberFormatException발생REDIS_PORT등)에 기본값(default) 설정2️⃣ 기본값 설정 후 Spring Security에서
IllegalStateException발생client_id,client_secret에 빈 문자열이 들어가면서IllegalStateException발생✅ 최종 해결 방법
pull_request이벤트에서environment설정으로 해당 환경의 Secrets 에 접근할 수 없지만 Repository Secrets 는 접근해 사용할 수 있다는 걸 알게되었습니다 (단, 같은 레포지토리의 PR 일 경우에만 가능하고 포크된 레포지토리의 PR일 경우에는 Secrets에 접근할 수 없다고 함)ENV)으로 저장하고secrets.ENV값을 로드하여 환경 변수로 등록하는 작업을 추가하면서🔍 참고자료