Version: Spring Boot 3.1.2

Although I want to expose all actuator endpoints (configuration yaml below), not all endpoints are being exposed, for example 'beans' This problem occurs when I build the project as native image. (graalvm) Am I missing something?

If I explicitly mention endpoints at management.endpoints.web.exposure.include property, endpoints are loaded

management:
  security:
    enabled: false
  metrics:
    enable:
      all: false
      jvm: true
      system: true
      process: true
      disk: true
    tags:
      application: ${spring.application.name}
  endpoint:
    shutdown:
      enabled: false
    health:
      enabled: true
      show-details: always
    info:
      enabled: true
    beans:
      enabled: true
      show-details: always
    caches:
      enabled: true
    env:
      enabled: true
    metrics:
      enabled: true
  endpoints:
    enabled-by-default: false
    beans:
      sensitive: false
    jackson:
      isolated-object-mapper: false
    web:
      exposure:
        include: '*'

This is the /actuator result; i deleted sensitive "href" information Screenshot 2023-09-25 095523

Comment From: mhalbritter

I just tested with Spring Boot 3.1.4 and I can't reproduce it.

On the JVM:

> curlie :8080/actuator
HTTP/1.1 200 
Content-Type: application/json
Transfer-Encoding: chunked
Date: Mon, 25 Sep 2023 07:40:49 GMT

{
    "_links": {
        "self": {
            "href": "http://localhost:8080/actuator",
            "templated": false
        },
        "beans": {
            "href": "http://localhost:8080/actuator/beans",
            "templated": false
        },
        "caches": {
            "href": "http://localhost:8080/actuator/caches",
            "templated": false
        },
        "caches-cache": {
            "href": "http://localhost:8080/actuator/caches/{cache}",
            "templated": true
        },
        "health": {
            "href": "http://localhost:8080/actuator/health",
            "templated": false
        },
        "health-path": {
            "href": "http://localhost:8080/actuator/health/{*path}",
            "templated": true
        },
        "info": {
            "href": "http://localhost:8080/actuator/info",
            "templated": false
        },
        "env": {
            "href": "http://localhost:8080/actuator/env",
            "templated": false
        },
        "env-toMatch": {
            "href": "http://localhost:8080/actuator/env/{toMatch}",
            "templated": true
        },
        "metrics-requiredMetricName": {
            "href": "http://localhost:8080/actuator/metrics/{requiredMetricName}",
            "templated": true
        },
        "metrics": {
            "href": "http://localhost:8080/actuator/metrics",
            "templated": false
        }
    }
}

As native-image:

> curlie :8080/actuator
HTTP/1.1 200 
Content-Type: application/json
Transfer-Encoding: chunked
Date: Mon, 25 Sep 2023 07:42:42 GMT

{
    "_links": {
        "self": {
            "href": "http://localhost:8080/actuator",
            "templated": false
        },
        "beans": {
            "href": "http://localhost:8080/actuator/beans",
            "templated": false
        },
        "caches": {
            "href": "http://localhost:8080/actuator/caches",
            "templated": false
        },
        "caches-cache": {
            "href": "http://localhost:8080/actuator/caches/{cache}",
            "templated": true
        },
        "health": {
            "href": "http://localhost:8080/actuator/health",
            "templated": false
        },
        "health-path": {
            "href": "http://localhost:8080/actuator/health/{*path}",
            "templated": true
        },
        "info": {
            "href": "http://localhost:8080/actuator/info",
            "templated": false
        },
        "env-toMatch": {
            "href": "http://localhost:8080/actuator/env/{toMatch}",
            "templated": true
        },
        "env": {
            "href": "http://localhost:8080/actuator/env",
            "templated": false
        },
        "metrics": {
            "href": "http://localhost:8080/actuator/metrics",
            "templated": false
        },
        "metrics-requiredMetricName": {
            "href": "http://localhost:8080/actuator/metrics/{requiredMetricName}",
            "templated": true
        }
    }
}

If you'd like us to spend some time investigating, please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem.

Comment From: bkeren

this problem occurs when service is deployed behind proxy server; at localhost it works normal as it is

Comment From: wilkinsona

@bkeren I don't see how a proxy server can affect the contents of the response body unless it's transforming it. As @mhalbritter requested above, please provide a sample that reproduces the problem. That should include, if necessary, information about a proxy server and how to configure it.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.