-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add support for HTTP Boot through Proxy Server #10777
Open
SaloniKasbekar
wants to merge
10
commits into
tianocore:master
Choose a base branch
from
SaloniKasbekar:B3951_Http_Proxy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+818
−214
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Introduce EFI_HTTP_CONNECT_REQUEST_DATA structure to handle HTTP CONNECT requests Signed-off-by: Saloni Kasbekar <[email protected]>
1. Store information in HttpInstance. a) Proxy URL from last HTTP CONNECT request (ProxyUrl) and its length (ProxyUrlLen). b) State of connection to proxy server (ProxyConnected) - TRUE after HTTP CONNECT success. c) Host name extracted from endpoint URL (EndPointHostName). 2. Modified EfiHttpRequest() flow to handle HTTP CONNECT request. a) Treating request's URL as "endpoint URL". In case of HTTP CONNECT request, directing it to Proxy URL with Host set to "endpoint URL". 3. Added PrintLib instance to cover AsciiSPrint() call. Signed-off-by: Saloni Kasbekar <[email protected]>
1. In EfiHttpRequest(): a) Decision to use HTTPS in HTTP CONNECT is based on Proxy URL. b) Support PUT/POST with no headers when connected to proxy. 2. In HttpConnectTcp4/6(): a) Add new argument to provide new TLS session establishment indication (TlsConfigure). a) Create HTTP connection only when not connected to proxy. b) Do not create new HTTP connection when client is connected to proxy. 3. In HttpInitSession(), pass TlsConfigure to HttpConnectTcp4 calls. 4. In TlsConfigureSession(), when connected to proxy, use recorded endpoint's host name for TLS VerifyHost. Signed-off-by: Saloni Kasbekar <[email protected]>
Add Proxy URI field to HTTP Boot HII Signed-off-by: Saloni Kasbekar <[email protected]>
Build boot option with HII provided ProxyUri by utilizing URI validation path in HII callback for ProxyUri. Signed-off-by: Saloni Kasbekar <[email protected]>
Update library to handle HTTP Boot device paths with Proxy URI Signed-off-by: Saloni Kasbekar <[email protected]>
Update HTTP_BOOT_PRIVATE_DATA structure to include ProxyUri Signed-off-by: Saloni Kasbekar <[email protected]>
Update device path parser to detect device path with Proxy URI Signed-off-by: Saloni Kasbekar <[email protected]>
Update HTTP Boot Start/Stop to handle ProxyUri Signed-off-by: Saloni Kasbekar <[email protected]>
- Add HTTP CONNECT flow to connect to Proxy Server - Provide Proxy URL to HTTP GET/HEAD Requests Signed-off-by: Saloni Kasbekar <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds new feature to support HTTP Boot through Proxy Server. Adds HTTP CONNECT flow to connect through Proxy Server to then use HTTP GET/HEAD to retrieve Endpoint Server boot file.
REF - #10239
Breaking change?
Impacts security?
Includes tests?
How This Was Tested
Verified as part of Edk2-staging branch. Also tested on CI.
Integration Instructions
N/A