-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjvs_request.proto
48 lines (39 loc) · 1.63 KB
/
jvs_request.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright 2022 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.
syntax = "proto3";
import "google/protobuf/duration.proto";
package abcxyz.jvs;
option go_package = "github.com/abcxyz/jvs/apis/v0";
// CreateJustificationRequest provides a justification to the server in order to
// receive a token.
message CreateJustificationRequest {
repeated Justification justifications = 1;
google.protobuf.Duration ttl = 2;
// Optional audiences for the justifications.
repeated string audiences = 3;
// Subject will be the corresponding subject in the JWT. Consumers of these
// JWTs must verify that the caller matches the embedded principal. If
// unspecified, the JVS will attempt to extract this from the caller's
// identity.
string subject = 4;
}
// Justification is intended to be used to provide reasons that data access is
// required.
message Justification {
string category = 1; // In MVP, the only supported category is "explanation".
string value = 2;
// Additional info the plugin may want to encapsulate in the Justification.
// It's not intended for user input.
map<string, string> annotation = 3;
}