Commit Graph
62403 Commits
Author SHA1 Message Date
Andy Wilkinson 4c37d12916 Merge pull request #51461 from seanxuu
Closes gh-51461

* gh-51461:
  Polish "Configure required authentication operation types for embedded LDAP"
  Configure required authentication operation types for embedded LDAP
2026-08-27 14:58:10 +01:00
Andy Wilkinson 74f1e37c3d Polish "Configure required authentication operation types for embedded LDAP"
See gh-51461
2026-08-27 14:51:49 +01:00
Sean ab642b82da Configure required authentication operation types for embedded LDAP
Signed-off-by: Sean <seanxu@connect.hku.hk>

See gh-51461
2026-08-27 14:47:11 +01:00
Andy Wilkinson 37a20a302b Merge branch '4.1.x'
Closes gh-51482
2026-08-27 14:42:31 +01:00
Andy Wilkinson b7333fa1aa Merge branch '4.0.x' into 4.1.x
Closes gh-51481
2026-08-27 14:42:20 +01:00
Andy Wilkinson fb4896741c Merge pull request #51467 from 2heunxun
Closes gh-51467

* gh-51467:
  Honor existing 'encrypt' JDBC parameter for SQL Server Docker Compose
2026-08-27 14:41:51 +01:00
2heunxun 9847c9613e Honor existing 'encrypt' JDBC parameter for SQL Server Docker Compose
Signed-off-by: 2heunxun <seapeon@naver.com>

See gh-51467
2026-08-27 14:32:40 +01:00
Andy Wilkinson c4786891ba Merge branch '4.1.x'
Closes gh-51480
2026-08-27 14:30:13 +01:00
Andy Wilkinson a16c8a2479 Merge branch '4.0.x' into 4.1.x
Closes gh-51479
2026-08-27 14:29:50 +01:00
Andy Wilkinson 71a51a0277 Merge pull request #51453 from dependabot[bot]
Closes gh-51453

* gh-51453:
  Bump Homebrew/actions/setup-homebrew from 2026.08.14.1 to 2026.08.24.1
