Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 21, 2025

This PR removes the Conscrypt ALPN dependency from the Javalin SSL Plugin and bundle, as requested for the 7.x release.

Background

The SSL plugin currently includes jetty-alpn-conscrypt-server as a dependency in both the javalin-ssl module and javalin-bundle, but this dependency was never actually used in the codebase. The SSL plugin already uses Jetty's standard ALPN implementation (ALPNServerConnectionFactory from org.eclipse.jetty.alpn.server) which provides all necessary HTTP/2 and ALPN functionality without requiring Conscrypt.

Changes

  • Removed jetty-alpn-conscrypt-server dependency from javalin-ssl/pom.xml
  • Removed jetty-alpn-conscrypt-server dependency from javalin-bundle/pom.xml
  • No code changes required since Conscrypt was never imported or used

Validation

The removal has been thoroughly tested:

  • ✅ All 97 SSL plugin tests continue to pass
  • ✅ HTTP/2 and ALPN functionality confirmed working via test logs: Started oejs.ServerConnector@...{SSL, (ssl, alpn, h2, http/1.1)}
  • ✅ Full project build successful
  • ✅ Bundle module builds correctly without the dependency
  • ✅ Core Javalin framework functionality preserved
  • ✅ Dependency tree clean of Conscrypt references

Impact

This change is fully backward compatible since Conscrypt was never actively used. The SSL plugin continues to provide the same ALPN and HTTP/2 capabilities through Jetty's standard implementation, which is the recommended approach for modern Java applications. This reduces the dependency footprint and potential security surface area without any functional impact.

Fixes #2113.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://storage.googleapis.com/chrome-for-testing-public/140.0.7339.185/linux64/chromedriver-linux64.zip
    • Triggering command: REDACTED, pid is -1 (http block)
  • wronghost
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -javaagent:/home/REDACTED/.m2/repository/org/jacoco/org.jacoco.agent/0.8.13/org.jacoco.agent-0.8.13-runtime.jar=destfile=/home/REDACTED/work/javalin/javalin/javalin-ssl/target/jacoco.exec -jar /home/REDACTED/work/javalin/javalin/javalin-ssl/target/surefire/surefirebooter-20250921153919702_3.jar /home/REDACTED/work/javalin/javalin/javalin-ssl/target/surefire 2025-09-21T15-39-19_629-jvmRun1 surefire-20250921153919702_1tmp surefire_0-20250921153919702_2tmp (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -javaagent:/home/REDACTED/.m2/repository/org/jacoco/org.jacoco.agent/0.8.13/org.jacoco.agent-0.8.13-runtime.jar=destfile=/home/REDACTED/work/javalin/javalin/javalin-ssl/target/jacoco.exec -jar /home/REDACTED/work/javalin/javalin/javalin-ssl/target/surefire/surefirebooter-20250921154127446_3.jar /home/REDACTED/work/javalin/javalin/javalin-ssl/target/surefire 2025-09-21T15-41-27_369-jvmRun1 surefire-20250921154127446_1tmp surefire_0-20250921154127446_2tmp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Drop Conscript support in SSL Plugin [ssl] Drop Conscrypt ALPN support from SSL Plugin Sep 21, 2025
Copilot AI requested a review from tipsy September 21, 2025 15:47
@tipsy tipsy marked this pull request as ready for review September 21, 2025 15:48
@tipsy tipsy merged commit f840be8 into master Sep 21, 2025
24 checks passed
@tipsy tipsy deleted the copilot/fix-2113 branch September 21, 2025 15:49
@codecov
Copy link

codecov bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.47%. Comparing base (29981a7) to head (604aa5e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2464   +/-   ##
=========================================
  Coverage     86.47%   86.47%           
  Complexity     1432     1432           
=========================================
  Files           147      147           
  Lines          4600     4600           
  Branches        479      479           
=========================================
  Hits           3978     3978           
  Misses          404      404           
  Partials        218      218           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop Conscript support in SSL Plugin

2 participants