Skip to content

Add Actuator with health/info and update Dockerfile#61

Merged
tcheeric merged 2 commits into
developfrom
feat/actuator-healthchecks
Sep 1, 2025
Merged

Add Actuator with health/info and update Dockerfile#61
tcheeric merged 2 commits into
developfrom
feat/actuator-healthchecks

Conversation

@tcheeric

@tcheeric tcheeric commented Sep 1, 2025

Copy link
Copy Markdown
Collaborator

Add support for Spring Boot Actuator to expose health and info endpoints. Update environment handling for better configuration. Include curl in Dockerfile for HTTP-based health checks.

erict875 added 2 commits September 1, 2025 16:52
@tcheeric tcheeric requested a review from Copilot September 1, 2025 16:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Spring Boot Actuator support to enable health monitoring and management endpoints, while cleaning up configuration files and updating CI workflows. The changes prepare the application for better production monitoring and health checks.

  • Adds Spring Boot Actuator dependency to expose health and info endpoints
  • Updates application properties to use environment variables for configuration
  • Includes curl in Docker image for HTTP-based health checks

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
cashu-gateway-rest/pom.xml Adds spring-boot-starter-actuator dependency
cashu-gateway-rest/src/main/resources/application.properties Configures actuator endpoints and removes hardcoded values
cashu-gateway-rest/Dockerfile Installs curl for health check capabilities
.github/workflows/pr-quality-gate.yml Removes PR quality gate workflow
.github/workflows/codeql-analysis.yml Removes CodeQL analysis workflow
.github/workflows/code-quality.yml Adds new Qodana code quality workflow

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -1,10 +1,14 @@
spring.application.name=cashu-gateway-spring
server.port=${cashu_gateway_port:8080}
server.port=

Copilot AI Sep 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting configuration properties to empty values is problematic. These properties should either have default values or use Spring's placeholder syntax with defaults (e.g., ${SERVER_PORT:8080}). Empty values will likely cause application startup failures.

Suggested change
server.port=
server.port=${SERVER_PORT:8080}

Copilot uses AI. Check for mistakes.

#spring.datasource.url=jdbc:postgresql://dbserver/gateway
spring.datasource.url=jdbc:postgresql://localhost:5432/cashu-gateway
spring.datasource.url=

Copilot AI Sep 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting configuration properties to empty values is problematic. These properties should either have default values or use Spring's placeholder syntax with defaults (e.g., ${SERVER_PORT:8080}). Empty values will likely cause application startup failures.

Suggested change
spring.datasource.url=
spring.datasource.url=${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/gateway}

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +8
spring.datasource.username=
spring.datasource.password=

Copilot AI Sep 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting configuration properties to empty values is problematic. These properties should either have default values or use Spring's placeholder syntax with defaults (e.g., ${SERVER_PORT:8080}). Empty values will likely cause application startup failures.

Suggested change
spring.datasource.username=
spring.datasource.password=
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD:}

Copilot uses AI. Check for mistakes.
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect

server.address=

Copilot AI Sep 1, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting configuration properties to empty values is problematic. These properties should either have default values or use Spring's placeholder syntax with defaults (e.g., ${SERVER_PORT:8080}). Empty values will likely cause application startup failures.

Suggested change
server.address=
server.address=${SERVER_ADDRESS:127.0.0.1}

Copilot uses AI. Check for mistakes.
@github-actions

github-actions Bot commented Sep 1, 2025

Copy link
Copy Markdown

Qodana Community for JVM

5 new problems were found

Inspection name Severity Problems
Constant values 🔶 Warning 1
Non-distinguishable logging calls ◽️ Notice 4

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@tcheeric tcheeric merged commit ba561d3 into develop Sep 1, 2025
3 checks passed
@tcheeric tcheeric deleted the feat/actuator-healthchecks branch September 1, 2025 19:35
@tcheeric tcheeric restored the feat/actuator-healthchecks branch September 1, 2025 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants