Commit Graph

13244 Commits (46dfe38b60ad6546c354a3173be22b78779671c1)
 

Author SHA1 Message Date
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
7 years ago
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
7 years ago
Phillip Webb 0f99b29b1a Temporarily remove security matchers
Temporarily back out `SpringBootSecurity` to enable easier
package refactoring.

See gh-10261
7 years ago
Phillip Webb ecb8461e8c Manually format security configuration
Update security configuration formatting to follow conventions
recommended in the Spring Security documentation.

See gh-7958
7 years ago
Stephane Nicoll 8f79ca9e65 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 1ddc3dce0c Upgrade to Spring Integration Java Dsl 1.2.3.RELEASE
Closes gh-10262
7 years ago
Stephane Nicoll cf3226f799 Upgrade to Spring Integration 4.3.12
Closes gh-10034
7 years ago
Stephane Nicoll a80d466130 Upgrade to Spring Kafka 2.0.0.RC1
Closes gh-10120
7 years ago
Stephane Nicoll c41cfab749 Merge pull request #10240 from eddumelendez:update_junit_jupiter_ga
* pr/10240:
  Polish "Provide dependency management for JUnit Jupiter"
  Provide dependency management for JUnit Jupiter
7 years ago
Stephane Nicoll 1dc08fdda2 Polish "Provide dependency management for JUnit Jupiter"
Closes gh-10240
7 years ago
Eddú Meléndez bb4a8cdc0e Provide dependency management for JUnit Jupiter
Spring Framework 5 provides support for JUnit 5. This commit adds
dependency management for JUnit 5 and an upgrade for
spring-boot-sample-junit-jupiter sample.

See gh-10240
7 years ago
Stephane Nicoll e6811de4ac Merge branch '1.5.x' 7 years ago
Stephane Nicoll 6c4ed5e18b Merge pull request #10256 from aconstantin:patch-1
* pr/10256:
  Use underline instead of dash in tomcat properties
7 years ago
Alexander Constantin 281a93a0c4 Use underline instead of dash in tomcat properties
Closes gh-10256
7 years ago
Andy Wilkinson 6ac65a7783 Upgrade to Spring AMQP 2.0.0.RC1
Closes gh-9289
7 years ago
Andy Wilkinson c46cb2647b Upgrade to Spring Data Kay RC3
Closes gh-10124
7 years ago
Stephane Nicoll 1cd3b0cabe Remove auto-configuration for MapSessionRepository
This commit removes auto-configuration for Spring Session's simple in
memory support.

Closes gh-10253
7 years ago
Andy Wilkinson 93245a8297 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 32e24f3e0a Upgrade to Spring AMQP 1.7.4
Closes gh-10248
7 years ago
Stephane Nicoll 6de364f2df Configure SessionRepositoryFilter with a custom SessionRepository
This commit makes sure that customizations on the
SessionRepositoryFilter are also applied when the user provides its
own SessionRepository.

Closes gh-10254
7 years ago
Stephane Nicoll b8eff0a0f6 Migrate tests to ApplicationContextRunner 7 years ago
Andy Wilkinson 85493367b6 Rework health response structure to eliminate chance of key clashes
Previously, if a health's details contained a key named status (either
because an indicator bean was named statusHealthIndicator or an
indicator added an entry named status to its details) this would
clash with the health's own status as the details were serialized as
siblings of the status field.

This commit updates Health to remove @JsonAnyGetter from getDetails().
This means that all of a Health's details will now be nested within
a separate details field, thereby preventing a possible clash with
the status field.

