-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathrekor_service.proto
More file actions
79 lines (67 loc) · 2.69 KB
/
rekor_service.proto
File metadata and controls
79 lines (67 loc) · 2.69 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright 2025 The Sigstore Authors.
//
// 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";
package dev.sigstore.rekor.v2;
import "google/api/annotations.proto";
import "google/api/httpbody.proto";
import "google/protobuf/empty.proto";
import "sigstore_rekor.proto";
import "rekor/v2/entry.proto";
option go_package = "github.com/sigstore/rekor-tiles/pkg/generated/protobuf";
option java_package = "dev.sigstore.proto.rekor.v2";
option java_multiple_files = true;
option java_outer_classname = "RekorV2Service";
option ruby_package = "Sigstore::Rekor::V2";
// A service for sigstore clients to connect to to create log entries
// and for log monitors and witnesses to audit/inspect the log
service Rekor {
// Create an entry in the log
rpc CreateEntry (CreateEntryRequest) returns (dev.sigstore.rekor.v1.TransparencyLogEntry) {
option (google.api.http) = {
post: "/api/v2/log/entries"
body: "*"
};
}
// Get a tile from the log
rpc GetTile (TileRequest) returns (google.api.HttpBody) {
option (google.api.http) = {
get: "/api/v2/tile/{L}/{N=**}"
};
}
// Get an entry bundle from the log
rpc GetEntryBundle (EntryBundleRequest) returns (google.api.HttpBody) {
option (google.api.http) = {
get: "/api/v2/tile/entries/{N=**}"
};
}
// Get a checkpoint from the log
rpc GetCheckpoint (google.protobuf.Empty) returns (google.api.HttpBody) {
option (google.api.http) = {
get: "/api/v2/checkpoint"
};
}
}
// Request for a full or partial tile (see https://github.com/C2SP/C2SP/blob/main/tlog-tiles.md#merkle-tree)
message TileRequest {
uint32 L = 1;
// N must be either an index encoded as zero-padded 3-digit path elements, e.g. "x123/x456/789",
// and may end with ".p/<W>", where "<W>" is a uint8
string N = 2;
}
// Request for a full or partial entry bundle (see https://github.com/C2SP/C2SP/blob/main/tlog-tiles.md#log-entries)
message EntryBundleRequest {
// N must be either an index encoded as zero-padded 3-digit path elements, e.g. "x123/x456/789",
// and may end with ".p/<W>", where "<W>" is a uint8
string N = 1;
}