xref: /aosp_15_r20/external/googleapis/grafeas/v1/dsse_attestation.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2021 The Grafeas Authors. All rights reserved.
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//    http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
15*d5c09012SAndroid Build Coastguard Worker
16*d5c09012SAndroid Build Coastguard Workerpackage grafeas.v1;
17*d5c09012SAndroid Build Coastguard Worker
18*d5c09012SAndroid Build Coastguard Workerimport "grafeas/v1/common.proto";
19*d5c09012SAndroid Build Coastguard Workerimport "grafeas/v1/intoto_statement.proto";
20*d5c09012SAndroid Build Coastguard Worker
21*d5c09012SAndroid Build Coastguard Workeroption go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
22*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
23*d5c09012SAndroid Build Coastguard Workeroption java_package = "io.grafeas.v1";
24*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "GRA";
25*d5c09012SAndroid Build Coastguard Worker
26*d5c09012SAndroid Build Coastguard Workermessage DSSEAttestationNote {
27*d5c09012SAndroid Build Coastguard Worker  // This submessage provides human-readable hints about the purpose of the
28*d5c09012SAndroid Build Coastguard Worker  // authority. Because the name of a note acts as its resource reference, it is
29*d5c09012SAndroid Build Coastguard Worker  // important to disambiguate the canonical name of the Note (which might be a
30*d5c09012SAndroid Build Coastguard Worker  // UUID for security purposes) from "readable" names more suitable for debug
31*d5c09012SAndroid Build Coastguard Worker  // output. Note that these hints should not be used to look up authorities in
32*d5c09012SAndroid Build Coastguard Worker  // security sensitive contexts, such as when looking up attestations to
33*d5c09012SAndroid Build Coastguard Worker  // verify.
34*d5c09012SAndroid Build Coastguard Worker  message DSSEHint {
35*d5c09012SAndroid Build Coastguard Worker    // Required. The human readable name of this attestation authority, for
36*d5c09012SAndroid Build Coastguard Worker    // example "cloudbuild-prod".
37*d5c09012SAndroid Build Coastguard Worker    string human_readable_name = 1;
38*d5c09012SAndroid Build Coastguard Worker  }
39*d5c09012SAndroid Build Coastguard Worker  // DSSEHint hints at the purpose of the attestation authority.
40*d5c09012SAndroid Build Coastguard Worker  DSSEHint hint = 1;
41*d5c09012SAndroid Build Coastguard Worker}
42*d5c09012SAndroid Build Coastguard Worker
43*d5c09012SAndroid Build Coastguard Worker// Deprecated. Prefer to use a regular Occurrence, and populate the
44*d5c09012SAndroid Build Coastguard Worker// Envelope at the top level of the Occurrence.
45*d5c09012SAndroid Build Coastguard Workermessage DSSEAttestationOccurrence {
46*d5c09012SAndroid Build Coastguard Worker  // If doing something security critical, make sure to verify the signatures in
47*d5c09012SAndroid Build Coastguard Worker  // this metadata.
48*d5c09012SAndroid Build Coastguard Worker  Envelope envelope = 1;
49*d5c09012SAndroid Build Coastguard Worker  oneof decoded_payload {
50*d5c09012SAndroid Build Coastguard Worker    InTotoStatement statement = 2;
51*d5c09012SAndroid Build Coastguard Worker  }
52*d5c09012SAndroid Build Coastguard Worker}
53