Skip to content

Commit 5ffc95b

Browse files
authored
[Refactor/prod settings] - prod 환경 설정 (#101)
* ✨ feat : add user_role constraint to prod * 🔨 chore : add excluding endpoints of actuator * ✨ feat : allow actuator-endpoint for `prod`
1 parent 7a37a98 commit 5ffc95b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/org/runimo/runimo/config/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
2929
)
3030
.authorizeHttpRequests(authorize -> authorize
3131
.requestMatchers("/api/v1/auth/**").permitAll()
32+
.requestMatchers("/api/v1/users/**").hasAnyRole("USER", "ADMIN")
3233
.requestMatchers("/checker/**").permitAll()
34+
.requestMatchers("/actuator/**").permitAll()
3335
.requestMatchers(("/error")).permitAll()
3436
.anyRequest().authenticated()
3537
)

src/main/resources/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ management:
9797
web:
9898
exposure:
9999
include: health,info,prometheus
100+
exclude: env,heapdump,threaddump
100101
prometheus:
101102
metrics:
102103
export:

0 commit comments

Comments
 (0)