Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-353

Include port in "Host" header when constructing KMS requests

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      Background & Motivation

      The AWS, Azure, and GCP requests include the Host header as part of the request, but do not include a port number. There are no reported issues, but this may be a discrepancy from the expectation in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host

      The Host request header specifies the host and port number of the server to which the request is being sent.

      If no port is included, the default port for the service requested is implied (e.g., 443 for an HTTPS URL, and 80 for an HTTP URL).

      Scope

      • Update each of the KMS HTTP requests (AWS, Azure, and GCP) in mongocrypt-kms-ctx.c to include the port as the argument used to supply the "Host" header.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: