Skip to content

fix: E2E 사용자에 SSH 비밀번호 해시를 넣고 신청에서 ubuntuPassword를 보내지 않음 - #220

Merged
yoon6yo merged 1 commit into
mainfrom
fix/v3.0-e2e-single-account-password
Sep 28, 2026
Merged

yoon6yo merged 1 commit into
mainfrom
fix/v3.0-e2e-single-account-password

Conversation

@yoon6yo

@yoon6yo yoon6yo commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

원인

CSID-DGU/admin_be#616은 SSH 비밀번호를 웹 계정 비밀번호 하나로 합친다. 신청은 비밀번호를 받지 않고, 해시가 없는 계정의 신청은 400 UBUNTU_PASSWORD_REQUIRED가 된다. E2E는 가입을 건너뛰고 users 행을 직접 넣으므로 해시가 없어, 모든 사례가 신청 단계에서 실패하게 된다.

변경

  • 사용자 행을 넣을 때 glibc SHA-512 crypt 공개 시험 벡터 해시를 ubuntu_password_hash로 함께 넣는다. 시험은 비밀번호로 접속하지 않아 형식만 맞으면 된다(admin_be LinuxPasswordHasherTest 기대값과 같은 값).
  • 신청 본문에서 ubuntuPassword를 뺀다.
  • SQL은 따옴표 붙은 heredoc으로 넘기므로 해시의 $가 셸에서 해석되지 않는다.

호환

  • 옛 admin_be도 계정에 해시가 있으면 신청 비밀번호를 무시하므로, 이 PR을 먼저 병합해도 된다.

검증

  • 구문 확인. harness 테스트는 CI에서 돈다.

🤖 Generated with Claude Code

@yoon6yo
yoon6yo merged commit fd72fb0 into main Sep 28, 2026
1 check passed
@yoon6yo
yoon6yo deleted the fix/v3.0-e2e-single-account-password branch September 28, 2026 06:23
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