Skip to content

Commit

Permalink
#39 - exposing actuator health and prometheus endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
pveeckhout authored and Pieter Van Eeckhout committed Jun 27, 2023
1 parent e7da148 commit 1261417
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lombok.Builder;
import lombok.Value;

@Value(staticConstructor = "of")
@Value
@Builder
public class AuthenticationResponse implements AuthenticationController.AuthenticationResponse {
String jwt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class SecurityConfiguration {
public SecurityFilterChain endpointSecurityFilterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests((authz) -> authz
.requestMatchers("/actuator/**").anonymous()

.anyRequest().authenticated()
)
.httpBasic(withDefaults());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">


<include file="/db/usermodule/changelog/create_api_grant_table.xmlnt_table.xml"/>
<include file="/db/usermodule/changelog/create_api_role_table.xmlle_table.xml"/>
<include file="/db/usermodule/changelog/create_api_role_api_grant_map_table.xmlap_table.xml"/>
<include file="/db/usermodule/changelog/create_api_grant_table.xml"/>
<include file="/db/usermodule/changelog/create_api_role_table.xml"/>
<include file="/db/usermodule/changelog/create_api_role_api_grant_map_table.xml"/>

<include file="/db/usermodule/changelog/create_user_grant_table.xmlnt_table.xml"/>
<include file="/db/usermodule/changelog/create_user_role_table.xmlle_table.xml"/>
<include file="/db/usermodule/changelog/create_user_role_user_grant_map_table.xmlap_table.xml"/>
<include file="/db/usermodule/changelog/create_user_grant_table.xml"/>
<include file="/db/usermodule/changelog/create_user_role_table.xml"/>
<include file="/db/usermodule/changelog/create_user_role_user_grant_map_table.xml"/>

<include file="/db/usermodule/changelog/create_pricing_plan_table.xmlan_table.xml"/>
<include file="/db/usermodule/changelog/create_pricing_plan_table.xml"/>

<include file="/db/usermodule/changelog/create_edpn_user_table.xmler_table.xml"/>
<include file="/db/usermodule/changelog/create_edpn_user_user_role_map_table.xmlap_table.xml"/>
<include file="/db/usermodule/changelog/create_edpn_user_user_grant_map_table.xmlap_table.xml"/>
<include file="/db/usermodule/changelog/create_edpn_user_table.xml"/>
<include file="/db/usermodule/changelog/create_edpn_user_user_role_map_table.xml"/>
<include file="/db/usermodule/changelog/create_edpn_user_user_grant_map_table.xml"/>

<include file="/db/usermodule/changelog/create_api_key_table.xmley_table.xml"/>
<include file="/db/usermodule/changelog/create_api_key_api_grant_map_table.xmlap_table.xml"/>
<include file="/db/usermodule/changelog/create_api_key_api_role_map_table.xmlap_table.xml"/>
<include file="/db/usermodule/changelog/create_api_key_table.xml"/>
<include file="/db/usermodule/changelog/create_api_key_api_grant_map_table.xml"/>
<include file="/db/usermodule/changelog/create_api_key_api_role_map_table.xml"/>

<!-- views always last as they might depend on new columns -->

Expand Down

0 comments on commit 1261417

Please sign in to comment.