fix(S15P11A705-96): kubeseal 체크섬 검증이 파일명 불일치로 죽던 것을 고친다 - #35
Merged
Conversation
`curl -o kubeseal.tar.gz` 로 받아 놓고 체크섬 manifest 는
`kubeseal-0.27.1-linux-amd64.tar.gz` 를 가리켰다. `sha256sum -c` 는 manifest
줄에 적힌 이름으로 파일을 열므로 그 이름의 파일이 없어 실패한다.
sha256sum: kubeseal-0.27.1-linux-amd64.tar.gz: No such file or directory
kubeseal-0.27.1-linux-amd64.tar.gz: FAILED open or read
파일명을 변수 하나에 담아 다운로드·검증·해제가 같은 값을 쓰게 한다.
검증: 실제 다운로드 → 체크섬 → tar 해제를 로컬에서 돌려 통과 확인했고,
원 버전이 위 오류로 죽는 것도 재현했다. 병합 전 검증이 YAML 파싱과
`bash -n` 까지였던 것이 이 결함을 놓친 이유다 — 둘 다 문법만 본다.
Infra 가 실제 실행으로 발견해 보고했다(ai#32).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
요약
봉인 workflow의
Install kubeseal단계가 체크섬 검증에서 실패하던 것을 고칩니다. 한 단계 안의 파일명만 바뀝니다.Infra가 Secret 7종 등록 후 실제로 실행해서 발견했습니다. Secret 값 문제가 아니고, 그 앞 단계(Secret 존재·형식 검증, 인증서 지문 검증)는 통과했습니다.
Jira
S15P11A705-96— https://ssafy.atlassian.net/browse/S15P11A705-96원인
sha256sum -c는 manifest 줄에 적힌 이름으로 파일을 엽니다. 다른 이름으로 받아 두면 그 이름의 파일이 없어 죽습니다.변경 사항
파일명을 변수 하나에 담아 다운로드·검증·해제가 같은 값을 쓰게 합니다.
세 곳이 각자 이름을 적고 있던 것이 원인이라, 이름을 한 곳으로 모으는 쪽이 같은 실수를 다시 만들지 않습니다.
테스트 / 검증
sha256sum -cOK →tar xzf로kubeseal추출 성공kubeseal.tar.gz로 이름만 바꿔 두고 검증하니 Infra가 보고한 것과 동일한 메시지로 실패(No such file or directory/FAILED open or read, exit 1)bash -n리뷰 포인트
병합 전 검증이 이 결함을 놓친 이유를 적어 둡니다. ai#34에서 한 검증은 YAML 파싱과
bash -n까지였고, 둘 다 문법만 봅니다.sha256sum -c가 인자가 아니라 manifest 내용으로 파일을 연다는 것은 실행해 봐야 드러납니다. PR 본문에 *"실제 봉인은 미실행"*이라고 한계를 적었지만, 그 한계가 봉인 단계뿐 아니라 설치 단계까지 덮는다는 점은 인지하지 못했습니다.이번에는 네트워크가 필요한 부분까지 로컬에서 실제로 돌렸습니다.
미결 / 후속
PINLOG_AI_INFRA_PR_TOKEN용도 질의는 ai#32에서 회신 대기 중입니다🤖 Generated with Claude Code