Skip to content

HTTP Request written to keyd.pipe is "not spec compliant" #396

@quality-leftovers

Description

@quality-leftovers

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions