[FEATURE] MJU SSO 로그인 테스트 사이트 추가#16
Merged
Merged
Conversation
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.
요약
명지대학교 SSO 로그인 페이지를 URL 검역 엔진 테스트용 fixture로 추가합니다.
추가된 테스트 사이트:
test-sites/mju-sso-login목적
이 사이트의 목적은 정상 로그인 페이지에 대한 false-positive regression 테스트입니다.
즉, 실제 학교 SSO 로그인 페이지와 유사한 정상 로그인 폼을 분석했을 때 URL 검역 엔진이 이를 피싱으로 과탐하지 않는지 확인하기 위한 fixture입니다.
이 fixture로 확인하려는 범위는 다음과 같습니다.
legitimate-login-page유형의 baseline fixture 확보단, 이 fixture 하나만으로 URL 검역 엔진 전체를 검증하기에는 부족합니다.
리다이렉트 체인, 외부 credential form action, 브랜드 사칭, meta refresh, 다운로드 유도, 신규 도메인/RDAP, 타이포스쿼팅 등은 별도 fixture로 추가 검증해야 합니다.
구현 내용
test-sites/mju-sso-login에 Next.js 기반 정적 테스트 사이트 추가robots.txt추가noindex,nofollow메타데이터 설정test-sites/mju-sso-login/metadata.yaml에 원본 URL과 fixture 목적 기록tests/corpus/urls.yaml에 URL 검역 테스트용 corpus 항목 추가.next,node_modules,tsconfig.tsbuildinfoignore 규칙 추가로컬 테스트 방법
cd test-sites/mju-sso-login npm install npm run dev브라우저에서 확인:
http://localhost:3000
정적 사이트 검증:
cd test-sites/mju-sso-login npm run typecheck npm run lint npm run buildURL 검역 엔진 E2E 테스트 시에는 배포된 URL을 환경변수로 주입합니다.
export TEST_SITE_MJU_SSO_LOGIN_URL="https://배포된-fixture-url"
해당 환경변수는 tests/corpus/urls.yaml의 url_env 값과 연결됩니다.
배포 계획
이 fixture는 테스트를 위해 배포할 예정이지만, 미리 개별 배포하지 않습니다.
피싱/로그인 페이지 형태의 fixture를 장기간 또는 순차적으로 노출하면 Google Safe Browsing 등 외부 보안 시스템에 의해 테스트 도메인이 오염되거나 차단될 수 있습니다.
따라서 fixture 사이트들은 나중에 일괄적으로 준비한 뒤, 테스트 당일 하루 안에 배포하고 검증까지 완료하는 방식으로 운영할 예정입니다.
연관 이슈 및 Close 할 이슈
close #15
Pull Request 체크리스트
TODO