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.
Background
센터 관리자 가입 및 센터 정보를 등록하는 경우, 사업자 등록번호를 함께 받아야 합니다.
센터 관리자 회원가입 flow는 아래와 같습니다.
즉, 위 2, 3번 과정에서 해당 사업자 등록번호 조회 API가 필요합니다.
또한, 사업자 등록번호를 통해 사칭하려는 악의적인 사용자를 blocking할 수 있습니다.
위에 언급한 3번 플로우에서는 사업자 등록번호 API를 통해 조회한 상호명과 전화번호를 이용해 확인 연락을 시도합니다.
즉, 기존에 악의적인 사용자가 입력한 본인의 전화번호가 아닌 실제 센터에 연락 후 검증하여 신뢰성을 보장합니다.
Goals & Non-Goals
Goals
External API Description
비즈노 API
사용 이유
무료 PLAN 사용 가능 횟수 정책
Methodology & Design(Proposal)
API
request
method & path:
POST /api/v1/auth/center/authentication/{business-registration-number}
body
response
정상 처리된 경우
status code:
204 No Content
body
잘못된 사업자 등록번호를 입력하는 경우
400 Bad Request
사업자 등록번호가 없거나, 조회가 되지 않는 경우
400 Bad Request
3. 🤔 이슈 공유
사업자등록번호 조회 외부 API 통신을 위해 OpenFeign Client 의존성을 추가하니, SonarCloud에서 아래와 같은 취약점 이슈가 발생하였습니다.
https://spring.io/security/cve-2024-22259
https://devhub.checkmarx.com/cve-details/CVE-2024-22259/
위 두 레퍼런스를 확인해 본 결과, Spring Core 6.1.0 - 6.1.4 버전에서 발생하는 이슈이며
6.1.5
버전부터 해결되었다는 것을 파악하였습니다.따라서 해당 spring 버전과 호환되는 버전에 맞게, spring boot 버전을
3.2.3
>3.2.4
로 변경하였습니다.