fix: use correct health endpoint and HTTP method for server integration
ConnectivityHealthCheck: /actuator/health → /api/v1/health (actuator now requires auth on cameleer3-server after OIDC was added). Bootstrap: POST → PUT for /api/v1/admin/oidc (server expects PUT, POST returned 405 causing OIDC config to silently fail). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -428,7 +428,7 @@ if [ "$SERVER_HEALTHY" = "yes" ] && [ -n "$TRAD_SECRET" ]; then
|
|||||||
|
|
||||||
if [ -n "$SERVER_TOKEN" ] && [ "$SERVER_TOKEN" != "null" ]; then
|
if [ -n "$SERVER_TOKEN" ] && [ "$SERVER_TOKEN" != "null" ]; then
|
||||||
# Configure OIDC
|
# Configure OIDC
|
||||||
OIDC_RESPONSE=$(curl -s -X POST "${SERVER_ENDPOINT}/api/v1/admin/oidc" \
|
OIDC_RESPONSE=$(curl -s -X PUT "${SERVER_ENDPOINT}/api/v1/admin/oidc" \
|
||||||
-H "Authorization: Bearer $SERVER_TOKEN" \
|
-H "Authorization: Bearer $SERVER_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{
|
-d "{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class ConnectivityHealthCheck {
|
|||||||
.baseUrl(runtimeConfig.getCameleer3ServerEndpoint())
|
.baseUrl(runtimeConfig.getCameleer3ServerEndpoint())
|
||||||
.build();
|
.build();
|
||||||
var response = client.get()
|
var response = client.get()
|
||||||
.uri("/actuator/health")
|
.uri("/api/v1/health")
|
||||||
.retrieve()
|
.retrieve()
|
||||||
.toBodilessEntity();
|
.toBodilessEntity();
|
||||||
if (response.getStatusCode().is2xxSuccessful()) {
|
if (response.getStatusCode().is2xxSuccessful()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user