-
Notifications
You must be signed in to change notification settings - Fork 49
HTTP Request written to keyd.pipe is "not spec compliant" #396
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently when a request to the keyd socket is written the request looks like this:
POST /parameters/algorithm?api-version=2020-09-01 HTTP/1.1
content-length: 256
content-type: application/json
{"keyHandle":"..."}
This is not a valid HTTP 1.1 request, because it is missing the "Host" header.
While this is not a problem for the normal functionality (provisioning, etc) I've been experimenting with giving an additional container access to the keyd via a sidecar and ran into a problem with our proxy that forwards the requests from the unix domain socket to the sidecar, because it rejects the requests due to being "malformed".
Maybe it would be possible to set Host: localhost for the requests?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request