public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Sivaraman Nainar" <sivaramann@ami.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"rafaelrodrigues.machado@gmail.com"
	<rafaelrodrigues.machado@gmail.com>
Subject: Re: [edk2-devel] How to restrict HTTPS boot to a single address
Date: Sun, 28 Aug 2022 11:25:44 +0000	[thread overview]
Message-ID: <BN0PR10MB498137AB121C5F0AEE9416CEC2779@BN0PR10MB4981.namprd10.prod.outlook.com> (raw)
In-Reply-To: <CACgnt797+bC0LDivGp1N-TAd6tZTynvqzGDtyOe=W6jOxpXTcQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

Hello Rafael.

HttpBootCheckUriScheme() in HttpBootDxe\HttpBootSupport.c should be the right place to filter the URI.

Please give a try.

-Siva
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Rafael Machado via groups.io
Sent: Friday, August 26, 2022 7:46 PM
To: devel@edk2.groups.io
Subject: [EXTERNAL] [edk2-devel] How to restrict HTTPS boot to a single address


**CAUTION: The e-mail below is from an external source. Please exercise caution before opening attachments, clicking links, or following guidance.**
Hello everyone.

Quick question for the ones that understand better the HTTPBoot architecture at the edk2 structure.

Suppose I have to restrict HTTPS boot to accept only the download of images from a specific url.
For example, instead of allowing the download of images from any valid CA certificate address, I would like to restrict HTTPSBoot to allow only downloads from some specific domain I have.

Probably filtering some information, CN or something like that, from the url certificate.

What is the best way to do that?
In which driver/library should this logic be added?

Thanks
Rafael

-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

[-- Attachment #2: Type: text/html, Size: 5077 bytes --]

  parent reply	other threads:[~2022-08-28 11:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26 14:15 How to restrict HTTPS boot to a single address Rafael Machado
2022-08-26 16:02 ` [edk2-devel] " Andrew Fish
2022-08-28 11:25 ` Sivaraman Nainar [this message]
2022-08-29 13:21   ` Rafael Machado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BN0PR10MB498137AB121C5F0AEE9416CEC2779@BN0PR10MB4981.namprd10.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox