info from EHRBase installation

I was trying to get information from a 2.0.0 EHRBase installation. I enabled the management endpoint but I get asterisks as results:
e.g. {‘local.server.port’: {‘value’: ‘******’}}
I’m using docker EHRBase with admin credentials and querying the/management/env REST endpoint.
The related global variables I set in .env.ehrbase:
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE=env,health,info,metrics,prometheus
MANAGEMENT_ENDPOINTS_WEB_BASEPATH=/management
MANAGEMENT_ENDPOINT_ENV_ENABLED=true
MANAGEMENT_ENDPOINT_HEALTH_ENABLED=true
MANAGEMENT_ENDPOINT_HEALTH_DATASOURCE_ENABLED=true
MANAGEMENT_ENDPOINT_INFO_ENABLED=true
MANAGEMENT_ENDPOINT_METRICS_ENABLED=true
MANAGEMENT_ENDPOINT_PROMETHEUS_ENABLED=false
MANAGEMENT_ENDPOINT_HEALTH_PROBES_ENABLED=true
ADMIN_API_ACTIVE=true

What am I missing?

@surfer I’m guessing you are missing an additional property management.endpoint.env.show-values=ALWAYS introduced with Spring Boot 3. (or MANAGEMENT_ENDPOINT_ENV_SHOWVALUES: ALWAYS for docker-compose files.

FYI management endpoints in EHRbase are provided by Spring Boot Actuator. So for more information regarding the configuration you can always search for that.

Reference: configuration - Spring Boot Actuator hides property values in env endpoint - Stack Overflow

1 Like

thank you @vidi42 . That was it

1 Like