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 committed Jun 26, 2023
1 parent 8d13ba1 commit 8ae145b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion boot/src/main/resources/boot.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
management.endpoints.web.exposure.include=prometheus
management.endpoints.web.exposure.include=prometheus,health
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 8ae145b

Please sign in to comment.