forked from sigstore/fulcio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fulcio_legacy.proto
127 lines (117 loc) · 3.89 KB
/
fulcio_legacy.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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
//
// Copyright 2022 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.fulcio.v1beta;
import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/api/httpbody.proto";
import "google/protobuf/empty.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
option go_package = "github.com/sigstore/fulcio/pkg/generated/protobuf/legacy";
option java_package = "dev.sigstore.fulcio.v1beta";
option java_multiple_files = true;
option java_outer_classname = "FulcioProto";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Fulcio Legacy";
version: "1.0.0";
contact: {
name: "sigstore Fulcio project";
url: "https://github.com/sigstore/fulcio";
email: "sigstore-dev@googlegroups.com";
};
license: {
name: "Apache License 2.0";
url: "https://github.com/sigstore/fulcio/blob/main/LICENSE";
};
};
host: "fulcio.sigstore.dev";
external_docs: {
url: "https://github.com/sigstore/fulcio";
description: "More about Fulcio";
};
schemes: HTTP;
consumes: "application/json";
produces: "application/json";
};
/*
* This implements the pre-GA HTTP-based Fulcio API.
* This interface is deprecated and will only receive backports of security-related features - clients should prefer the GA GRPC interface!
*/
service CA {
/*
* Returns an X509 certificate created by the Fulcio certificate authority for the given request parameters
*/
rpc CreateSigningCertificate(CreateSigningCertificateRequest) returns (google.api.HttpBody){
option deprecated = true;
option (google.api.http) = {
post: "/api/v1/signingCert"
body: "*"
};
}
/*
* Returns the public key that can be used to validate the signed tree head
*/
rpc GetRootCertificate(google.protobuf.Empty) returns (google.api.HttpBody){
option deprecated = true;
option (google.api.http) = {
get: "/api/v1/rootCert"
};
}
}
message CreateSigningCertificateRequest {
/*
* The public key to be stored in the requested certificate
*/
PublicKey publicKey = 1 [
deprecated=true,
(google.api.field_behavior) = OPTIONAL
];
/*
* Proof that the client possesses the private key
*/
bytes signedEmailAddress = 2 [
deprecated=true,
(google.api.field_behavior) = OPTIONAL
];
/*
* Optional: PKCS#10 PEM-encoded certificate signing request
* Contains the public key to be stored in the requested
* certificate. All other CSR fields are ignored. Since
* the CSR is self-signed, it also acts as a proof of
* possession of the private key.
*
* In particular, the CSR's subject name is not verified, or tested for
* compatibility with its specified X.509 name type (e.g. email address).
*/
bytes certificateSigningRequest = 3 [
deprecated=true,
(google.api.field_behavior) = OPTIONAL
];
}
message PublicKey {
/*
* The cryptographic algorithm to use with the key material
*/
string algorithm = 1 [ deprecated=true ];
/*
* PKIX, ASN.1 DER or PEM-encoded public key. PEM is typically
* of type PUBLIC KEY.
*/
bytes content = 2 [
deprecated=true,
(google.api.field_behavior) = REQUIRED
];
}