Re: The question about 8211018: Session Resumption without Server-Side State

2022-12-08 Thread Volker Simonis
Hi Sergey, Thanks for starting this discussion. I've opened "8298381: Improve handling of session tickets for multiple SSLContexts" [1] to track this issue and submitted a pull request with a potential fix [2]. Let's continue the discussion there if you don't mind :) Best regards, Volker [1] htt

RFR: 8298381: Improve handling of session tickets for multiple SSLContexts

2022-12-08 Thread Volker Simonis
Currently, TLS session tickets introduced by [JDK-8211018](https://bugs.openjdk.org/browse/JDK-8211018) in JDK 13 (i.e. `SessionTicketExtension$StatelessKey`) are generated in the class `SessionTicketExtension` and they use a single, global key ID (`currentKeyID`) for all `SSLContext`s. This i

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts

2022-12-11 Thread Volker Simonis
On Thu, 8 Dec 2022 18:52:31 GMT, Sergey Bylokhov wrote: > I have asked some of the next questions already > [here](https://mail.openjdk.org/pipermail/security-dev/2022-December/033797.html). > Would like to mention some of them; > > * The main question I have: is it safe to assume that the

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts

2022-12-12 Thread Volker Simonis
On Sun, 11 Dec 2022 20:38:16 GMT, Xue-Lei Andrew Fan wrote: > > The same example with the 1000 connections being opened alternatively on > > two different contexts will instead create 1000 `StatelessKey` instances: > > That's obviously not the expected behaviors. It is a good catch for the > `

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts

2022-12-12 Thread Volker Simonis
On Sun, 11 Dec 2022 23:52:25 GMT, Sergey Bylokhov wrote: > > You're right, but that's actually an improvement compared to the initial > > implementation where cleanup/destroy wasn't synchronized at all :) > > With regards to the missing synchronization of key usage and key > > destruction, I th

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v2]

2022-12-20 Thread Volker Simonis
n: > > $ java -XX:+UseSerialGC -Xmx16m -cp ~/Java/ SSLSocketServerMultipleSSLContext > 2 1000 > 611: 2 64 > sun.security.ssl.SessionTicketExtension$StatelessKey (java.base@20-internal) > > > I've attached the test program to the [JBS > issue](https://bugs.openjdk.o

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts

2022-12-20 Thread Volker Simonis
On Sun, 11 Dec 2022 20:38:16 GMT, Xue-Lei Andrew Fan wrote: >> Currently, TLS session tickets introduced by >> [JDK-8211018](https://bugs.openjdk.org/browse/JDK-8211018) in JDK 13 (i.e. >> `SessionTicketExtension$StatelessKey`) are generated in the class >> `SessionTicketExtension` and they us

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v2]

2022-12-21 Thread Volker Simonis
On Wed, 21 Dec 2022 00:22:37 GMT, David Schlosnagle wrote: >> Volker Simonis has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Some refactoring and simplification. Moved most of the implementation >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v2]

2022-12-21 Thread Volker Simonis
On Wed, 21 Dec 2022 00:10:08 GMT, David Schlosnagle wrote: >> Volker Simonis has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Some refactoring and simplification. Moved most of the implementation >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-21 Thread Volker Simonis
n: > > $ java -XX:+UseSerialGC -Xmx16m -cp ~/Java/ SSLSocketServerMultipleSSLContext > 2 1000 > 611: 2 64 > sun.security.ssl.SessionTicketExtension$StatelessKey (java.base@20-internal) > > > I've attached the test program to the [JBS > issue](https://bugs.openjdk.o

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-22 Thread Volker Simonis
On Wed, 21 Dec 2022 19:34:19 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimized initialisation of currentKeyID and deletion of expired session >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-22 Thread Volker Simonis
On Wed, 21 Dec 2022 19:46:57 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimized initialisation of currentKeyID and deletion of expired session >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-22 Thread Volker Simonis
On Wed, 21 Dec 2022 20:07:40 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimized initialisation of currentKeyID and deletion of expired session >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-22 Thread Volker Simonis
On Wed, 21 Dec 2022 20:11:44 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimized initialisation of currentKeyID and deletion of expired session >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-22 Thread Volker Simonis
On Wed, 21 Dec 2022 20:23:25 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimized initialisation of currentKeyID and deletion of expired session >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-22 Thread Volker Simonis
On Wed, 21 Dec 2022 22:53:49 GMT, Anthony Scarpino wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimized initialisation of currentKeyID and deletion of expired session >>

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v3]

2022-12-22 Thread Volker Simonis
On Wed, 21 Dec 2022 22:53:44 GMT, Anthony Scarpino wrote: >> src/java.base/share/classes/sun/security/ssl/SSLContextImpl.java line 80: >> >>> 78: >>> 79: protected SessionTicketExtension.StatelessKey getKey() { >>> 80: SessionTicketExtension.StatelessKey ssk = serverCache.getKey();

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v4]

2022-12-22 Thread Volker Simonis
n: > > $ java -XX:+UseSerialGC -Xmx16m -cp ~/Java/ SSLSocketServerMultipleSSLContext > 2 1000 > 611: 2 64 > sun.security.ssl.SessionTicketExtension$StatelessKey (java.base@20-internal) > > > I've attached the test program to the [JBS > issue](https://bugs.openjdk.o

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts

2022-12-22 Thread Volker Simonis
On Sun, 11 Dec 2022 20:38:16 GMT, Xue-Lei Andrew Fan wrote: >> Currently, TLS session tickets introduced by >> [JDK-8211018](https://bugs.openjdk.org/browse/JDK-8211018) in JDK 13 (i.e. >> `SessionTicketExtension$StatelessKey`) are generated in the class >> `SessionTicketExtension` and they us

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v4]

2022-12-23 Thread Volker Simonis
On Thu, 22 Dec 2022 18:59:14 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Moved stateless key logic from SSLContextImpl to SSLSessionContextImpl and

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v4]

2022-12-23 Thread Volker Simonis
On Thu, 22 Dec 2022 18:54:16 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Moved stateless key logic from SSLContextImpl to SSLSessionContextImpl and

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v4]

2022-12-23 Thread Volker Simonis
On Thu, 22 Dec 2022 17:15:36 GMT, Anthony Scarpino wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Moved stateless key logic from SSLContextImpl to SSLSessionContextImpl and >> ad

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v4]

2022-12-23 Thread Volker Simonis
On Thu, 22 Dec 2022 19:13:21 GMT, Xue-Lei Andrew Fan wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Moved stateless key logic from SSLContextImpl to SSLSessionContextImpl and

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v5]

2022-12-23 Thread Volker Simonis
n: > > $ java -XX:+UseSerialGC -Xmx16m -cp ~/Java/ SSLSocketServerMultipleSSLContext > 2 1000 > 611: 2 64 > sun.security.ssl.SessionTicketExtension$StatelessKey (java.base@20-internal) > > > I've attached the test program to the [JBS > issue](https://bugs.openjdk.o

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts

2022-12-23 Thread Volker Simonis
On Thu, 22 Dec 2022 14:56:16 GMT, Volker Simonis wrote: >>> The same example with the 1000 connections being opened alternatively on >>> two different contexts will instead create 1000 `StatelessKey` instances: >> >> That's obviously not the expected beh

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v6]

2023-01-03 Thread Volker Simonis
n: > > $ java -XX:+UseSerialGC -Xmx16m -cp ~/Java/ SSLSocketServerMultipleSSLContext > 2 1000 > 611: 2 64 > sun.security.ssl.SessionTicketExtension$StatelessKey (java.base@20-internal) > > > I've attached the test program to the [JBS > issue](https://bugs.openjdk.o

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v5]

2023-01-03 Thread Volker Simonis
On Mon, 2 Jan 2023 03:05:27 GMT, Xue-Lei Andrew Fan wrote: > Looks good to me. Thanks! Thanks @XueleiFan! I've updated the copyright year to 2023 and will wait one or two more days just in case @ascarpino wants to take one more look as well. - PR: https://git.openjdk.org/jdk/pull

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v6]

2023-01-09 Thread Volker Simonis
On Sat, 7 Jan 2023 08:21:38 GMT, Sergey Bylokhov wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Updated copyright year to 2023 > > src/java.base/share/classes/sun/security/ssl/S

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v6]

2023-01-09 Thread Volker Simonis
On Sat, 7 Jan 2023 08:26:12 GMT, Sergey Bylokhov wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Updated copyright year to 2023 > > src/java.base/share/classes/sun/security/ssl/S

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v6]

2023-01-09 Thread Volker Simonis
On Sat, 7 Jan 2023 08:24:42 GMT, Sergey Bylokhov wrote: >> Volker Simonis has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Updated copyright year to 2023 > > src/java.base/share/classes/sun/security/ssl/S

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v5]

2023-01-09 Thread Volker Simonis
On Tue, 3 Jan 2023 17:43:43 GMT, Volker Simonis wrote: >> Looks good to me. Thanks! > >> Looks good to me. Thanks! > > Thanks @XueleiFan! > > I've updated the copyright year to 2023 and will wait one or two more days > just in case @ascarpino wants t

Re: RFR: 8298381: Improve handling of session tickets for multiple SSLContexts [v6]

2023-01-09 Thread Volker Simonis
On Mon, 9 Jan 2023 17:34:06 GMT, Sergey Bylokhov wrote: > Please clarify that, if the field is updated on one thread under synchronized > block, why we will read the correct "currentKeyID" here on another thread if > no synchronization is used in this place? I only said that if another thread

Integrated: 8298381: Improve handling of session tickets for multiple SSLContexts

2023-01-10 Thread Volker Simonis
On Thu, 8 Dec 2022 13:09:11 GMT, Volker Simonis wrote: > Currently, TLS session tickets introduced by > [JDK-8211018](https://bugs.openjdk.org/browse/JDK-8211018) in JDK 13 (i.e. > `SessionTicketExtension$StatelessKey`) are generated in the class > `SessionTicketExtension` an

Re: RFR: JDK-8319122: Improve documentation of various Zip-file related APIs

2023-11-03 Thread Volker Simonis
On Mon, 30 Oct 2023 17:26:53 GMT, Yakov Shafranovich wrote: > The various Zip/Jar-file related Java APIs have some long-standing > differences or peculiarities with respect to the ZIP-file specification or > compared to other implementations which should be documented in the API-doc. > This do

Re: RFR: JDK-8319122: Improve documentation of various Zip-file related APIs

2023-11-06 Thread Volker Simonis
On Mon, 30 Oct 2023 17:26:53 GMT, Yakov Shafranovich wrote: > The various Zip/Jar-file related Java APIs have some long-standing > differences or peculiarities with respect to the ZIP-file specification or > compared to other implementations which should be documented in the API-doc. > This do

Status of project "Brisbane"?

2024-06-03 Thread Volker Simonis
Hi, What's the status of Project Brisbane? According to [1], the Project was approved two month ago on April 4th, but until now I can't find it listed on openjdk.org nor can I find a corresponding mailing list? Best regards, Volker [1] https://mail.openjdk.org/pipermail/announce/2024-April/00035