diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/resources/system/SystemResource.java b/openmetadata-service/src/main/java/org/openmetadata/service/resources/system/SystemResource.java index 6f454177e6e..e639a18fff6 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/resources/system/SystemResource.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/resources/system/SystemResource.java @@ -469,4 +469,15 @@ public class SystemResource { public ValidationResponse validate() { return systemRepository.validateSystem(applicationConfig, pipelineServiceClient, jwtFilter); } + + @GET + @Path("/health") + @Operation( + operationId = "healthCheck", + summary = "Health check endpoint", + description = "Simple health check endpoint that returns 200 OK", + responses = {@ApiResponse(responseCode = "200", description = "Service is healthy")}) + public Response healthCheck() { + return Response.ok("OK").build(); + } } diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/security/JwtFilter.java b/openmetadata-service/src/main/java/org/openmetadata/service/security/JwtFilter.java index 405d7217333..e693c82cf2a 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/security/JwtFilter.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/security/JwtFilter.java @@ -91,6 +91,7 @@ public class JwtFilter implements ContainerRequestFilter { "v1/system/config/authorizer", "v1/system/config/customUiThemePreference", "v1/system/config/auth", + "v1/system/health", "v1/users/signup", "v1/system/version", "v1/users/registrationConfirmation",