Skip to content

Commit ee12d82

Browse files
Added a mime type to the trusted root, as that's expected to be serialized (#54)
to a file. Signed-off-by: Fredrik Skogman <kommendorkapten@github.com> Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
1 parent a09e324 commit ee12d82

File tree

3 files changed

+60
-44
lines changed

3 files changed

+60
-44
lines changed

gen/pb-go/trustroot/v1/sigstore_trustroot.pb.go

Lines changed: 47 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/pb-python/sigstore_protobuf_specs/dev/sigstore/trustroot/v1/__init__.py

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/sigstore_trustroot.proto

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ message CertificateAuthority {
6868
// a minimal set by the policy to gain better control over what signatures
6969
// that are allowed.
7070
message TrustedRoot {
71+
// MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1
72+
string media_type = 1;
7173
// A set of trusted Rekor servers.
72-
repeated TransparencyLogInstance tlogs = 1;
74+
repeated TransparencyLogInstance tlogs = 2;
7375
// A set of trusted certificate authorites (e.g Fulcio), and any
7476
// intermediate certificates they provide.
7577
// If a CA is issuing multiple intermediate certificate, each
@@ -78,9 +80,9 @@ message TrustedRoot {
7880
// intermediate and/or leaf certificates.
7981
// The certificates are intended to be used for verifying artifact
8082
// signatures.
81-
repeated CertificateAuthority certificate_authorities = 2;
83+
repeated CertificateAuthority certificate_authorities = 3;
8284
// A set of trusted certificate transparency logs.
83-
repeated TransparencyLogInstance ctlogs = 3;
85+
repeated TransparencyLogInstance ctlogs = 4;
8486
// A set of trusted timestamping authorities.
85-
repeated CertificateAuthority timestamp_authorities = 4;
87+
repeated CertificateAuthority timestamp_authorities = 5;
8688
}

0 commit comments

Comments
 (0)