Skip to content

Commit

Permalink
Add bazel targets for s2a proto files (#156)
Browse files Browse the repository at this point in the history
Update the bazel build to add targets for the s2a proto files. Fix
syntax error in s2a_context.proto.

Fixes #155.
  • Loading branch information
pkwarren authored Jul 8, 2024
1 parent 62cf1cd commit 720fb1a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,34 @@ proto_library(
"@com_google_protobuf//:wrappers_proto",
],
)

proto_library(
name = "s2a_common_proto",
srcs = [
"grpc/gcp/s2a/common.proto",
],
visibility = ["//visibility:public"],
)

proto_library(
name = "s2a_context_proto",
srcs = [
"grpc/gcp/s2a/s2a_context.proto",
],
visibility = ["//visibility:public"],
deps = [
":s2a_common_proto",
],
)

proto_library(
name = "s2a_proto",
srcs = [
"grpc/gcp/s2a/s2a.proto",
],
visibility = ["//visibility:public"],
deps = [
":s2a_common_proto",
":s2a_context_proto",
],
)
2 changes: 1 addition & 1 deletion grpc/gcp/s2a/s2a_context.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ option java_outer_classname = "S2AContextProto";
option java_package = "io.grpc.s2a.handshaker";

message S2AContext {
reserved 5, 7, 8
reserved 5, 7, 8;

// The SPIFFE ID from the peer leaf certificate, if present.
//
Expand Down

0 comments on commit 720fb1a

Please sign in to comment.