fix(domain): CONNECTED 후에도 HTTPS 뱃지가 뜰 때까지 재검증 (#6) - #295
Merged
Conversation
DomainVerificationWorker 가 VERIFYING 도메인만 검증하고 CONNECTED 후엔 재검증을 안 해서, EC2(Caddy on-demand TLS) 도메인은 바인딩 직후 httpsEnforced=false 로 굳었다 — Caddy 는 첫 https 요청 때 인증서를 발급하는데, 그 시점엔 아직 미발급이라 프로브가 false 였다. 그래서 사용자가 화면에서 "검증 재시도" 를 눌러야만 HTTPS 뱃지가 떴다(배포 e2e 발견 #6). 실제 https 는 되는데 화면엔 "붙였는데 HTTPS 없네" 창이 생겼다. - CONNECTED 지만 httpsEnforced=false 인 도메인을 재검증한다(findConnectedPendingHttps). 재검증 프로브(HttpsProbeClient)가 https 요청을 보내 Caddy 인증서를 warming 하므로, 다음 주기엔 httpsEnforced=true 가 되고 이 목록에서 빠진다. 즉 1~2주기 안에 뱃지가 저절로 뜬다. - 무한 프로브 방지: 생성 후 warming 창(30분) 안에서만 재검증. 그 안에 안 뜨면 수동 재검증/실제 문제로 남긴다. 재검증은 "검증 완료" 로그를 안 남긴다(이미 CONNECTED — 주기 스팸 방지). - 쿼리: findByStatusAndHttpsEnforcedFalseOrderByCreatedAtAsc(targeted — 배치가 true 로 채워져 false 를 놓치지 않게). 테스트: 창 안 CONNECTED+false → 재검증, 창 밖 → 재검증 안 함(무한 방지). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WHX8hzKT3JsTTRRvdUkL5K
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.
문제 (배포 e2e 발견 #6)
DomainVerificationWorker가 VERIFYING 도메인만 검증하고 CONNECTED 후엔 재검증을 안 함. EC2(Caddy on-demand TLS)는 첫 https 요청 때 인증서를 발급하므로, 바인딩 직후 프로브가 미발급으로httpsEnforced=false→ 그대로 굳음. 사용자가 화면에서 "검증 재시도" 를 눌러야만 HTTPS 뱃지가 떴다. 실제 https 는 되는데 "붙였는데 HTTPS 없네" 창이 생김.수정
httpsEnforced=true가 되고 목록에서 빠짐. 12주기(12분) 안에 뱃지가 저절로 뜬다.findByStatusAndHttpsEnforcedFalse...(배치가 true 로 채워져 false 를 놓치지 않게).검증
domainbinding.*통과.🤖 Generated with Claude Code