Repository navigation
Conversation
feat(be): verify Turnstile before starting backtest jobs
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.
계산 POST가 사람 인증 없이 실행되는 문제를 막습니다. FastAPI 의존성이 계산 슬롯·데이터 조회 전에 Cloudflare Siteverify를 호출하고, 성공·정확한 hostname·backtest action을 모두 확인한 요청만 기존 실행기에 전달합니다.
검증: Docker에서 558개 단위 테스트와 golden master 1개 통과. 누락·위조·재사용·만료·hostname/action 불일치·검증 장애가 실행기 호출 전에 차단되는 것을 확인했습니다. 기존 JSON 계약 비교와 의존성 감사도 통과했습니다. 격리 MySQL 런타임에서 계산·조회 4개·현금 1,500 보존을 확인했습니다. 공식 더미 검증 응답에 action이 없어 로컬 테스트 프로세스에서만 메타데이터 어댑터를 사용했습니다. 운영 코드에는 테스트 키 우회가 없습니다.
운영 전환은 새 콘솔 배포 후 진행하며 비밀키와 정확한 호스트 설정이 필요합니다.