Repository navigation
chore: 배포 시 WELFARE_API_KEY를 서버 .env에 반영 - #142
Merged
Merged
Conversation
운영에 data.go.kr 수집 키가 없어 매월 1일 수집 스케줄러가 매번 실패하고, 그래서 data.sql에 DEMO-* 시드를 넣어 시연하는 상태였다. deploy 잡의 "Pull & restart"에서 리포 Secret WELFARE_API_KEY를 서버 .env에 반영한다 (JWT_SECRET 부트스트랩과 같은 자리). JWT와 달리 매 배포 최신값으로 맞추고, Secret이 비어 있으면 기존 .env 값을 건드리지 않는다. Secret 미설정이어도 배포는 정상 — docker-compose.prod.yml이 빈 값을 허용하고 수집 잡만 실패한다.⚠️ 이 PR만으로는 동작 안 함. 리포 Settings → Secrets → Actions 에 WELFARE_API_KEY 를 추가해야 다음 배포부터 반영된다. Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
3 tasks done
3 tasks done
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.
관련 이슈
작업 내용
운영 EC2에 data.go.kr 복지서비스 수집 키(
WELFARE_API_KEY)가 없어서:WelfareCollectSchedulercron이 매번WelfareApiException("service-key가 비어 있다")로 실패welfare_program이 비어 시연이 안 돼서data.sql에DEMO-*시드를 넣어둔 상태ci.yml의deploy→ "Pull & restart" 스텝에서 리포 SecretWELFARE_API_KEY를 서버.env에 반영하도록 추가한다 (JWT_SECRET부트스트랩과 같은 자리).JWT_SECRET은 "없을 때만" 생성하지만,WELFARE_API_KEY는 매 배포 리포 Secret 최신값으로 맞춘다 (Secret이 정본).env를 건드리지 않는다 — 서버에 수동으로 넣어둔 값이 있어도 안 지움docker-compose.prod.yml이 빈 값을 허용하므로, Secret 미설정이어도 배포는 정상. 수집 잡만 계속 실패리포 Settings → Secrets and variables → Actions → New repository secret 에
WELFARE_API_KEY(data.go.kr "일반 인증키(Decoding)" 값)를 추가해야 다음 배포부터 반영됩니다.반영 후
.env에 키가 들어가고 백엔드 재기동welfare_program채워짐data.sql의DEMO-*블록 제거 (별도 작업)확인한 것
🤖 Generated with Claude Code