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

TLS Early Data on the server side #9378

Closed
arcusfelis opened this issue Feb 3, 2025 · 3 comments
Closed

TLS Early Data on the server side #9378

arcusfelis opened this issue Feb 3, 2025 · 3 comments
Assignees
Labels
enhancement team:PS Assigned to OTP team PS

Comments

@arcusfelis
Copy link

Hi, are there any plans on implementing early data on the server side?

There is an example of usage, and there is even an option on how to enable early_data on the server side:
https://www.erlang.org/doc/apps/ssl/using_ssl.html

But I don't see the way of receiving that data on the server side.
Digging into the code, it looks like it is not implemented yet.

There was a placeholder in Erlang 26, but I haven't found it in the newer versions.

Image
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Feb 4, 2025
@IngelaAndin IngelaAndin self-assigned this Feb 4, 2025
@IngelaAndin
Copy link
Contributor

It was implemented here aece091

You should be able to receive the early data the same way as any application data. The server user process should not have to care if the data is early or not. If the server is configured to accept early data and
session tickets are use to so that the client can send early data it should work out of the box.

@arcusfelis
Copy link
Author

@IngelaAndin oh, interesting, will try.

@arcusfelis
Copy link
Author

@IngelaAndin Is there a way to check if the data came inside 0-RTT?

In XMPP, there should be a different behaviour if it comes inside early data, comparing to the regular encrypted data (i.e. extra checks to deny replay attacks).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

2 participants