Skip to content

Commit

Permalink
update s2a proto tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Jul 3, 2024
1 parent ec30f58 commit a3909a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions grpc/gcp/s2a/s2a.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ message AlpnPolicy {
}

message AuthenticationMechanism {
reserved 1;

// Applications may specify an identity associated to an authentication
// mechanism. Otherwise, S2A assumes that the authentication mechanism is
// associated with the default identity. If the default identity cannot be
// determined, the request is rejected.
Identity identity = 1;
Identity identity = 3;

oneof mechanism_oneof {
// A token that the application uses to authenticate itself to S2A.
Expand Down Expand Up @@ -295,6 +297,8 @@ message ValidatePeerCertificateChainResp {
}

message SessionReq {
reserved 1;

// The identity corresponding to the TLS configurations that MUST be used for
// the TLS handshake.
//
Expand All @@ -303,7 +307,7 @@ message SessionReq {
// identity is not populated, S2A will try to deduce the managed identity to
// use from the SNI extension. If that also fails, S2A uses the default
// identity (if one exists).
Identity local_identity = 1;
Identity local_identity = 7;

// The authentication mechanisms that the application wishes to use to
// authenticate to S2A, ordered by preference. S2A will always use the first
Expand Down
4 changes: 3 additions & 1 deletion grpc/gcp/s2a/s2a_context.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ option java_outer_classname = "S2AContextProto";
option java_package = "io.grpc.s2a.handshaker";

message S2AContext {
reserved 5, 7, 8

// The SPIFFE ID from the peer leaf certificate, if present.
//
// This field is only populated if the leaf certificate is a valid SPIFFE
Expand Down Expand Up @@ -54,7 +56,7 @@ message S2AContext {
repeated string peer_certificate_chain_fingerprints = 4;

// The local identity used during session setup.
Identity local_identity = 5;
Identity local_identity = 9;

// The SHA256 hash of the DER-encoding of the local leaf certificate used in
// the handshake.
Expand Down

0 comments on commit a3909a9

Please sign in to comment.