-
Notifications
You must be signed in to change notification settings - Fork 21
/
svidstore.proto
51 lines (37 loc) · 1.26 KB
/
svidstore.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
syntax = "proto3";
package spire.plugin.agent.svidstore.v1;
option go_package = "github.com/spiffe/spire-plugin-sdk/proto/spire/plugin/agent/svidstore/v1;svidstorev1";
service SVIDStore {
// Puts an X509-SVID in a configured secrets store
rpc PutX509SVID(PutX509SVIDRequest) returns (PutX509SVIDResponse);
// Deletes an SVID from the store
rpc DeleteX509SVID(DeleteX509SVIDRequest) returns (DeleteX509SVIDResponse);
}
message PutX509SVIDRequest {
// X509-SVID to be stored
X509SVID svid = 1;
// Relevant information to store on specific platform
repeated string metadata = 2;
// Federated bundles to store
map<string, bytes> federated_bundles = 3;
}
message PutX509SVIDResponse {
}
message DeleteX509SVIDRequest {
// Relevant information to delete on specific platform
repeated string metadata = 1;
}
message DeleteX509SVIDResponse {
}
message X509SVID {
// SPIFFE ID of the SVID.
string spiffeID = 1;
// Certificate and intermediates (ASN.1 DER encoded)
repeated bytes cert_chain = 2;
// Private key (ASN.1 DER encoded)
bytes private_key = 3;
// Bundle certificates (ASN.1 DER encoded)
repeated bytes bundle = 4;
// Expiration timestamp (seconds since Unix epoch).
int64 expires_at = 5;
}