Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update stateful resumption doc #4818

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jouho
Copy link
Contributor

@jouho jouho commented Oct 3, 2024

Resolved issues:

When attempting to perform session resumption using session caching, the TLS connection must be closed gracefully. If not, the session cache is deleted from the server, leading to a failed resumption and triggering a full handshake instead. We should document this behavior and update the usage guide.

Description of changes:

Updated usage guide and documented stateful resumption behavior.

Call-outs:

Stateless session resumption behaves differently as it is able to resume a session without graceful TLS shutdown. This shouldn't have security implications as stated in RFC5077:

In the analysis within this paper, failure to invalidate
sessions does not pose a security risk. This is because the TLS
handshake uses a non-reversible function to derive keys for a session
so information about one session does not provide an advantage to
attack the master secret or a different session.

Testing:

No functional changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Oct 3, 2024
@jouho jouho marked this pull request as ready for review October 3, 2024 21:01
Comment on lines +28 to +29
Applications must perform a graceful TSL shutdown in order to be able to resume a session with session caching. If the connection results in abrupt termination (i.e, no `close_notify` alert is received by server), the session cache will be deleted and therefore will fail to resume. For more information on how to close connections, see [Closing the Connection](./ch07-io.md#closing-the-connection)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's worth mentioning that the cached session will be deleted on any error. Customers may not expect that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants