Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

531 refactor dnd module api url edit and enhancement #535

Merged

Conversation

Paul2021-R
Copy link
Contributor

@Paul2021-R Paul2021-R commented Jan 1, 2024

변경 사항

  • 임시 컨트롤러 작업 완료
  • 위젯 이벤트에 대한 CRUD 완성
  • 임시로 이벤트가 등록되었는지 여부 파악을 위한 전체 리스트 보여주는 API
  • Redis 를 적용하여 DB 접근 최소화 적용
  • 고유 이벤트에 대해서 임시로 HashSet 을 적용하여 처리함
  • 알람 이벤트 컨트롤러가 아직임, 이벤트 알람이 가진 않음




테스트 결과

- 임시 컨트롤러 작업 완료
- 위젯 이벤트에 대한 CRUD 완성
- 임시로 이벤트가 등록되었는지 여부 파악을 위한 전체 리스트 보여주는 API

- 알람 이벤트 컨트롤러가 아직, 이벤트 알람이 가진 않음
@Paul2021-R Paul2021-R linked an issue Jan 1, 2024 that may be closed by this pull request
1 task
@sinryuji
Copy link
Collaborator

sinryuji commented Jan 1, 2024

🎉 @weejihye 님 랜덤 리뷰어로 당첨되셨습니다! 리뷰를 부탁드립니다. 🙏

@sinryuji sinryuji requested a review from weejihye January 1, 2024 21:19
private final DnDService dndService;

@PostMapping("/create")
public ResponseEntity<?> create(@RequestBody TeamDnD data) {

Check failure

Code scanning / SonarCloud

Persistent entities should not be used as arguments of "@RequestMapping" methods High

Replace this persistent entity with a simple POJO or DTO object. See more on SonarCloud
Copy link
Contributor Author

@Paul2021-R Paul2021-R Jan 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 부분의 보안문제는 한마디로 정의하면 다음과 같다.
DTO 형태로 재정의 되지 않은 객체 데이터 형태를 주고 받는 방식은 보안적인 문제를 야기 할 수 있으며, 그렇기에 제한적인 부분만 정재시킨 DTO 형태로의 수정을 요청한 것이다.

하지만 해당 기능의 기획 자체가 프론트에서 사용 가능하도록 만드는 것이었으므로, 그러한 방식으로 프론트-백엔드 간의 협의 방식으로 변경시 의도를 침해하게됨

따라서 향후 이 부분에 대해 다른 방식으로 보안 적용이 필요해 보인다.

}

@PostMapping("/update")
public ResponseEntity<?> update(@RequestBody TeamDnD data) {

Check failure

Code scanning / SonarCloud

Persistent entities should not be used as arguments of "@RequestMapping" methods High

Replace this persistent entity with a simple POJO or DTO object. See more on SonarCloud
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 부분의 보안문제는 한마디로 정의하면 다음과 같다.
DTO 형태로 재정의 되지 않은 객체 데이터 형태를 주고 받는 방식은 보안적인 문제를 야기 할 수 있으며, 그렇기에 제한적인 부분만 정재시킨 DTO 형태로의 수정을 요청한 것이다.

하지만 해당 기능의 기획 자체가 프론트에서 사용 가능하도록 만드는 것이었으므로, 그러한 방식으로 프론트-백엔드 간의 협의 방식으로 변경시 의도를 침해하게됨

따라서 향후 이 부분에 대해 다른 방식으로 보안 적용이 필요해 보인다.

Copy link

sonarqubecloud bot commented Jan 1, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

21 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@sinryuji sinryuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

대면으로 리뷰 진행하였습니다.

@Paul2021-R Paul2021-R merged commit 603097e into dev Jan 2, 2024
5 checks passed
@Paul2021-R Paul2021-R deleted the 531-refactor-dnd-module-api-url-edit-and-enhancement branch January 2, 2024 04:58
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.

[REFACTOR] DnD Module api URL 수정 및 버전 개선
2 participants