Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit configuration of actuators #269

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion config/application-default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spring.servlet.multipart.max-request-size: 100MB
management.endpoint.health.access: unrestricted
management.endpoint.health.show-details: ALWAYS
management.endpoint.health.sensitive: false
management.endpoints.web.exposure.include: *
management.endpoints.web.exposure.include: health, info

###############
### Logging ###
Expand Down Expand Up @@ -106,6 +106,7 @@ spring.autoconfigure.exclude=org.keycloak.adapters.springboot.KeycloakAutoConfig
# enables search endpoint at /api/v1/search
repo.search.enabled: false
repo.search.index: *
# only enable if endpoint is enabled:
management.health.elasticsearch.enabled: false

# TO BE REMOVED!
Expand All @@ -132,6 +133,8 @@ spring.cloud.gateway.proxy.sensitive=content-length
# exchange aka. topic and the queue. The routingKeys are defining wich messages are
# routed to the aforementioned queue.
repo.messaging.enabled: false
# enables report via health actuator. Only activate if messaging is enabled.
management.health.rabbit.enabled: false
repo.messaging.hostname: localhost
repo.messaging.port: 5672
repo.messaging.sender.exchange: record_events
Expand Down
5 changes: 4 additions & 1 deletion config/application-docker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spring.servlet.multipart.max-request-size: 100MB
management.endpoint.health.enabled: true
management.endpoint.health.show-details: ALWAYS
management.endpoint.health.sensitive: false
management.endpoints.web.exposure.include: *
management.endpoints.web.exposure.include: health, info

###############
### Logging ###
Expand Down Expand Up @@ -106,6 +106,7 @@ spring.autoconfigure.exclude=org.keycloak.adapters.springboot.KeycloakAutoConfig
# enables search endpoint at /api/v1/search
repo.search.enabled: false
repo.search.index: *
# only enable if endpoint is enabled:
management.health.elasticsearch.enabled: false

# TO BE REMOVED!
Expand All @@ -132,6 +133,8 @@ spring.cloud.gateway.proxy.sensitive=content-length
# exchange aka. topic and the queue. The routingKeys are defining wich messages are
# routed to the aforementioned queue.
repo.messaging.enabled: false
# enables report via health actuator. Only activate if messaging is enabled.
management.health.rabbit.enabled: false
repo.messaging.hostname: localhost
repo.messaging.port: 5672
repo.messaging.sender.exchange: record_events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ protected SecurityFilterChain filterChain(HttpSecurity http, Logger logger) thro
.requestMatchers(HttpMethod.GET, "/swagger-ui.html").permitAll()
.requestMatchers(HttpMethod.GET, "/swagger-ui/**").permitAll()
.requestMatchers(HttpMethod.GET, "/v3/**").permitAll()
// permit access to actuator endpoints
.requestMatchers("/actuator/**").permitAll()
// only the actual API is protected
.requestMatchers("/api/v1/**").authenticated()
)
Expand Down
Loading