Skip to content

[Feature]: Validate TLS 1.3 end-to-end through the UEFI HTTPS stack #2032

Open

Description

@Flickdm

Feature Overview

Add end-to-end TLS 1.3 validation through the UEFI HTTP/HTTPS implementation
(EFI_HTTP_PROTOCOL / HttpDxe -> EFI_TLS_PROTOCOL / TlsDxe -> TlsLib).
Confirm that an HTTPS request can negotiate TLS 1.3 and transfer a complete
response, including when TLS control records arrive after the initial handshake.

The OpenSSL provider work in microsoft/mu_crypto_release#302 enables TLS 1.3
cipher suites and coordinates protocol availability with cipher-family
selection. Provider capability and cipher enumeration alone do not establish
that the complete HTTPS stack works correctly with TLS 1.3.

This is initially a feature/validation request. The observations below are
source-audit hypotheses, not reproduced failures or a claim that every TLS 1.3
HTTPS connection fails. Confirmed defects can be tracked separately if needed.

Solution Overview

Exercise the production HTTPS path against a controlled TLS server, using the
intended TLS 1.3-capable crypto provider/binary rather than host OpenSSL alone.
Record the negotiated version and cipher suite, HTTP status, and complete
response-body integrity.

Proposed acceptance criteria:

  • Prove TLS 1.3 negotiation with a TLS-1.3-only endpoint, then complete an HTTPS
    request and verify the response body.
  • Validate the available TLS 1.3 AES-GCM suites, 0x1301
    (TLS_AES_128_GCM_SHA256) and 0x1302 (TLS_AES_256_GCM_SHA384).
  • Exercise NewSessionTicket and KeyUpdate records before HTTP headers and
    between response-body records. Control-only records must not surface as
    invalid or empty HTTP body input; required TLS output must be transmitted.
  • Exercise encrypted close_notify, fatal alerts, and premature closure.
    Distinguish normal closure, incomplete HTTP responses, retryable TLS reads,
    and fatal errors.
  • Cover a fragmented handshake/response and a response spanning multiple TLS
    records.
  • Preserve TLS 1.2 interoperability and explicit cipher/version policy.
    Include the DFCI refresh-server suite set: 0xC030, 0xC02F, 0xC028,
    and 0xC027.
  • Document the tested platform, provider version, firmware revisions, server
    configuration, and results; fix any confirmed stack issues and add focused
    regression coverage.

Alternatives Considered

  • Cipher enumeration or TlsLib-only tests: useful capability checks, but
    they do not exercise HttpDxe's handling of decrypted records.
  • Keep HTTPS restricted to TLS 1.2: a possible temporary platform policy,
    but it does not validate TLS 1.3 support.
  • Assume OpenSSL support is sufficient: OpenSSL handles the TLS protocol,
    but its callers still need to handle retry, closure, errors, and control
    traffic correctly.

Urgency

Medium

Are you going to implement the feature request?

I will implement the feature

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

  1. Negotiation appears possible without an HttpDxe version change.
    TlsDxe creates a TLS context
    using TLS 1.0 as the version argument. The OpenSSL-backed TlsCtxNew
    interprets that argument as a minimum, not a maximum. HTTPS applies the
    optional HttpTlsCipherList variable. With the updated provider, a
    TLS-1.2-only cipher list intentionally prevents TLS 1.3; policy must allow
    TLS 1.3 suites for TLS 1.3 negotiation to be eligible.

  2. The existing record-header version checks are not themselves a TLS 1.3
    blocker.
    TLS 1.3 encrypted records retain legacy record version 0x0303.
    TlsReceiveOnePdu
    already accepts this version and outer application_data records.
    The negotiated version and record-header version must not be conflated.

  3. Control-only records may break an HTTP body read.
    TlsDecryptPacket
    treats a nonpositive TlsRead result as zero plaintext and returns success.
    TLS 1.3 post-handshake messages can arrive inside outer application_data
    records without yielding application bytes. HttpsReceive passes the empty
    result upward; the HTTPS body-receive path then calls
    HttpParseMessageBody,
    which rejects a zero-length body. This needs reproduction with a control
    record arriving during body reception, not just before HTTP headers.

  4. Encrypted alerts need explicit validation. TLS 1.3 alerts also use
    outer application_data framing, so they enter the decrypt path rather than
    the outer-alert branch in HttpsReceive. The current TlsRead wrapper
    returns the raw SSL_read result, and TlsDecryptPacket does not distinguish
    retryable reads, clean shutdown, and fatal errors. Validate error propagation
    and TLS session state rather than treating every nonpositive result as an
    empty successful read.

Relevant API contract:
OpenSSL SSL_read requires
SSL_get_error to classify nonpositive results and notes that reads can require
outbound protocol traffic.

Maintainer feedback requested on the appropriate integration-test location and
whether confirmed HTTP/TLS driver defects should be split into separate issues.

Activity

  1. added
    state:needs-triage
    type:feature-request
    on Nov 17, 2026
  2. added
    urgency:medium
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

state:needs-triagetype:feature-requesturgency:medium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions