Skip to content

refactor(proxy/http): create linkerd-http-upgrade crate#3386

Closed
cratelyn wants to merge 6 commits intokate/yoink-http-body-middlewarefrom
kate/yoink-http-upgrade
Closed

refactor(proxy/http): create linkerd-http-upgrade crate#3386
cratelyn wants to merge 6 commits intokate/yoink-http-body-middlewarefrom
kate/yoink-http-upgrade

Conversation

@cratelyn
Copy link
Member

@cratelyn cratelyn commented Nov 22, 2024

this moves the inter-related upgrade and glue submodules out of the
linkerd-proxy-http library and into a new standalone crate.

this pulls one last Body middleware out of the core linkerd-proxy-http library.

NB: this is based on #3382.

in this case we already had a crate defining the classify traits, but
the http body and other assorted middleware were defined in
`linkerd-proxy-http`.

this commit moves those types to the `linkerd-http-classify` crate,
which astute readers may notice, is a concrete step towards simplifying
the `linkerd-proxy-http` crate's upgrade process.

one small detail worth calling out: we implement `http_body::Body`
directly, to avoid taking on a `hyper` dependency. otherwise, nothing
has changed in the `channel`, `gate`, and `insert` middleware.

Signed-off-by: katelyn martin <[email protected]>
this moves the `Retain` middleware from `linkerd-proxy-http` into a new
`linkerd-http-retain` crate.

as previously, reëxports are added to make this a backwards compatible
change.

this moves another http body middleware out of the proxy's core http
crate. great news.

Signed-off-by: katelyn martin <[email protected]>
)

this commit outlines the stream timeout middleware, pulling it out of
`linkerd-proxy-http` and into a standalone crate.

again, reëxports are added to make this a backwards compatible change.

Signed-off-by: katelyn martin <[email protected]>
…3382)

NB: based on #3379 and #3380.

this pull the `override_authority` submodule out of
`linkerd-http-proxy` and into a standalone crate.

Signed-off-by: katelyn martin <[email protected]>
this is only used in once place, so as a brief chore before we move the
upgrade submodule out into its own crate, we pull `is_bad_request()`
next to its call site.

Signed-off-by: katelyn martin <[email protected]>
this moves the inter-related `upgrade` and `glue` submodules out of the
`linkerd-proxy-http` library and into a new standalone crate.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn marked this pull request as ready for review November 22, 2024 18:43
@cratelyn cratelyn requested a review from a team as a code owner November 22, 2024 18:43
@cratelyn cratelyn force-pushed the kate/yoink-http-body-middleware branch from 7f564f9 to cb9f511 Compare November 25, 2024 16:46
@cratelyn
Copy link
Member Author

i've cherry-picked these commits into #3382, i'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant