Skip to content

Commit eff6f41

Browse files
committed
destination: add UriLikeIdentity and server_name
Signed-off-by: Zahari Dichev <zaharidichev@gmail.com>
1 parent e759d1e commit eff6f41

17 files changed

+468
-258
lines changed

go/destination/destination.pb.go

Lines changed: 403 additions & 234 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/destination/destination_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/grpc_route/grpc_route.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/http_route/http_route.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/http_types/http_types.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/identity/identity.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/identity/identity_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/inbound/inbound.pb.go

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/inbound/inbound_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/meta/meta.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/net/net.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/outbound/outbound.pb.go

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/outbound/outbound_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/tap/tap.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/tap/tap_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/destination.proto

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,16 @@ message WeightedAddr {
103103
AuthorityOverride authority_override = 7;
104104
}
105105

106-
// Which strategy should be used for verifying TLS.
107106
message TlsIdentity {
108107
reserved 2;
109108
reserved "k8s_pod_identity";
110109

111-
oneof strategy { DnsLikeIdentity dns_like_identity = 1; }
110+
oneof strategy {
111+
DnsLikeIdentity dns_like_identity = 1;
112+
UriLikeIdentity uri_like_identity = 3;
113+
}
114+
115+
ServerName server_name = 4;
112116

113117
// Verify the certificate based on the Kubernetes pod identity.
114118
message DnsLikeIdentity {
@@ -118,6 +122,22 @@ message TlsIdentity {
118122
// {name}.{namespace}.{type}.identity.{control-namespace}.{trust-domain...}
119123
string name = 1;
120124
}
125+
126+
// Verify the certificate based on an URI-like identity.
127+
message UriLikeIdentity {
128+
// A URI name that encodes workload identity.
129+
//
130+
// For example:
131+
// spiffe://trust-domain/workload-dentifier
132+
string uri = 1;
133+
}
134+
135+
// The server name of the endpoint. This is the value that needs to be included
136+
// by clients in the ClientHello SNI extension of the TLS handshake when they
137+
// initiate TLS connections to servers.
138+
message ServerName {
139+
string name = 1;
140+
}
121141
}
122142

123143
message AuthorityOverride { string authority_override = 1; }

src/gen/io.linkerd.proxy.destination.rs

Lines changed: 25 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)