<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">
<p class="details" style="font-style: italic; color: #626168;">
<a href="https://gitlab.com/smortex">Romain Tartière</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/work_items/1842">#1842</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<h2 id="user-content-description-of-problem" dir="auto" style="margin-top: 0px; margin-bottom: 10px;" align="initial">Description of problem:<a href="#description-of-problem" aria-label="Link to heading 'Description of problem:'" data-heading-content="Description of problem:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">A few months ago, after a regular package update on our Debian systems from openjdk-17 (17.0.16+8-1 -> 17.0.17~5ea-1), our monitoring system stopped receiving logs from all our log clients (logs sent by a C program) but kept receiving metrics (from the same node) sent by our metric clients (metrics sent by a ruby program).</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Both systems are suing the same mTLS certificates to authenticate clients against the server. The ruby clients where fine, but the C client could not establish a TLS connection because handshake systematically failed.</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">After reverting the java package to the previous version (17.0.17~5ea-1 -> 17.0.16+8-1), everything was working back as expected.</p>
<h2 id="user-content-more-context" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">More context<a href="#more-context" aria-label="Link to heading 'More context'" data-heading-content="More context" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Thanks to some git-bisect, the commit in openjdk that break authentication has been identified and is:</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial"><a href="https://github.com/openjdk/jdk17u/commit/fe850da38a3fc0c9ce6cf9348efca3c846e97143" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0px;">https://github.com/openjdk/jdk17u/commit/fe850da38a3fc0c9ce6cf9348efca3c846e97143</a></p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">It relates to this issue:</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial"><a href="https://bugs.openjdk.org/browse/JDK-8349583" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0px;">https://bugs.openjdk.org/browse/JDK-8349583</a></p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Other versions of openjdk which include this change also trigger the issue with GnuTLS (tested with openjdk 21 and a few other versions).</p>
<h2 id="user-content-version-of-gnutls-used" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Version of gnutls used:<a href="#version-of-gnutls-used" aria-label="Link to heading 'Version of gnutls used:'" data-heading-content="Version of gnutls used:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Our production systems use the version of GnuTLS packaged in Debian (libgnutls30:amd64 3.7.9-2+deb12u6).</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">The issue has also been reproduced on FreeBSD with the latest version of GnuTLS.</p>
<h2 id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)<a href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-label="Link to heading 'Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)'" data-heading-content="Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">System packages from Debian and FreeBSD.</p>
<h2 id="user-content-how-reproducible" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">How reproducible:<a href="#how-reproducible" aria-label="Link to heading 'How reproducible:'" data-heading-content="How reproducible:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Steps to Reproduce:</p>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0px 0px 1rem; padding: 0;">
<li style="margin-top: 0px; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Setup a java service that offer mTLS authentication;</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Use a GnuTLS client that rely on <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0px; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>gnutls_certificate_set_x509_key_file()</code> to setup client-side TLS key and certificate;</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Attempt to connect with different versions of Java.</li>
</ul>
<h2 id="user-content-actual-results" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Actual results:<a href="#actual-results" aria-label="Link to heading 'Actual results:'" data-heading-content="Actual results:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Handshake fails when using a version of Java that include the above code (newer versions of Java) but succeeds with older versions of Java.</p>
<h2 id="user-content-expected-results" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Expected results:<a href="#expected-results" aria-label="Link to heading 'Expected results:'" data-heading-content="Expected results:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px;" align="initial">Handshake should succeed regardless of the version of Java used.</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/work_items/1842">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/4-5rivylgycn5arjgwmj27u3egw-a84t7/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.com/gnutls/gnutls/-/work_items/1842 at 1776378254
</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Work item","url":"https://gitlab.com/gnutls/gnutls/-/work_items/1842"}}</script>
</p>
</div>
</body>
</html>