Skip to content

[improve][build] Upgrade Bouncy Castle libraries - #26753

Merged
merlimat merged 1 commit into
apache:masterfrom
lhotari:lh-improve-bouncycastle-updates
Sep 29, 2026
Merged

merlimat merged 1 commit into
apache:masterfrom
lhotari:lh-improve-bouncycastle-updates

Conversation

@lhotari

@lhotari lhotari commented Sep 29, 2026

Copy link
Copy Markdown
Member

Motivation

Update the Bouncy Castle libraries used for TLS and cryptography to the available stable releases, including the FIPS test dependencies.

Modifications

Library Previous Updated
bcpkix-jdk18on 1.85 1.86
bcprov-jdk18on 1.85.2 1.86
bcutil-jdk18on (transitive) 1.85 1.86
bctls-jdk18on 1.85 1.86.1
bcpkix-fips 2.1.12 2.1.13
bcutil-fips 2.1.7 2.1.8

Give TLS its own version pin because its 1.86.1 patch was not published for PKIX or the provider. Keep the current bc-fips provider at 2.1.3. Update the server and shell binary-license inventories to match the bundled jars.

Verifying this change

  • Make sure that the change passes the CI checks.

Existing tests cover this change. Local validation passed:

  • ./gradlew help assemble sanityCheck checkBinaryLicense --configuration-cache --console=plain (sanityCheck includes Checkstyle and Spotless).
  • 31 tests across JcaProvidersTest, JcaProviderPinningTest, and JdkSslContextsTest in pulsar-common.
  • All 3 TlsProducerConsumerTest tests in tests/pulsar-client-test-bcfips.

The focused tests ran with -PtestRetryCount=0, with no failures or skips.

Does this pull request potentially affect one of the following parts:

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

@merlimat
merlimat merged commit 5bd9326 into apache:master Sep 29, 2026
43 checks passed
@lhotari lhotari added this to the 5.0.0 milestone Oct 1, 2026
ascentstream-bot pushed a commit to ascentstream/pulsar that referenced this pull request Oct 1, 2026
ascentstream-bot pushed a commit to ascentstream/pulsar that referenced this pull request Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants