[MONGOCRYPT-353] Include port in "Host" header when constructing KMS requests Created: 28/Oct/21  Updated: 30/Mar/22

Status: Backlog
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.

Generated at Thu Feb 08 09:08:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.