2026-08-27 14:29:29 +01:00
dependabot[bot] 0452f6d110 Bump Homebrew/actions/setup-homebrew from 2026.08.14.1 to 2026.08.24.1
Bumps [Homebrew/actions/setup-homebrew](https://github.com/homebrew/actions) from 2026.08.14.1 to 2026.08.24.1.
- [Release notes](https://github.com/homebrew/actions/releases)
- [Changelog](https://github.com/Homebrew/actions/blob/main/release.test.mts)
- [Commits](https://github.com/homebrew/actions/compare/8f3d1ec8a696b3b9d9a6c3696b6c73033cab69e4...a657b8b0cd35d0f65cce41fce9b24cf054b49869)

---
updated-dependencies:
- dependency-name: Homebrew/actions/setup-homebrew
  dependency-version: 2026.08.24.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

See gh-51453
2026-08-27 14:26:37 +01:00
Andy Wilkinson 32d72335ba Merge branch '4.1.x'
Closes gh-51478
2026-08-27 14:19:44 +01:00
Andy Wilkinson 03de7a801b Merge branch '4.0.x' into 4.1.x
Closes gh-51477
2026-08-27 14:19:24 +01:00
Andy Wilkinson 31f7eeda68 Upgrade to Nullability Plugin 0.0.15
Closes gh-51475
2026-08-27 13:57:08 +01:00
Moritz Halbritter 99274e3143 Fix embedded LDAP SSL and reuse client auto-configuration
Replace the hand-rolled LdapContextSource of the embedded server
with an LdapConnectionDetails implementation, so that
LdapAutoConfiguration creates the context source for both the external
and the embedded case. Previously, the embedded context source derived
the URL scheme from spring.ldap.ssl and never applied an SSL bundle to
the JNDI environment, leaving an embedded LDAPS server unreachable. It
also ignored spring.ldap.anonymous-read-only, spring.ldap.referral,
spring.ldap.base-environment and any DirContextAuthenticationStrategy
bean, all of which now apply.

The embedded server provides everything that describes a connection to
it, so spring.ldap.urls, spring.ldap.username, spring.ldap.password and
spring.ldap.ssl are now ignored while it is used. A spring.ldap
configuration meant for a production server therefore no longer has to
be unset for a test to run against the embedded server. This is a
behavior change: spring.ldap.urls used to take precedence and silently
pointed the client away from the embedded server.

As spring.ldap.base-environment now applies to the embedded case, a
socket factory set there would be replaced by the one of the SSL
bundle. Startup fails instead of using either silently.

LdapProperties.determineUrls has been removed. Its local.ldap.port
handling only ever served the embedded case, which the embedded
connection details now cover, and the default URL derivation has moved
to PropertiesLdapConnectionDetails, its only caller.

Closes gh-51465
2026-08-27 09:32:13 +02:00
Moritz Halbritter bf1b583596 Fail fast if ssl.enabled = true without an SSL bundle
Setting spring.ldap.embedded.ssl.enabled without an SSL bundle started a
plain LDAP listener silently. It now fails at startup as a bundle is
required to provide the server's certificate and private key.

Closes gh-51471
2026-08-27 09:32:13 +02:00
Moritz Halbritter 6c33f551e7 Add missing tests for reflection hints
See gh-51382
2026-08-27 09:32:13 +02:00
Phillip Webb 8b35236d92 Merge branch '4.1.x' 2026-08-26 14:40:02 -07:00
Phillip Webb a63e99407e Merge branch '4.0.x' into 4.1.x 2026-08-26 14:08:23 -07:00
Phillip Webb 9c8bf507d4 Simplify documentation dependencies 2026-08-26 14:03:44 -07:00
Phillip Webb 293c56bf52 Merge branch '4.1.x' 2026-08-26 11:11:03 -07:00
Phillip Webb 25194625b5 Merge branch '4.0.x' into 4.1.x 2026-08-26 11:09:18 -07:00
Phillip Webb fd0f76304c Sort implementation dependencies in spring-boot-docs 2026-08-26 11:03:23 -07:00
Phillip Webb ffd9190409 Merge branch '4.1.x' 2026-08-26 10:48:37 -07:00
Phillip Webb 4cdd2015e7 Merge branch '4.0.x' into 4.1.x 2026-08-26 10:45:35 -07:00
Phillip Webb a1cc95e8a6 Polish gradle dependency declarations
Remove 'path:' prefix when possible.
2026-08-26 10:39:28 -07:00
Moritz Halbritter 4a3cad7983 Add SSL support for LDAP in Docker Compose
Also fixes missing LDAP entries in the documentation.

See gh-51382
2026-08-26 11:53:08 +02:00
Moritz Halbritter f92cf3155e Merge pull request #51382 from dhruv9b
Closes gh-51382

* pr/51382:
  Polish "Add SSL bundle support to LDAP auto-configuration"
  Add SSL bundle support to LDAP auto-configuration
2026-08-26 10:58:49 +02:00
Moritz Halbritter 969f1c03bf Polish "Add SSL bundle support to LDAP auto-configuration"
Configure the SSL bundle through the context source's base environment
rather than a DirContextAuthenticationStrategy. The strategy is not
consulted when read-only operations use an anonymous environment,
which is the default when no username is set, so LDAPS connections
silently used the JVM's default trust material. It was also bypassed
entirely when a custom strategy bean was defined.
Register an SSL bundle update handler so that reloaded key and trust
material is used by subsequent connections.

Target LDAPS rather than StartTLS by setting the JNDI
java.naming.ldap.factory.socket property, and fail at startup if a
bundle is combined with a non-ldaps URL or with a socket factory that
has also been set through spring.ldap.base-environment. Delegate all
socket factory methods so that a configured connect timeout is
applied.

Add spring.ldap.ssl.enabled to use the platform's default trust and
key material without a bundle, default the URL to
ldaps://localhost:636 when SSL is enabled, and register the reflection
hint that JNDI needs to load the socket factory by name in a native
image. Cover the result with integration tests that search over LDAPS
against OpenLDAP and LLDAP containers, including certificates that are
untrusted or issued to a different host.

See gh-51382
2026-08-26 10:35:57 +02:00
dhruv9b 255677d8e7 Add SSL bundle support to LDAP auto-configuration
See gh-51382

Signed-off-by: dhruv9b <9bdhruv@gmail.com>
2026-08-26 08:23:35 +02:00
Phillip Webb 862b763d00 Merge branch '4.1.x'
Closes gh-51458
2026-08-25 18:54:13 -07:00
Phillip Webb 9d617d0cae Merge branch '4.0.x' into 4.1.x
Closes gh-51457
2026-08-25 18:54:05 -07:00
Phillip Webb b41cff1ab5 Merge pull request #51290 from scottfrederick
Closes gh-51290

* pr/51290:
  Polish "Retain SSL host config customizations when reloading SSL bundles"
  Retain SSL host config customizations when reloading SSL bundles
2026-08-25 18:53:55 -07:00
Phillip Webb fa163d4f2d Polish "Retain SSL host config customizations when reloading SSL bundles"
See gh-51290
2026-08-25 18:53:05 -07:00
Scott Frederick cbbe588d1f Retain SSL host config customizations when reloading SSL bundles
Tomcat's SSL configuration is applied to an `SSLHostConfig` for each
host name. When an SSL bundle was updated, a new `SSLHostConfig` was
created and used to replace the existing one for that host name,
discarding any customizations that had been applied to it (for example
by a `TomcatConnectorCustomizer`).

Reuse the existing `SSLHostConfig` for the host name when one is
present, applying the updated bundle to it rather than replacing it. The
existing `SSLHostConfigCertificate` is also reused, as adding a second
certificate with an undefined type to an `SSLHostConfig` is rejected by
Tomcat.

See gh-51290

Signed-off-by: Scott Frederick <scottyfred@gmail.com>
2026-08-25 18:52:34 -07:00
Phillip Webb 066f11df0b Merge branch '4.1.x' 2026-08-25 15:02:54 -07:00
Phillip Webb 61c8f653c4 Fix checkstyle violation 2026-08-25 15:02:37 -07:00
Phillip Webb ef4f1404a1 Merge branch '4.1.x'
Closes gh-51455
2026-08-25 14:19:47 -07:00
Phillip Webb 914f39384c Merge branch '4.0.x' into 4.1.x
Closes gh-51454
2026-08-25 14:07:23 -07:00
Phillip Webb 5a21e0d698 Upgrade to spring-javaformat 0.0.48
Closes gh-51452
2026-08-25 13:58:58 -07:00
Phillip Webb 7538153cc1 Merge branch '4.1.x'
Closes gh-51451
2026-08-25 12:43:08 -07:00
Phillip Webb cd5d2decf9 Merge branch '4.0.x' into 4.1.x
Closes gh-51450
2026-08-25 12:43:03 -07:00
Phillip Webb 53c04499b4 Create properties despite used-defined ClientRegistrationRepository
Update `OAuth2ClientConfigurations` so that properties are created
regardless of a user-defined `ClientRegistrationRepository` bean.

Fixes gh-51447
2026-08-25 12:41:23 -07:00
Phillip Webb 64dd438bb8 Merge branch '4.1.x'
Closes gh-51449
2026-08-25 12:39:52 -07:00
Phillip Webb 40c527aeb0 Merge branch '4.0.x' into 4.1.x
Closes gh-51448
2026-08-25 12:39:46 -07:00
Phillip Webb 64267798cb Merge pull request #51409 from msridhar
Closes gh-51409

* pr/51409:
  Fix warning from NullAway 0.14.0 related to override
2026-08-25 12:39:36 -07:00
Manu Sridharan 23fc7dd183 Fix warning from NullAway 0.14.0 related to override
See gh-51409

Signed-off-by: Manu Sridharan <msridhar@gmail.com>
2026-08-25 12:29:02 -07:00
Phillip Webb 42f06537c1 Merge branch '4.1.x'
Closes gh-51446
2026-08-25 12:08:57 -07:00
Phillip Webb 299c7d9125 Merge branch '4.0.x' into 4.1.x
Closes gh-51445
2026-08-25 12:08:53 -07:00
Phillip Webb 45b520f6c2 Merge pull request #51431 from CHISANW
Closes gh-51431

* pr/51431:
  Fix typos in service connection documentation
2026-08-25 12:08:49 -07:00