Skip to content

Commit 194b153

Browse files
committed
Added /_openrun/health health check endpoint
1 parent 869763c commit 194b153

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
## [0.15.11] - 2025-10-27
11+
12+
### Added
13+
14+
- Added `/_openrun/health` health check endpoint
15+
1016
## [0.15.10] - 2025-10-26
1117

1218
### Added

internal/server/router.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ func NewTCPHandler(logger *types.Logger, config *types.ServerConfig, server *Ser
148148
server.samlManager.RegisterRoutes(router) // register SAML routes
149149

150150
router.HandleFunc("/*", handler.callApp)
151+
router.HandleFunc(types.INTERNAL_URL_PREFIX+"/health",
152+
func(w http.ResponseWriter, r *http.Request) {
153+
w.WriteHeader(200)
154+
w.Write([]byte("OK")) //nolint:errcheck
155+
})
151156
router.HandleFunc("/testperf", func(w http.ResponseWriter, r *http.Request) {
152157
w.Header().Set("Content-Type", "application/json")
153158
w.Write([]byte(`{"status":"ok"}`)) //nolint:errcheck

0 commit comments

Comments
 (0)