Skip to content

SSL should not be enabled when a SSL bundle is overridden to an empty string#50624

Merged
snicoll merged 2 commits into
spring-projects:3.5.xfrom
dlwldnjs1009:treat-empty-ssl-bundle-as-unset
May 30, 2026
Merged

SSL should not be enabled when a SSL bundle is overridden to an empty string#50624
snicoll merged 2 commits into
spring-projects:3.5.xfrom
dlwldnjs1009:treat-empty-ssl-bundle-as-unset

Conversation

@dlwldnjs1009
Copy link
Copy Markdown
Contributor

Follow-up to #50429, which treated an empty RabbitMQ SSL bundle as unset.

Ssl.isEnabled() in Cassandra, Redis, and MongoDB still derived
enablement from this.bundle != null, so an empty bundle value enabled
SSL instead of being treated as unset. They now use StringUtils.hasText,
matching RabbitMQ and the existing Couchbase behavior.

Testing:

  • CassandraPropertiesTests.sslIsNotEnabledWhenBundleIsEmpty
  • RedisPropertiesTests.sslIsNotEnabledWhenBundleIsEmpty
  • MongoPropertiesTests.sslIsNotEnabledWhenBundleIsEmpty

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 29, 2026
@snicoll snicoll changed the title Treat empty SSL bundle as unset SSL should not be enabled when a SSL bundle is overridden to an empty string May 30, 2026
dlwldnjs1009 and others added 2 commits May 30, 2026 16:11
Update the Cassandra, Redis, and MongoDB SSL configuration so that an
empty `bundle` property is treated as unset rather than enabling SSL.

See spring-projectsgh-50624

Signed-off-by: Lee JiWon <dlwldnjs1009@gmail.com>
Update Mail SSL configuration as well.

See spring-projectsgh-50624
@snicoll snicoll self-assigned this May 30, 2026
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels May 30, 2026
@snicoll snicoll added this to the 3.5.15 milestone May 30, 2026
@snicoll snicoll force-pushed the treat-empty-ssl-bundle-as-unset branch from 546f271 to 88a7a44 Compare May 30, 2026 14:21
@snicoll snicoll merged commit a009ea4 into spring-projects:3.5.x May 30, 2026
3 of 4 checks passed
@dlwldnjs1009 dlwldnjs1009 deleted the treat-empty-ssl-bundle-as-unset branch May 30, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants