grafeas-v1 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grafeas/v1/attestation_pb.rb +6 -1
- data/lib/grafeas/v1/build_pb.rb +5 -1
- data/lib/grafeas/v1/common_pb.rb +13 -0
- data/lib/grafeas/v1/compliance_pb.rb +48 -0
- data/lib/grafeas/v1/deployment_pb.rb +1 -1
- data/lib/grafeas/v1/discovery_pb.rb +2 -2
- data/lib/grafeas/v1/dsse_attestation_pb.rb +31 -0
- data/lib/grafeas/v1/grafeas/client.rb +298 -42
- data/lib/grafeas/v1/grafeas_pb.rb +9 -2
- data/lib/grafeas/v1/grafeas_services_pb.rb +1 -1
- data/lib/grafeas/v1/intoto_provenance_pb.rb +49 -0
- data/lib/grafeas/v1/intoto_statement_pb.rb +31 -0
- data/lib/grafeas/v1/package_pb.rb +1 -0
- data/lib/grafeas/v1/provenance_pb.rb +1 -1
- data/lib/grafeas/v1/slsa_provenance_pb.rb +54 -0
- data/lib/grafeas/v1/upgrade_pb.rb +2 -2
- data/lib/grafeas/v1/version.rb +1 -1
- data/lib/grafeas/v1/vulnerability_pb.rb +13 -2
- data/proto_docs/grafeas/v1/attestation.rb +21 -0
- data/proto_docs/grafeas/v1/build.rb +11 -1
- data/proto_docs/grafeas/v1/common.rb +31 -2
- data/proto_docs/grafeas/v1/compliance.rb +98 -0
- data/proto_docs/grafeas/v1/dsse_attestation.rb +59 -0
- data/proto_docs/grafeas/v1/grafeas.rb +15 -0
- data/proto_docs/grafeas/v1/intoto_provenance.rb +134 -0
- data/proto_docs/grafeas/v1/intoto_statement.rb +65 -0
- data/proto_docs/grafeas/v1/package.rb +8 -0
- data/proto_docs/grafeas/v1/slsa_provenance.rb +152 -0
- data/proto_docs/grafeas/v1/vulnerability.rb +38 -0
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f064820d9841b6ed77978c13ee9a550c1a859c904f69fa7246e0b8bc5b5978d8
|
4
|
+
data.tar.gz: 799a01a0a93446547a89cc9becdd7b8a5d78daacea716eed5fe09abf6618f11a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f9456863cb097541edb9d36c15ccbac1f34c548beb29399bfe8bbf27814c98808c4945a0436b2ced8d3a6b15bf7f418476d6ea5fefccbf6a35a710f81b2906
|
7
|
+
data.tar.gz: d6a5504631412ff384cb7cd0629491fc163673b8b19e50288c713cb8475f955feb12e698abbf025d9b0ab20a924984330aa7db9bf039d658265d3012dcd0d3c2
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: grafeas/v1/attestation.proto
|
3
3
|
|
4
|
+
require 'grafeas/v1/common_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'grafeas/v1/common_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("grafeas/v1/attestation.proto", :syntax => :proto3) do
|
9
9
|
add_message "grafeas.v1.AttestationNote" do
|
@@ -12,9 +12,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
12
|
add_message "grafeas.v1.AttestationNote.Hint" do
|
13
13
|
optional :human_readable_name, :string, 1
|
14
14
|
end
|
15
|
+
add_message "grafeas.v1.Jwt" do
|
16
|
+
optional :compact_jwt, :string, 1
|
17
|
+
end
|
15
18
|
add_message "grafeas.v1.AttestationOccurrence" do
|
16
19
|
optional :serialized_payload, :bytes, 1
|
17
20
|
repeated :signatures, :message, 2, "grafeas.v1.Signature"
|
21
|
+
repeated :jwts, :message, 3, "grafeas.v1.Jwt"
|
18
22
|
end
|
19
23
|
end
|
20
24
|
end
|
@@ -23,6 +27,7 @@ module Grafeas
|
|
23
27
|
module V1
|
24
28
|
AttestationNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AttestationNote").msgclass
|
25
29
|
AttestationNote::Hint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AttestationNote.Hint").msgclass
|
30
|
+
Jwt = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Jwt").msgclass
|
26
31
|
AttestationOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.AttestationOccurrence").msgclass
|
27
32
|
end
|
28
33
|
end
|
data/lib/grafeas/v1/build_pb.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: grafeas/v1/build.proto
|
3
3
|
|
4
|
+
require 'grafeas/v1/intoto_provenance_pb'
|
5
|
+
require 'grafeas/v1/intoto_statement_pb'
|
6
|
+
require 'grafeas/v1/provenance_pb'
|
4
7
|
require 'google/protobuf'
|
5
8
|
|
6
|
-
require 'grafeas/v1/provenance_pb'
|
7
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
10
|
add_file("grafeas/v1/build.proto", :syntax => :proto3) do
|
9
11
|
add_message "grafeas.v1.BuildNote" do
|
@@ -12,6 +14,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
14
|
add_message "grafeas.v1.BuildOccurrence" do
|
13
15
|
optional :provenance, :message, 1, "grafeas.v1.BuildProvenance"
|
14
16
|
optional :provenance_bytes, :string, 2
|
17
|
+
optional :intoto_provenance, :message, 3, "grafeas.v1.InTotoProvenance"
|
18
|
+
optional :intoto_statement, :message, 4, "grafeas.v1.InTotoStatement"
|
15
19
|
end
|
16
20
|
end
|
17
21
|
end
|
data/lib/grafeas/v1/common_pb.rb
CHANGED
@@ -13,6 +13,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
13
13
|
optional :signature, :bytes, 1
|
14
14
|
optional :public_key_id, :string, 2
|
15
15
|
end
|
16
|
+
add_message "grafeas.v1.Envelope" do
|
17
|
+
optional :payload, :bytes, 1
|
18
|
+
optional :payload_type, :string, 2
|
19
|
+
repeated :signatures, :message, 3, "grafeas.v1.EnvelopeSignature"
|
20
|
+
end
|
21
|
+
add_message "grafeas.v1.EnvelopeSignature" do
|
22
|
+
optional :sig, :bytes, 1
|
23
|
+
optional :keyid, :string, 2
|
24
|
+
end
|
16
25
|
add_enum "grafeas.v1.NoteKind" do
|
17
26
|
value :NOTE_KIND_UNSPECIFIED, 0
|
18
27
|
value :VULNERABILITY, 1
|
@@ -23,6 +32,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
32
|
value :DISCOVERY, 6
|
24
33
|
value :ATTESTATION, 7
|
25
34
|
value :UPGRADE, 8
|
35
|
+
value :COMPLIANCE, 9
|
36
|
+
value :DSSE_ATTESTATION, 10
|
26
37
|
end
|
27
38
|
end
|
28
39
|
end
|
@@ -31,6 +42,8 @@ module Grafeas
|
|
31
42
|
module V1
|
32
43
|
RelatedUrl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.RelatedUrl").msgclass
|
33
44
|
Signature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Signature").msgclass
|
45
|
+
Envelope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.Envelope").msgclass
|
46
|
+
EnvelopeSignature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.EnvelopeSignature").msgclass
|
34
47
|
NoteKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.NoteKind").enummodule
|
35
48
|
end
|
36
49
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: grafeas/v1/compliance.proto
|
3
|
+
|
4
|
+
require 'grafeas/v1/vulnerability_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("grafeas/v1/compliance.proto", :syntax => :proto3) do
|
9
|
+
add_message "grafeas.v1.ComplianceNote" do
|
10
|
+
optional :title, :string, 1
|
11
|
+
optional :description, :string, 2
|
12
|
+
repeated :version, :message, 3, "grafeas.v1.ComplianceVersion"
|
13
|
+
optional :rationale, :string, 4
|
14
|
+
optional :remediation, :string, 5
|
15
|
+
optional :scan_instructions, :bytes, 7
|
16
|
+
oneof :compliance_type do
|
17
|
+
optional :cis_benchmark, :message, 6, "grafeas.v1.ComplianceNote.CisBenchmark"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
add_message "grafeas.v1.ComplianceNote.CisBenchmark" do
|
21
|
+
optional :profile_level, :int32, 1
|
22
|
+
optional :severity, :enum, 2, "grafeas.v1.Severity"
|
23
|
+
end
|
24
|
+
add_message "grafeas.v1.ComplianceVersion" do
|
25
|
+
optional :cpe_uri, :string, 1
|
26
|
+
optional :version, :string, 2
|
27
|
+
end
|
28
|
+
add_message "grafeas.v1.ComplianceOccurrence" do
|
29
|
+
repeated :non_compliant_files, :message, 2, "grafeas.v1.NonCompliantFile"
|
30
|
+
optional :non_compliance_reason, :string, 3
|
31
|
+
end
|
32
|
+
add_message "grafeas.v1.NonCompliantFile" do
|
33
|
+
optional :path, :string, 1
|
34
|
+
optional :display_command, :string, 2
|
35
|
+
optional :reason, :string, 3
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
module Grafeas
|
41
|
+
module V1
|
42
|
+
ComplianceNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceNote").msgclass
|
43
|
+
ComplianceNote::CisBenchmark = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceNote.CisBenchmark").msgclass
|
44
|
+
ComplianceVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceVersion").msgclass
|
45
|
+
ComplianceOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.ComplianceOccurrence").msgclass
|
46
|
+
NonCompliantFile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.NonCompliantFile").msgclass
|
47
|
+
end
|
48
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: grafeas/v1/deployment.proto
|
3
3
|
|
4
|
+
require 'google/protobuf/timestamp_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/protobuf/timestamp_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("grafeas/v1/deployment.proto", :syntax => :proto3) do
|
9
9
|
add_message "grafeas.v1.DeploymentNote" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: grafeas/v1/discovery.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/timestamp_pb'
|
7
5
|
require 'google/rpc/status_pb'
|
8
6
|
require 'grafeas/v1/common_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("grafeas/v1/discovery.proto", :syntax => :proto3) do
|
11
11
|
add_message "grafeas.v1.DiscoveryNote" do
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: grafeas/v1/dsse_attestation.proto
|
3
|
+
|
4
|
+
require 'grafeas/v1/common_pb'
|
5
|
+
require 'grafeas/v1/intoto_statement_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("grafeas/v1/dsse_attestation.proto", :syntax => :proto3) do
|
10
|
+
add_message "grafeas.v1.DSSEAttestationNote" do
|
11
|
+
optional :hint, :message, 1, "grafeas.v1.DSSEAttestationNote.DSSEHint"
|
12
|
+
end
|
13
|
+
add_message "grafeas.v1.DSSEAttestationNote.DSSEHint" do
|
14
|
+
optional :human_readable_name, :string, 1
|
15
|
+
end
|
16
|
+
add_message "grafeas.v1.DSSEAttestationOccurrence" do
|
17
|
+
optional :envelope, :message, 1, "grafeas.v1.Envelope"
|
18
|
+
oneof :decoded_payload do
|
19
|
+
optional :statement, :message, 2, "grafeas.v1.InTotoStatement"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
module Grafeas
|
26
|
+
module V1
|
27
|
+
DSSEAttestationNote = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DSSEAttestationNote").msgclass
|
28
|
+
DSSEAttestationNote::DSSEHint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DSSEAttestationNote.DSSEHint").msgclass
|
29
|
+
DSSEAttestationOccurrence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grafeas.v1.DSSEAttestationOccurrence").msgclass
|
30
|
+
end
|
31
|
+
end
|