Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions willow/proto/willow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ cc_proto_library(
deps = [":committee_selector_proto"],
)

proto_library(
name = "auth_token_proto",
srcs = ["auth_token.proto"],
deps = [
"@protobuf//:timestamp_proto",

],
)

cc_proto_library(
name = "auth_token_cc_proto",
deps = [":auth_token_proto"],
)

proto_library(
name = "aggregation_config_proto",
srcs = ["aggregation_config.proto"],
Expand Down
33 changes: 33 additions & 0 deletions willow/proto/willow/auth_token.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

edition = "2023";

package secure_aggregation.willow;

import "google/protobuf/timestamp.proto";

option features.field_presence = IMPLICIT;

// The body of the token authorizing requests to the Willow multidecryptor.
// This message is serialized and then authenticated with a MAC.
message AuthTokenPayload {
// The time at which this token becomes invalid.
google.protobuf.Timestamp expiration = 1;

// Add any other relevant data to bind the token to a specific context,
// for example, a user ID, session ID, or specific resource.
// string user_id = 2 ;
// string session_id = 3 ;
}
2 changes: 2 additions & 0 deletions willow/proto/willow/committee_selector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ message VolunteerForCommitteeRequest {
// The name of the population that the client belongs to.
string population_name = 3 ;

// Authorization token for this request.
string auth_token = 4 ;
}

// A record of a client who volunteered for a committee.
Expand Down