| 1 |
// Copyright 2025 The Sigstore Authors |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
syntax = "proto3"; |
| 16 |
package dev.sigstore.rekor.v2; |
| 17 |
|
| 18 |
import "google/api/field_behavior.proto"; |
| 19 |
import "sigstore_common.proto"; |
| 20 |
import "envelope.proto"; |
| 21 |
|
| 22 |
import "rekor/v2/verifier.proto"; |
| 23 |
|
| 24 |
option go_package = "github.com/sigstore/protobuf-specs/gen/pb-go/rekor/v2"; |
| 25 |
|
| 26 |
option java_package = "dev.sigstore.proto.rekor.v2"; |
| 27 |
option java_multiple_files = true; |
| 28 |
option java_outer_classname = "RekorV2Dsse"; |
| 29 |
option ruby_package = "Sigstore::Rekor::V2"; |
| 30 |
|
| 31 |
// A request to add a DSSE v0.0.2 entry to the log |
| 32 |
message DSSERequestV002 { |
| 33 |
// A DSSE envelope |
| 34 |
io.intoto.Envelope envelope = 1 [(google.api.field_behavior) = REQUIRED]; |
| 35 |
// All necessary verification material to verify all signatures embedded in the envelope |
| 36 |
repeated Verifier verifiers = 2 [(google.api.field_behavior) = REQUIRED]; |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
message DSSELogEntryV002 { |
| 41 |
// The hash of the DSSE payload |
| 42 |
dev.sigstore.common.v1.HashOutput payloadHash = 1 [(google.api.field_behavior) = REQUIRED]; |
| 43 |
// Signatures and their associated verification material used to verify the payload |
| 44 |
repeated Signature signatures = 2 [(google.api.field_behavior) = REQUIRED]; |
| 45 |
} |