fix(infra): 운영 배포 Secret 파일 전송 방식 적용 - #210
Merged
Merged
Conversation
대용량 Secret을 개별 Base64 파일로 생성해 SCP로 전달하고 원격에서 환경변수로 복원하도록 변경, SSH 명령 크기 초과 방지 및 비재귀 방식의 임시 Secret 파일 정리 적용
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.
📝 요약(Summary)
주요 변경사항
.deploy-secrets디렉토리를 EC2에 전송env,envs,${{ secrets.* }}직접 치환 제거700, 파일600권한 적용rm -rf없이 알려진 파일만 삭제한 뒤 빈 디렉토리를rmdir로 제거set -x를 사용하지 않아 평문 Secret의 로그 노출 방지검증
env,envs, Secret 직접 치환 0건 확인bash -n문법 검사 통과rm -rf사용 0건 확인git diff --check통과🔗 Related Issue
💬 공유사항
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.