Skip to content

[Console] Require authentication for actuator/metrics and warn on H2 default credentials#4389

Closed
shangeyao wants to merge 1 commit into
apache:devfrom
shangeyao:fix/actuator-security-h2-warn
Closed

[Console] Require authentication for actuator/metrics and warn on H2 default credentials#4389
shangeyao wants to merge 1 commit into
apache:devfrom
shangeyao:fix/actuator-security-h2-warn

Conversation

@shangeyao

Copy link
Copy Markdown
Contributor

Summary

  • Require JWT for /actuator/** (except health/info), /h2-console/**, and /metrics/**
  • Keep /actuator/health and /actuator/info anonymous for health probes
  • Add SecurityStartupRunner to warn when H2 embedded DB is used with default credentials

Fixes #4388

Test plan

  • Unauthenticated /actuator/health returns 200
  • Unauthenticated /actuator/env returns 401
  • Startup log shows H2 security warning when using embedded database

AI Disclosure

  • Model: Claude Opus 4.6
  • Platform/Tool: Cursor
  • Human Oversight: partially reviewed
  • Prompt Summary: Harden default security from dev branch optimization scan

Made with Cursor

Require JWT for sensitive actuator, metrics, and H2 console paths while
keeping health/info probes anonymous. Warn at startup when H2 is in use.

Generated-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao

Copy link
Copy Markdown
Contributor Author

Closing this PR because the StreamPark Console frontend is about to undergo a major refactor. These console-side changes would likely conflict with or require rework after the refactor. Will revisit relevant improvements once the new frontend architecture is in place.

@shangeyao shangeyao closed this Jun 30, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Console] Require authentication for actuator/metrics and warn on H2 default credentials

1 participant