feat: expose infrastructureEndpoints flag in health endpoint
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.cameleer3.server.app.config;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.actuate.health.Health;
|
||||
import org.springframework.boot.actuate.health.HealthIndicator;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ServerCapabilitiesHealthIndicator implements HealthIndicator {
|
||||
|
||||
@Value("${cameleer.server.security.infrastructureendpoints:true}")
|
||||
private boolean infrastructureEndpoints;
|
||||
|
||||
@Override
|
||||
public Health health() {
|
||||
return Health.up()
|
||||
.withDetail("infrastructureEndpoints", infrastructureEndpoints)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user