-
Notifications
You must be signed in to change notification settings - Fork 39
Add TLS protocol support #383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Zahari Dichev <[email protected]>
this advisory is only two days old, so i suspect it's unrelated to your changes here. |
https://github.com/rustsec/advisory-db/pull/2094/files patched the advisory db, so we can probably re-run ci now for a ✔️ |
|
||
message Distribution { | ||
oneof kind { | ||
Empty empty = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is an empty variant strictly necessary here? We should be able to use presence of the other variants to indicate empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been the pattern followed through the rest of the API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/linkerd/linkerd2-proxy-api/blob/main/proto/outbound.proto#L139 i was curious myself, so here's an existing example of that pattern, just to demonstrate. there are a few more in that file if you grep for empty = 1
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so that this state is explicit and can't be ambiguous i.e. if a field is unset.
Cargo.toml
Outdated
@@ -16,6 +16,7 @@ default = [] | |||
arbitrary = ["quickcheck"] | |||
destination = ["http-types", "net", "prost-types", "tonic/codegen"] | |||
grpc-route = ["http-route"] | |||
tls-route = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: sort
Signed-off-by: Zahari Dichev <[email protected]>
#383 introduced support for route and backend level errors. This commit changes the structure of these types in order to make the route error optional (protobuf enums are non-optional values unless an experimental feature is specified). Signed-off-by: Zahari Dichev <[email protected]>
This change adds support for TLS in the
ProxyProtocol
enum. For the time being we can only use SNIsto do do TLS routing.
Signed-off-by: Zahari Dichev [email protected]