Skip to content

tls: don't expect TLS 1.3 sessions to be resumable - #16702

Merged
mattklein123 merged 2 commits into
envoyproxy:mainfrom
agl:tls13resume
Jun 1, 2021
Merged

mattklein123 merged 2 commits into
envoyproxy:mainfrom
agl:tls13resume

Conversation

@agl

@agl agl commented May 27, 2021

Copy link
Copy Markdown
Contributor

In TLS 1.3, tickets come after the handshake. Therefore the session from
the handshake is not a resumable object that can be installed in a
different connection as with previous versions. For compatibility,
BoringSSL creates dummy SSL_SESSION objects but they will never resume
if used.

However, BoringSSL currently erroneously/confusingly returns true from
SSL_SESSION_is_resumable on these dummy sessions. We're going to change
that, but Envoy tests currently depend on it. This change addresses
that.

Additionally, the return value of this function was never used and thus
a little more cleanup is possible.

Signed-off-by: Adam Langley [email protected]
Risk Level: Low — test-only change
Testing: test-only change
Docs Changes:n/a
Release Notes: n/a
Platform Specific Features: n/a

In TLS 1.3, tickets come after the handshake. Therefore the session from
the handshake is not a resumable object that can be installed in a
different connection as with previous versions. For compatibility,
BoringSSL creates dummy SSL_SESSION objects but they will never resume
if used.

However, BoringSSL currently erroneously/confusingly returns true from
SSL_SESSION_is_resumable on these dummy sessions. We're going to change
that, but Envoy tests currently depend on it. This change addresses
that.

Additionally, the return value of this function was never used and thus
a little more cleanup is possible.

Signed-off-by: Adam Langley <[email protected]>
Risk Level: Low — test-only change
Testing: test-only change
Docs Changes:n/a
Release Notes: n/a
Platform Specific Features: n/a
@agl
agl requested review from asraa, ggreenway and lizan as code owners May 27, 2021 15:56
@agl

agl commented May 27, 2021

Copy link
Copy Markdown
Contributor Author

/assign-from @envoyproxy/maintainers

@repokitteh-read-only

Copy link
Copy Markdown

@envoyproxy/maintainers assignee is @jmarantz

🐱

Caused by: a #16702 (comment) was created by @agl.

see: more, trace.

@ggreenway ggreenway self-assigned this May 27, 2021
ggreenway
ggreenway previously approved these changes May 27, 2021

@ggreenway ggreenway left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

dmitri-d
dmitri-d previously approved these changes May 27, 2021
@mattklein123

Copy link
Copy Markdown
Member

Needs a format fix, thank you.

/wait

The spellchecker doesn't consider it to be a word.

Signed-off-by: Adam Langley <[email protected]>
@agl
agl dismissed stale reviews from dmitri-d and ggreenway via ce23387 May 27, 2021 23:35
@jmarantz

Copy link
Copy Markdown
Contributor

/retest

@repokitteh-read-only

Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #16702 (comment) was created by @jmarantz.

see: more, trace.

@mattklein123
mattklein123 merged commit 7359443 into envoyproxy:main Jun 1, 2021
@agl
agl deleted the tls13resume branch June 1, 2021 17:30
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
In TLS 1.3, tickets come after the handshake. Therefore the session from
the handshake is not a resumable object that can be installed in a
different connection as with previous versions. For compatibility,
BoringSSL creates dummy SSL_SESSION objects but they will never resume
if used.

However, BoringSSL currently erroneously/confusingly returns true from
SSL_SESSION_is_resumable on these dummy sessions. We're going to change
that, but Envoy tests currently depend on it. This change addresses
that.

Additionally, the return value of this function was never used and thus
a little more cleanup is possible.

Signed-off-by: Adam Langley <[email protected]>
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.

5 participants