Skip to content

fix(infra): 운영 배포 Secret SCP 권한 및 로그 경로 수정 - #214

Merged
1Seob merged 1 commit into
developfrom
fix/infra-prod-scp-permissions
Jul 28, 2026
Merged

fix(infra): 운영 배포 Secret SCP 권한 및 로그 경로 수정#214
1Seob merged 1 commit into
developfrom
fix/infra-prod-scp-permissions

Conversation

@1Seob

@1Seob 1Seob commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

📝 요약(Summary)

  • 운영 배포 중 SCP 컨테이너가 Secret 파일을 읽지 못하는 권한 문제를 해결했습니다.
  • 배포 완료 메시지의 잘못된 로그 경로를 실제 위치와 일치시켰습니다.

주요 변경사항

  • Secret 파일 전송
    • 전송 직전에 .deploy-secrets 디렉터리를 755, 내부 파일을 644로 설정했습니다.
    • 다른 UID로 실행되는 scp-action Docker 컨테이너가 파일을 읽을 수 있도록 보완했습니다.
    • EC2 도착 후 기존 스크립트에서 디렉터리 700, 파일 600으로 다시 제한합니다.
  • 배포 로그 안내
    • 로그 안내 경로를 실제 출력 위치인 ~/nadab/app-prod.log로 수정했습니다.

검증

  • 워크플로 YAML 파싱 통과
  • Secret 생성·권한 변경·SCP 전송·원격 복원 경로 일치 확인
  • 모든 Bash 스크립트 문법 검사 통과
  • git diff --check 통과
  • Java 애플리케이션 변경이 없어 Gradle 테스트는 실행하지 않음

🔗 Related Issue

  • Closes:

💬 공유사항

✅ PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • PR 제목을 커밋 메시지 컨벤션에 맞게 작성했습니다.

@1Seob
1Seob merged commit b7f55ee into develop Jul 28, 2026
1 check passed
@1Seob
1Seob deleted the fix/infra-prod-scp-permissions branch July 28, 2026 19:19
@1Seob 1Seob mentioned this pull request Jul 28, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant