Skip to content

운영 회원 탈퇴 환경변수 주입 - #306

Open
goder-0 wants to merge 1 commit into
mainfrom
feature/#305-member-withdrawal-deploy-config
Open

운영 회원 탈퇴 환경변수 주입#306
goder-0 wants to merge 1 commit into
mainfrom
feature/#305-member-withdrawal-deploy-config

Conversation

@goder-0

@goder-0 goder-0 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

관련 이슈

PR 설명

운영 릴리즈에서 회원 탈퇴 환경변수가 누락되어 DELETE /v1/memberM-007(503)로 실패하던 문제를 수정합니다.

  • release workflow가 회원 탈퇴 기능을 명시적으로 활성화하고, APP_MEMBER_WITHDRAWAL_INTERNAL_SECRET을 GitHub Actions Secret에서 배포 단계에만 주입합니다.
  • 배포 스크립트는 sudo --preserve-env에 필요한 변수 이름만 지정하여 Docker Compose로 전달하며, secret 값을 명령행 인자로 넘기거나 디스크 파일에 기록하지 않습니다.
  • 내부 secret은 32자 이상의 URL-safe 문자열만 허용합니다. 누락되거나 형식이 잘못되면 이미지 pull과 컨테이너 교체 전에 배포를 중단합니다.
  • 운영 서버의 sudo 1.9.15p5에서 사용자 정의 환경변수의 선택적 보존이 허용되는 것을 비밀값 없이 확인했습니다.

배포 전 필수 설정

Repository Actions Secret에 n8n의 member-delete webhook Header Auth와 동일한 값을 등록해야 합니다.

APP_MEMBER_WITHDRAWAL_INTERNAL_SECRET=<32자 이상의 URL-safe shared secret>

Secret 등록 후 새 패치 버전으로 릴리즈해야 현재 운영 컨테이너에 반영됩니다.

검증

  • 회원 탈퇴 설정 누락·비활성화·잘못된 secret 차단 테스트
  • 허용 목록 기반 sudo 환경변수 전달 및 secret 값의 프로세스 인자 비노출 테스트
  • release workflow YAML 및 Docker Compose 구성 검증

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

📊 코드 커버리지 리포트

Overall Project 91.04% 🍏

There is no coverage information present for the Files changed

@goder-0
goder-0 force-pushed the feature/#305-member-withdrawal-deploy-config branch from 0837bc5 to 316db5f Compare September 4, 2026 04:12
@goder-0
goder-0 requested a review from ckdals4600 September 4, 2026 04:26

@ckdals4600 ckdals4600 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ckdals4600
ckdals4600 self-requested a review September 6, 2026 13:19
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.

운영 회원 탈퇴 환경변수 누락으로 503이 발생하는 문제

2 participants