Commit Graph

36 Commits

Author SHA1 Message Date
Andy Wilkinson 41424e4529 Merge branch '1.5.x'
Closes gh-10457
2017-10-02 15:24:12 +01:00
dreis2211 756398b52c Replace some String.length() checks with String.isEmpty()
Closes gh-10451
2017-09-30 10:42:48 +02:00
Madhura Bhave f1cfad6755 Handle required parameters in endpoint infrastructure
Closes gh-10372
2017-09-29 14:41:58 -07:00
Andy Wilkinson eefdbb7341 Merge Actuator's loggers package into its logging package
Closes gh-10430
2017-09-28 19:47:07 +01:00
Andy Wilkinson f396740a2f Rename Micrometer Clock bean: clock -> micrometerClock
Closes gh-10436
2017-09-28 07:46:01 +01:00
Stephane Nicoll 3894229381 Fix status handling of /application/env/{propertyName}
This commit makes sure to return a 404 status if the env endpoint is
invoked with a property that does not exist in the environment.

Closes gh-10179
2017-09-27 11:45:50 +02:00
Stephane Nicoll c2c6f49cbc Improve output of `/application/env/{propertyName}`
This commit changes the output of a single property to mention the
actual value in the environment as well as the property source that
contributed to the value.

Closes gh-10178
2017-09-27 10:48:17 +02:00
dreis2211 f3472beed8 Remove redundant semicolons
Closes gh-10422
2017-09-26 08:38:43 +02:00
Andy Wilkinson 32102c693b Avoid using classes from spring-web in core web endpoint infrastructure
Closes gh-10358
2017-09-25 14:05:02 +01:00
Andy Wilkinson f0693989f1 Polish 2017-09-23 07:02:59 +01:00
Vedran Pavic cf151b1717 Add actuator endpoint for finding and deleting sessions
See gh-8342
2017-09-20 15:48:25 +02:00
Raja Kolli a4a0eef186 Upgrade to Hibernate Validator 6.0.2.Final
Closes gh-9969
2017-09-19 17:40:45 +02:00
Andy Wilkinson d1cf308bd2 Polish 2017-09-18 19:26:19 +01:00
Johnny Lim 5e35a34cba Polish
Closes gh-10308
2017-09-18 16:19:02 +02:00
Vedran Pavic b6b2fd4ce8 Make Audit events Web endpoint `after` parameter required
Closes gh-10322
2017-09-18 16:00:59 +02:00
Phillip Webb e59d70ea03 Change micrometer properties to use adapters
Update configuration property classes used with micrometer so that
they no longer directly implement `Config` interfaces. Properties
are now adapted to Config implementations independently.

See gh-9970
2017-09-14 22:16:07 -07:00
Phillip Webb 86926bf0e5 Upgrade to Micrometer 1.0.0-rc.1
Closes gh-10300
2017-09-14 22:16:07 -07:00
Phillip Webb 324a00fd6d Polish 2017-09-14 18:33:03 -07:00
Phillip Webb 21b645fba8 Add missing ObjectProvider for missing beans
Update `MetricsAutoConfiguration` to use an `ObjectProvider` to guard
against missing beans.

See gh-9970
2017-09-14 14:53:59 -07:00
Andy Wilkinson 3942ba2e68 Consistently use the spring.metrics configuration property prefix
See gh-9970
2017-09-14 18:44:00 +01:00
Stephane Nicoll 5efcbad751 Polish 2017-09-14 19:22:37 +02:00
Stephane Nicoll ddde3c5695 Add error metadata for the Micrometer migration
See gh-9970
2017-09-14 19:19:36 +02:00
Andy Wilkinson 962b3df9c6 Add and polish package-info.java for actuator
Closes gh-10298
2017-09-14 17:44:37 +01:00
Jon Schneider c2958c27ab Replace Boot's own metrics with support for Micrometer
Closes gh-9970
2017-09-14 17:15:46 +01:00
Stephane Nicoll 033939e3c0 Add error metadata for Security-related keys 2017-09-14 15:47:20 +02:00
Johnny Lim bd2d08bcd0 Polish
Closes gh-10282
2017-09-14 15:13:51 +02:00
Stephane Nicoll 5e7dbe8f4a Move configuration of LogFileWebEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll d7f3008122 Move configuration of EnvironmentEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll bb622292ba Move configuration of ConfigurationPropertiesReportEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll 0d62b0cb3c Move configuration of TraceEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll 82fd18cee3 Polish 2017-09-13 11:34:59 +02:00
Stephane Nicoll 40e6f004da Enable info and status endpoints by default
Closes gh-10161
2017-09-12 12:51:26 +02:00
Stephane Nicoll 222ed44bd4 Replace enabledByDefault to DefaultEnablement
This commit introduces a DefaultEnablement enum that replaces the
"enabledByDefault" boolean flag of Endpoint. This allows to better
control what indicates the default enablement of an endpoint.

With DefaultEnablement#ENABLED, the endpoint is enabled unless an
endpoint specific property says otherwise. With DefaultEnabled#DISABLED,
the endpoint is disabled unless an endpoint specific property says
otherwise. DefaultEnablement#NEUTRAL provides a dedicated option to
indicate that we should resort to the default settings in absence of
a specific property.

See gh-10161
2017-09-12 12:23:04 +02:00
Andy Wilkinson 3882552b43 Polish 2017-09-12 10:22:35 +01:00
Phillip Webb 46dfe38b60 Rework security request matchers
Update the security request matchers so that a bean is no longer needed
when the matcher is used. Matchers can now be build by starting from
the `EndpointRequest` or `StaticResourceRequest` classes. For example:

http.authorizeRequests()
  .requestMatchers(EndpointRequest.to("status", "info")).permitAll()
  .requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole("ACTUATOR")
  .requestMatchers(StaticResourceRequest.toCommonLocations()).permitAll()

Closes gh-7958
2017-09-12 00:11:29 -07:00
Phillip Webb 2e51b48cd9 Refactor actuator package locations
Restructure actuator packages to improve structure. The following
changes have been made:

 - Separate actuator and actuator auto-configuration into different
   modules.
 - Move endpoint code into `spring-boot-actuator`.
 - Move `Endpoint` implementations from a single package into
   technology specific packages.
 - Move `HealthIndicator` implementations from a single package into
   technology specific packages.
 - As much as possible attempt to mirror the `spring-boot` package
   structure and class naming in `spring-boot-actuator` and
   `spring-boot-actuator-autoconfigure`.
 - Move `DataSourceBuilder` and DataSource meta-data support from
   `spring-boot-actuator` to `spring-boot`.

Fixes gh-10261
2017-09-12 00:11:20 -07:00