Closes gh-10249
7 years ago
Stephane Nicoll bc9d8bb1cf Upgrade to Reactor Bismuth-M4
Closes gh-10121
7 years ago
Stephane Nicoll 023a4b645e Upgrade to Spring Framework 5.0.0.RC4
Closes gh-10123
7 years ago
Andy Wilkinson ab3bf507c0 Start building against Spring Data Kay snapshots for RC 3
See gh-10124
7 years ago
Andy Wilkinson 7e87cc401d Merge branch '1.5.x' 7 years ago
Andy Wilkinson 596c32cd6a Update to Spring Data Ingalls SR7
Closes gh-10165
7 years ago
Andy Wilkinson dad7357b89 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 5b1a4a0430 Note that management.context-path is relative to server.context-path
Closes gh-10200
7 years ago
Andy Wilkinson d92bc902b6 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 5938df52ea Stop auto-config of MethodValidationPP triggering early init
Previously, if a user's configuration class provided a custom
Validator bean, that configuration class would be initialized very
early so that the Validator could be used to create the
auto-configured MethodValidationPostProcessor. This early
initialization could problems as it may prevent any of the
configuration class's dependencies from being post-processed.

This commit updates the injection of the Validator bean to be lazy,
thereby preventing the creation of the auto-configured
MethodValidationPostProcessor from triggering early initialization.

Closes gh-9416
7 years ago
Andy Wilkinson 971c9d3c34 Provide dependency management for Reactive Streams
Closes gh-10246
7 years ago
Andy Wilkinson fe96d765f2 Upgrade to Rxjava 1.3.1
Closes gh-10244
7 years ago
Andy Wilkinson 3c1b9ea8bd Upgrade to Lettuce 5.0.0.RC2
Closes gh-10243
7 years ago
Stephane Nicoll 50b2c479e6 Merge branch '1.5.x' 7 years ago
Stephane Nicoll fb5a3effb7 Upgrade to Spring Framework 4.3.11.RELEASE
Closes gh-9956
7 years ago
Stephane Nicoll 46470b5196 Remove outdated additional metadata 7 years ago
Stephane Nicoll 2b2eb73cb0 Remove security properties 7 years ago
Stephane Nicoll 9e366f0fde Fix typo 7 years ago
Stephane Nicoll a4a19e1e01 Polish
This commit makes sure that the defaultValue has to be provided in
assertions. If not present, no defaultValue should be generated.
7 years ago
Andy Wilkinson 674170a393 Merge branch 'gh-9366' 7 years ago
Andy Wilkinson 5d67ae4d81 Ignore duplicate javax.annotation classes from tomcat-embed-core
See gh-9366
7 years ago
Andy Wilkinson c082e31d10 Add javax.annotation-api dependency to spring-boot-starter
Closes gh-9366
7 years ago
Andy Wilkinson db0c41851b Upgrade to Jackson 2.9.1
Closes gh-10231
7 years ago
Andy Wilkinson c06de245d9 Allow endpoints to be mapped to /
This commit removes the restriction that was added in 4a61e45 to
prevent / from being used as the management context path when the
management context was not using a different port

The management context path can now be set to / irrespective of the
configuration of the management port. To avoid a possible clash
with the application's welcome page or similar, the links "endpoint"
that is mapping to the management context path is disabled when
the management context path is /.

As part of allowing / to be used as the management context path again,
the handling of endpoint mappings and the creation of paths for
individual operations has been consolidated into a new EndpointMapping
class that is used across the three (MVC, WebFlux, and Jersey)
implementations.

See gh-9898
7 years ago
Stephane Nicoll 4c0a70ced6 Merge pull request #10229 from izeye:broken-links-20170908
* pr/10229:
  Fix broken links
7 years ago
Johnny Lim 024c23cedb Fix broken links
Closes gh-10229
7 years ago
Stephane Nicoll a1aec67c11 Merge pull request #10228 from izeye:unused-20170908
* pr/10228:
  Remove EndpointServletWebAutoConfigurationTests
7 years ago
Johnny Lim fd1b460027 Remove EndpointServletWebAutoConfigurationTests
Closes gh-10228
7 years ago
Stephane Nicoll d74ebda897 Merge pull request #10225 from shakuzen:patch-14
* pr/10225:
  Upgrade to HikariCP 2.7.1
7 years ago