Skip to content

Commit

Permalink
๐Ÿ”ฅfix: health check์‹œ์—๋Š” ํ—ค๋”์ฒดํฌ ์•ˆํ•˜๋„๋ก ๋ณ€๊ฒฝ
Browse files Browse the repository at this point in the history
  • Loading branch information
daehyeon authored and kohmlab committed Feb 28, 2023
1 parent 59ca3b8 commit 74aa482
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ class AuthorizationFilter(
return chain.filter(exchange)
}

// Actuator (Health check) ๊ด€๋ จ API ์ œ์™ธ ์ฒ˜๋ฆฌ
if(Regex("/actuator*") in path) {
return chain.filter(exchange)
}

val authorization = exchange.request.headers.getFirst(HttpHeaders.AUTHORIZATION)
?: throw UnAuthorizationException("Authorization ํ—ค๋”๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.")

Expand Down

0 comments on commit 74aa482

Please sign in to comment.