すべてのアクチュエーターを敏感にできるようにしました。
management.context-path=/manage
management.security.enabled=true
management.security.role=NOACCESS
endpoints.sensitive=true
たとえば、メトリクスエンドポイントが正しく表示されていることがわかります
"metricsEndpoint": {
"prefix": "endpoints.metrics",
"properties": {
"id": "metrics",
"sensitive": true,
"enabled": true
}
ただし、そのROLEを持たないユーザーでこれにアクセスすると、引き続き機能します。