공휴일 조회에 인증을 건다 - #386
Merged
Merged
Conversation
배포하고 나서 `/api/v1/holidays` 가 로그인 없이 열려 있는 것을 발견했다.
공휴일 자체는 비밀이 아니지만, 인증 없이 DB 를 두드릴 수 있는 자리를 남기지
않는다 — 지금은 무해해도 다음에 무엇이 붙을지 모른다. 다른 API 와 같은 규칙
(`rbac('ADMIN','SALES','MAKER')`)을 쓴다.
로그인 없이 못 받는 것을 검사로 못 박았다. 인증을 다시 떼어 걸리는 것을 확인했다.
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.
배포하고 나서
GET /api/v1/holidays가 로그인 없이 열려 있는 것을 발견했다.공휴일 자체는 비밀이 아니다. 다만 인증 없이 DB 를 두드릴 수 있는 자리를 남기지 않는다 — 지금은 무해해도 다음에 무엇이 붙을지 모르고, 다른 API 와 규칙이 다른 것 자체가 사고의 씨앗이다.
rbac('ADMIN','SALES','MAKER')를 건다. 화면에서 이 API 를 부르는 곳(납기 달력)은 모두 로그인 뒤라 영향이 없다.검사 하나 추가. 인증을 다시 떼어 걸리는 것을 확인했다. 백엔드 703개 통과 · 클린 빌드 통과.