Skip to content

Add examples for handling simultaneous full handshake and session res…

e7b4ae3
Select commit
Loading
Failed to load commit list.
Open

[AI] Add examples for handling simultaneous full handshake and session resumption #217

Add examples for handling simultaneous full handshake and session res…
e7b4ae3
Select commit
Loading
Failed to load commit list.
Jenkins CI - TLS-Attacker / Jenkins failed Jun 26, 2025 in 45s

Format Check: error in 'sh' step

Format Check / Shell Script

Error in sh step, with arguments mvn spotless:check.

script returned exit code 1
Build log
+ mvn spotless:check
Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/var/lib/jenkins/workspace/attacker-org_TLS-Attacker_PR-217@tmp/withMaven91570e9b/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/var/lib/jenkins/workspace/attacker-org_TLS-Attacker_PR-217@tmp/withMaven91570e9b" 
[INFO] [jenkins-event-spy] Generate /var/lib/jenkins/workspace/attacker-org_TLS-Attacker_PR-217@tmp/withMaven91570e9b/maven-spy-20250626-171110-69814020344289043299153.log.tmp ...
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] TLS-Attacker                                                       [pom]
[INFO] Utils                                                              [jar]
[INFO] Transport                                                          [jar]
[INFO] TLS-Core                                                           [jar]
[INFO] TLS-Client                                                         [jar]
[INFO] TLS-Mitm                                                           [jar]
[INFO] TLS-Proxy                                                          [jar]
[INFO] TLS-Server                                                         [jar]
[INFO] TraceTool                                                          [jar]
[INFO] 
[INFO] ----------------< de.rub.nds.tls.attacker:tls-attacker >----------------
[INFO] Building TLS-Attacker 7.4.1                                        [1/9]
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- spotless:2.44.4:check (default-cli) @ tls-attacker ---
[INFO] Index file does not exist. Fallback to an empty index
[INFO] Sorting file /tmp/pom9144367464640890168.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom12828344205559932233.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom17697225143637472471.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom17157059438598433500.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom14913607127076125892.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom8559330251381332218.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom17052774882327975203.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom11891537799957740670.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /tmp/pom10448780175934361330.xml
[INFO] Pom file is already sorted, exiting
[INFO] Spotless.Pom is keeping 9 files clean - 0 needs changes to be clean, 9 were already clean, 0 were skipped because caching determined they were already clean
[INFO] Spotless.Markdown is keeping 2 files clean - 1 needs changes to be clean, 1 were already clean, 0 were skipped because caching determined they were already clean
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for TLS-Attacker 7.4.1:
[INFO] 
[INFO] TLS-Attacker ....................................... FAILURE [  2.575 s]
[INFO] Utils .............................................. SKIPPED
[INFO] Transport .......................................... SKIPPED
[INFO] TLS-Core ........................................... SKIPPED
[INFO] TLS-Client ......................................... SKIPPED
[INFO] TLS-Mitm ........................................... SKIPPED
[INFO] TLS-Proxy .......................................... SKIPPED
[INFO] TLS-Server ......................................... SKIPPED
[INFO] TraceTool .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.309 s
[INFO] Finished at: 2025-06-26T17:11:14+02:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated /var/lib/jenkins/workspace/attacker-org_TLS-Attacker_PR-217@tmp/withMaven91570e9b/maven-spy-20250626-171110-69814020344289043299153.log
[ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.44.4:check (default-cli) on project tls-attacker: The following files had format violations:
[ERROR]     TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/examples/README.md
[ERROR]         @@ -106,6 +106,7 @@
[ERROR]          ##·Key·Implementation·Details
[ERROR]          
[ERROR]          ###·Session·ID·Checking
[ERROR]         +
[ERROR]          ```java
[ERROR]          boolean·isResumption·=·receivedSessionId·!=·null·&&·
[ERROR]          ······················receivedSessionId.length·>·0·&&·
[ERROR]         @@ -113,14 +114,18 @@
[ERROR]          ```
[ERROR]          
[ERROR]          ###·DTLS·Cookie·Handling
[ERROR]         +
[ERROR]          The·examples·include·HelloVerifyRequest·handling·for·DTLS:
[ERROR]         +
[ERROR]          ```java
[ERROR]          executeAction(new·SendAction(new·HelloVerifyRequestMessage()),·state);
[ERROR]          executeAction(new·ReceiveAction(new·ClientHelloMessage()),·state);·//·Second·hello·after·cookie
[ERROR]          ```
[ERROR]          
[ERROR]          ###·PSK·Configuration
[ERROR]         +
[ERROR]          The·examples·use·PSK·cipher·suites·as·shown·in·the·original·issue:
[ERROR]         +
[ERROR]          ```java
[ERROR]          config.setDefaultSelectedCipherSuite("TLS_PSK_WITH_AES_128_CBC_SHA");
[ERROR]          config.setDefaultPSKIdentity("Client_identity".getBytes());
[ERROR]         @@ -147,4 +152,5 @@
[ERROR]          
[ERROR]          -·Issue·#195:·Handling·Simultaneous·Full·Handshake·and·Session·Resumption
[ERROR]          -·TLS-Attacker·Documentation:·https://github.com/tls-attacker/TLS-Attacker
[ERROR]         --·TLS·Session·Resumption:·RFC·5246·Section·7.3
[ERROR]         +-·TLS·Session·Resumption:·RFC·5246·Section·7.3
[ERROR]         +
[ERROR] Run 'mvn spotless:apply' to fix these violations.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Details

  • Declarative: Checkout SCM (12 sec)
    • Clean (6.4 sec)
    • Format Check (9.2 sec)
      Error: script returned exit code 1 - logs
    • Build (1.8 sec)
    • Code Analysis (1.9 sec)
    • Unit Tests (1.8 sec)
    • Integration Tests (1.6 sec)
    • Deploy to Internal Nexus Repository (2.2 sec)
    • Declarative: Post Actions (7.2 sec)