Repository navigation
Description
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) and0x1302(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,
and0xC027. - 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?
-
Negotiation appears possible without an HttpDxe version change.
TlsDxe creates a TLS context
using TLS 1.0 as the version argument. The OpenSSL-backedTlsCtxNew
interprets that argument as a minimum, not a maximum. HTTPS applies the
optionalHttpTlsCipherListvariable. 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. -
The existing record-header version checks are not themselves a TLS 1.3
blocker. TLS 1.3 encrypted records retain legacy record version0x0303.
TlsReceiveOnePdu
already accepts this version and outerapplication_datarecords.
The negotiated version and record-header version must not be conflated. -
Control-only records may break an HTTP body read.
TlsDecryptPacket
treats a nonpositiveTlsReadresult as zero plaintext and returns success.
TLS 1.3 post-handshake messages can arrive inside outerapplication_data
records without yielding application bytes.HttpsReceivepasses 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. -
Encrypted alerts need explicit validation. TLS 1.3 alerts also use
outerapplication_dataframing, so they enter the decrypt path rather than
the outer-alert branch inHttpsReceive. The currentTlsReadwrapper
returns the rawSSL_readresult, andTlsDecryptPacketdoes 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