sigstore_protobuf_specs 0.0.1.pre.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +202 -0
- data/README.md +36 -0
- data/lib/envelope_pb.rb +25 -0
- data/lib/sigstore_bundle_pb.rb +45 -0
- data/lib/sigstore_common_pb.rb +107 -0
- data/lib/sigstore_protobuf_specs.rb +17 -0
- data/lib/sigstore_rekor_pb.rb +51 -0
- data/lib/sigstore_trustroot_pb.rb +42 -0
- data/lib/sigstore_verification_pb.rb +77 -0
- data/lib/version.rb +21 -0
- metadata +90 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a402639cf9f7de624206b2cea4908e4913d70db0dad54863b0ccce4471c89143
|
4
|
+
data.tar.gz: 901e963198dae3969bf0f71661cbb2b70e79033de5ac0767f33ecda6caa177be
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 507152885625b5d20af4c8d067cbf1f4e055386029cc2aa62c7ff6ad2382d4dbad2890ef90dc92e0b2704bb5ffd8051e6f84b6753cea2469dac4ed80b5074ea3
|
7
|
+
data.tar.gz: d4282d3b57b43cb599c9cc26a6f7a6adba244b5ab91ac2fc79fe43095a4873dd4f0112336c1969dff045572607ff667825ffcad62757f881121829a84da40fe1
|
data/LICENSE
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Sigstore::Protobuf::Specs
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sigstore/protobuf/specs`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'sigstore-protobuf-specs'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install sigstore-protobuf-specs
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sigstore-protobuf-specs.
|
36
|
+
|
data/lib/envelope_pb.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: envelope.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("envelope.proto", :syntax => :proto3) do
|
8
|
+
add_message "io.intoto.Envelope" do
|
9
|
+
optional :payload, :bytes, 1
|
10
|
+
optional :payloadType, :string, 2
|
11
|
+
repeated :signatures, :message, 3, "io.intoto.Signature"
|
12
|
+
end
|
13
|
+
add_message "io.intoto.Signature" do
|
14
|
+
optional :sig, :bytes, 1
|
15
|
+
optional :keyid, :string, 2
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Io
|
21
|
+
module Intoto
|
22
|
+
Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.intoto.Envelope").msgclass
|
23
|
+
Signature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.intoto.Signature").msgclass
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: sigstore_bundle.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'envelope_pb'
|
8
|
+
require 'sigstore_common_pb'
|
9
|
+
require 'sigstore_rekor_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("sigstore_bundle.proto", :syntax => :proto3) do
|
13
|
+
add_message "dev.sigstore.bundle.v1.TimestampVerificationData" do
|
14
|
+
repeated :rfc3161_timestamps, :message, 1, "dev.sigstore.common.v1.RFC3161SignedTimestamp"
|
15
|
+
end
|
16
|
+
add_message "dev.sigstore.bundle.v1.VerificationMaterial" do
|
17
|
+
repeated :tlog_entries, :message, 3, "dev.sigstore.rekor.v1.TransparencyLogEntry"
|
18
|
+
optional :timestamp_verification_data, :message, 4, "dev.sigstore.bundle.v1.TimestampVerificationData"
|
19
|
+
oneof :content do
|
20
|
+
optional :public_key, :message, 1, "dev.sigstore.common.v1.PublicKeyIdentifier"
|
21
|
+
optional :x509_certificate_chain, :message, 2, "dev.sigstore.common.v1.X509CertificateChain"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
add_message "dev.sigstore.bundle.v1.Bundle" do
|
25
|
+
optional :media_type, :string, 1
|
26
|
+
optional :verification_material, :message, 2, "dev.sigstore.bundle.v1.VerificationMaterial"
|
27
|
+
oneof :content do
|
28
|
+
optional :message_signature, :message, 3, "dev.sigstore.common.v1.MessageSignature"
|
29
|
+
optional :dsse_envelope, :message, 4, "io.intoto.Envelope"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
module Dev
|
36
|
+
module Sigstore
|
37
|
+
module Bundle
|
38
|
+
module V1
|
39
|
+
TimestampVerificationData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.bundle.v1.TimestampVerificationData").msgclass
|
40
|
+
VerificationMaterial = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.bundle.v1.VerificationMaterial").msgclass
|
41
|
+
Bundle = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.bundle.v1.Bundle").msgclass
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: sigstore_common.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("sigstore_common.proto", :syntax => :proto3) do
|
11
|
+
add_message "dev.sigstore.common.v1.HashOutput" do
|
12
|
+
optional :algorithm, :enum, 1, "dev.sigstore.common.v1.HashAlgorithm"
|
13
|
+
optional :digest, :bytes, 2
|
14
|
+
end
|
15
|
+
add_message "dev.sigstore.common.v1.MessageSignature" do
|
16
|
+
optional :message_digest, :message, 1, "dev.sigstore.common.v1.HashOutput"
|
17
|
+
optional :signature, :bytes, 2
|
18
|
+
end
|
19
|
+
add_message "dev.sigstore.common.v1.LogId" do
|
20
|
+
optional :key_id, :bytes, 1
|
21
|
+
end
|
22
|
+
add_message "dev.sigstore.common.v1.RFC3161SignedTimestamp" do
|
23
|
+
optional :signed_timestamp, :bytes, 1
|
24
|
+
end
|
25
|
+
add_message "dev.sigstore.common.v1.PublicKey" do
|
26
|
+
proto3_optional :raw_bytes, :bytes, 1
|
27
|
+
optional :key_details, :enum, 2, "dev.sigstore.common.v1.PublicKeyDetails"
|
28
|
+
proto3_optional :valid_for, :message, 3, "dev.sigstore.common.v1.TimeRange"
|
29
|
+
end
|
30
|
+
add_message "dev.sigstore.common.v1.PublicKeyIdentifier" do
|
31
|
+
optional :hint, :string, 1
|
32
|
+
end
|
33
|
+
add_message "dev.sigstore.common.v1.ObjectIdentifier" do
|
34
|
+
repeated :id, :int32, 1
|
35
|
+
end
|
36
|
+
add_message "dev.sigstore.common.v1.ObjectIdentifierValuePair" do
|
37
|
+
optional :oid, :message, 1, "dev.sigstore.common.v1.ObjectIdentifier"
|
38
|
+
optional :value, :bytes, 2
|
39
|
+
end
|
40
|
+
add_message "dev.sigstore.common.v1.DistinguishedName" do
|
41
|
+
optional :organization, :string, 1
|
42
|
+
optional :common_name, :string, 2
|
43
|
+
end
|
44
|
+
add_message "dev.sigstore.common.v1.X509Certificate" do
|
45
|
+
optional :raw_bytes, :bytes, 1
|
46
|
+
end
|
47
|
+
add_message "dev.sigstore.common.v1.SubjectAlternativeName" do
|
48
|
+
optional :type, :enum, 1, "dev.sigstore.common.v1.SubjectAlternativeNameType"
|
49
|
+
oneof :identity do
|
50
|
+
optional :regexp, :string, 2
|
51
|
+
optional :value, :string, 3
|
52
|
+
end
|
53
|
+
end
|
54
|
+
add_message "dev.sigstore.common.v1.X509CertificateChain" do
|
55
|
+
repeated :certificates, :message, 1, "dev.sigstore.common.v1.X509Certificate"
|
56
|
+
end
|
57
|
+
add_message "dev.sigstore.common.v1.TimeRange" do
|
58
|
+
optional :start, :message, 1, "google.protobuf.Timestamp"
|
59
|
+
proto3_optional :end, :message, 2, "google.protobuf.Timestamp"
|
60
|
+
end
|
61
|
+
add_enum "dev.sigstore.common.v1.HashAlgorithm" do
|
62
|
+
value :HASH_ALGORITHM_UNSPECIFIED, 0
|
63
|
+
value :SHA2_256, 1
|
64
|
+
end
|
65
|
+
add_enum "dev.sigstore.common.v1.PublicKeyDetails" do
|
66
|
+
value :PUBLIC_KEY_DETAILS_UNSPECIFIED, 0
|
67
|
+
value :PKCS1_RSA_PKCS1V5, 1
|
68
|
+
value :PKCS1_RSA_PSS, 2
|
69
|
+
value :PKIX_RSA_PKCS1V5, 3
|
70
|
+
value :PKIX_RSA_PSS, 4
|
71
|
+
value :PKIX_ECDSA_P256_SHA_256, 5
|
72
|
+
value :PKIX_ECDSA_P256_HMAC_SHA_256, 6
|
73
|
+
value :PKIX_ED25519, 7
|
74
|
+
end
|
75
|
+
add_enum "dev.sigstore.common.v1.SubjectAlternativeNameType" do
|
76
|
+
value :SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED, 0
|
77
|
+
value :EMAIL, 1
|
78
|
+
value :URI, 2
|
79
|
+
value :OTHER_NAME, 3
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
module Dev
|
85
|
+
module Sigstore
|
86
|
+
module Common
|
87
|
+
module V1
|
88
|
+
HashOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.HashOutput").msgclass
|
89
|
+
MessageSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.MessageSignature").msgclass
|
90
|
+
LogId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.LogId").msgclass
|
91
|
+
RFC3161SignedTimestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.RFC3161SignedTimestamp").msgclass
|
92
|
+
PublicKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.PublicKey").msgclass
|
93
|
+
PublicKeyIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.PublicKeyIdentifier").msgclass
|
94
|
+
ObjectIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.ObjectIdentifier").msgclass
|
95
|
+
ObjectIdentifierValuePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.ObjectIdentifierValuePair").msgclass
|
96
|
+
DistinguishedName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.DistinguishedName").msgclass
|
97
|
+
X509Certificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.X509Certificate").msgclass
|
98
|
+
SubjectAlternativeName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.SubjectAlternativeName").msgclass
|
99
|
+
X509CertificateChain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.X509CertificateChain").msgclass
|
100
|
+
TimeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.TimeRange").msgclass
|
101
|
+
HashAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.HashAlgorithm").enummodule
|
102
|
+
PublicKeyDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.PublicKeyDetails").enummodule
|
103
|
+
SubjectAlternativeNameType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.common.v1.SubjectAlternativeNameType").enummodule
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 The Sigstore Authors.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
Dir[File.join(__dir__, '*.rb')].each { |file| require file }
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: sigstore_rekor.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'sigstore_common_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("sigstore_rekor.proto", :syntax => :proto3) do
|
10
|
+
add_message "dev.sigstore.rekor.v1.KindVersion" do
|
11
|
+
optional :kind, :string, 1
|
12
|
+
optional :version, :string, 2
|
13
|
+
end
|
14
|
+
add_message "dev.sigstore.rekor.v1.Checkpoint" do
|
15
|
+
optional :envelope, :string, 1
|
16
|
+
end
|
17
|
+
add_message "dev.sigstore.rekor.v1.InclusionProof" do
|
18
|
+
optional :log_index, :int64, 1
|
19
|
+
optional :root_hash, :bytes, 2
|
20
|
+
optional :tree_size, :int64, 3
|
21
|
+
repeated :hashes, :bytes, 4
|
22
|
+
optional :checkpoint, :message, 5, "dev.sigstore.rekor.v1.Checkpoint"
|
23
|
+
end
|
24
|
+
add_message "dev.sigstore.rekor.v1.InclusionPromise" do
|
25
|
+
optional :signed_entry_timestamp, :bytes, 1
|
26
|
+
end
|
27
|
+
add_message "dev.sigstore.rekor.v1.TransparencyLogEntry" do
|
28
|
+
optional :log_index, :int64, 1
|
29
|
+
optional :log_id, :message, 2, "dev.sigstore.common.v1.LogId"
|
30
|
+
optional :kind_version, :message, 3, "dev.sigstore.rekor.v1.KindVersion"
|
31
|
+
optional :integrated_time, :int64, 4
|
32
|
+
optional :inclusion_promise, :message, 5, "dev.sigstore.rekor.v1.InclusionPromise"
|
33
|
+
optional :inclusion_proof, :message, 6, "dev.sigstore.rekor.v1.InclusionProof"
|
34
|
+
optional :canonicalized_body, :bytes, 7
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
module Dev
|
40
|
+
module Sigstore
|
41
|
+
module Rekor
|
42
|
+
module V1
|
43
|
+
KindVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.KindVersion").msgclass
|
44
|
+
Checkpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.Checkpoint").msgclass
|
45
|
+
InclusionProof = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.InclusionProof").msgclass
|
46
|
+
InclusionPromise = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.InclusionPromise").msgclass
|
47
|
+
TransparencyLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.rekor.v1.TransparencyLogEntry").msgclass
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: sigstore_trustroot.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'sigstore_common_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("sigstore_trustroot.proto", :syntax => :proto3) do
|
10
|
+
add_message "dev.sigstore.trustroot.v1.TransparencyLogInstance" do
|
11
|
+
optional :base_url, :string, 1
|
12
|
+
optional :hash_algorithm, :enum, 2, "dev.sigstore.common.v1.HashAlgorithm"
|
13
|
+
optional :public_key, :message, 3, "dev.sigstore.common.v1.PublicKey"
|
14
|
+
optional :log_id, :message, 4, "dev.sigstore.common.v1.LogId"
|
15
|
+
end
|
16
|
+
add_message "dev.sigstore.trustroot.v1.CertificateAuthority" do
|
17
|
+
optional :subject, :message, 1, "dev.sigstore.common.v1.DistinguishedName"
|
18
|
+
optional :uri, :string, 2
|
19
|
+
optional :cert_chain, :message, 3, "dev.sigstore.common.v1.X509CertificateChain"
|
20
|
+
optional :valid_for, :message, 4, "dev.sigstore.common.v1.TimeRange"
|
21
|
+
end
|
22
|
+
add_message "dev.sigstore.trustroot.v1.TrustedRoot" do
|
23
|
+
optional :media_type, :string, 1
|
24
|
+
repeated :tlogs, :message, 2, "dev.sigstore.trustroot.v1.TransparencyLogInstance"
|
25
|
+
repeated :certificate_authorities, :message, 3, "dev.sigstore.trustroot.v1.CertificateAuthority"
|
26
|
+
repeated :ctlogs, :message, 4, "dev.sigstore.trustroot.v1.TransparencyLogInstance"
|
27
|
+
repeated :timestamp_authorities, :message, 5, "dev.sigstore.trustroot.v1.CertificateAuthority"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
module Dev
|
33
|
+
module Sigstore
|
34
|
+
module Trustroot
|
35
|
+
module V1
|
36
|
+
TransparencyLogInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.TransparencyLogInstance").msgclass
|
37
|
+
CertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.CertificateAuthority").msgclass
|
38
|
+
TrustedRoot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.trustroot.v1.TrustedRoot").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: sigstore_verification.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'sigstore_common_pb'
|
7
|
+
require 'sigstore_trustroot_pb'
|
8
|
+
require 'sigstore_bundle_pb'
|
9
|
+
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("sigstore_verification.proto", :syntax => :proto3) do
|
12
|
+
add_message "dev.sigstore.verification.v1.CertificateIdentity" do
|
13
|
+
optional :issuer, :string, 1
|
14
|
+
optional :san, :message, 2, "dev.sigstore.common.v1.SubjectAlternativeName"
|
15
|
+
repeated :oids, :message, 3, "dev.sigstore.common.v1.ObjectIdentifierValuePair"
|
16
|
+
end
|
17
|
+
add_message "dev.sigstore.verification.v1.CertificateIdentities" do
|
18
|
+
repeated :identities, :message, 1, "dev.sigstore.verification.v1.CertificateIdentity"
|
19
|
+
end
|
20
|
+
add_message "dev.sigstore.verification.v1.PublicKeyIdentities" do
|
21
|
+
repeated :public_keys, :message, 1, "dev.sigstore.common.v1.PublicKey"
|
22
|
+
end
|
23
|
+
add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions" do
|
24
|
+
proto3_optional :tlog_options, :message, 3, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions"
|
25
|
+
proto3_optional :ctlog_options, :message, 4, "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions"
|
26
|
+
proto3_optional :tsa_options, :message, 5, "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions"
|
27
|
+
oneof :signers do
|
28
|
+
optional :certificate_identities, :message, 1, "dev.sigstore.verification.v1.CertificateIdentities"
|
29
|
+
optional :public_keys, :message, 2, "dev.sigstore.verification.v1.PublicKeyIdentities"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions" do
|
33
|
+
optional :threshold, :int32, 1
|
34
|
+
optional :perform_online_verification, :bool, 2
|
35
|
+
optional :disable, :bool, 3
|
36
|
+
end
|
37
|
+
add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions" do
|
38
|
+
optional :threshold, :int32, 1
|
39
|
+
optional :detached_sct, :bool, 2
|
40
|
+
optional :disable, :bool, 3
|
41
|
+
end
|
42
|
+
add_message "dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions" do
|
43
|
+
optional :threshold, :int32, 1
|
44
|
+
optional :disable, :bool, 2
|
45
|
+
end
|
46
|
+
add_message "dev.sigstore.verification.v1.Artifact" do
|
47
|
+
oneof :data do
|
48
|
+
optional :artifact_uri, :string, 1
|
49
|
+
optional :artifact, :bytes, 2
|
50
|
+
end
|
51
|
+
end
|
52
|
+
add_message "dev.sigstore.verification.v1.Input" do
|
53
|
+
optional :artifact_trust_root, :message, 1, "dev.sigstore.trustroot.v1.TrustedRoot"
|
54
|
+
optional :artifact_verification_options, :message, 2, "dev.sigstore.verification.v1.ArtifactVerificationOptions"
|
55
|
+
optional :bundle, :message, 3, "dev.sigstore.bundle.v1.Bundle"
|
56
|
+
proto3_optional :artifact, :message, 4, "dev.sigstore.verification.v1.Artifact"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
module Dev
|
62
|
+
module Sigstore
|
63
|
+
module Verification
|
64
|
+
module V1
|
65
|
+
CertificateIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.CertificateIdentity").msgclass
|
66
|
+
CertificateIdentities = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.CertificateIdentities").msgclass
|
67
|
+
PublicKeyIdentities = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.PublicKeyIdentities").msgclass
|
68
|
+
ArtifactVerificationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions").msgclass
|
69
|
+
ArtifactVerificationOptions::TlogOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions").msgclass
|
70
|
+
ArtifactVerificationOptions::CtlogOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions").msgclass
|
71
|
+
ArtifactVerificationOptions::TimestampAuthorityOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions").msgclass
|
72
|
+
Artifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.Artifact").msgclass
|
73
|
+
Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("dev.sigstore.verification.v1.Input").msgclass
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
data/lib/version.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 The Sigstore Authors.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module Dev
|
18
|
+
module Sigstore
|
19
|
+
VERSION = '0.0.1-alpha1'
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sigstore_protobuf_specs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.pre.alpha1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sigstore Authors
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-03-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-protobuf
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.21'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.21.12
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.21'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.21.12
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: googleapis-common-protos-types
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.4'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.4'
|
47
|
+
description:
|
48
|
+
email:
|
49
|
+
- sigstore-dev@googlegroups.com
|
50
|
+
executables: []
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- LICENSE
|
55
|
+
- README.md
|
56
|
+
- lib/envelope_pb.rb
|
57
|
+
- lib/sigstore_bundle_pb.rb
|
58
|
+
- lib/sigstore_common_pb.rb
|
59
|
+
- lib/sigstore_protobuf_specs.rb
|
60
|
+
- lib/sigstore_rekor_pb.rb
|
61
|
+
- lib/sigstore_trustroot_pb.rb
|
62
|
+
- lib/sigstore_verification_pb.rb
|
63
|
+
- lib/version.rb
|
64
|
+
homepage: https://www.sigstore.dev/
|
65
|
+
licenses:
|
66
|
+
- Apache-2.0
|
67
|
+
metadata:
|
68
|
+
homepage_uri: https://www.sigstore.dev/
|
69
|
+
source_code_uri: https://github.com/sigstore/protobuf-specs
|
70
|
+
bug_tracker_uri: https://github.com/sigstore/protobuf-specs/issues
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 2.7.0
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.3.1
|
85
|
+
requirements: []
|
86
|
+
rubygems_version: 3.1.4
|
87
|
+
signing_key:
|
88
|
+
specification_version: 4
|
89
|
+
summary: A library for serializing and deserializing Sigstore messages.
|
90
|
+
test_files: []
|