cerbos 0.5.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,12 +3,9 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'cerbos/protobuf/cerbos/audit/v1/audit_pb'
7
6
  require 'cerbos/protobuf/cerbos/effect/v1/effect_pb'
8
7
  require 'cerbos/protobuf/cerbos/engine/v1/engine_pb'
9
- require 'cerbos/protobuf/cerbos/policy/v1/policy_pb'
10
8
  require 'cerbos/protobuf/cerbos/schema/v1/schema_pb'
11
- require 'google/protobuf/empty_pb'
12
9
  require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
13
10
 
14
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -20,6 +17,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
17
  optional :policy_version, :string, 4, json_name: "policyVersion"
21
18
  optional :filter, :message, 5, "cerbos.engine.v1.PlanResourcesFilter", json_name: "filter"
22
19
  optional :meta, :message, 6, "cerbos.response.v1.PlanResourcesResponse.Meta", json_name: "meta"
20
+ repeated :validation_errors, :message, 7, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
23
21
  end
24
22
  add_message "cerbos.response.v1.PlanResourcesResponse.Meta" do
25
23
  optional :filter_debug, :string, 1, json_name: "filterDebug"
@@ -78,89 +76,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
78
76
  optional :matched_policy, :string, 1, json_name: "matchedPolicy"
79
77
  optional :matched_scope, :string, 2, json_name: "matchedScope"
80
78
  end
81
- add_message "cerbos.response.v1.PlaygroundFailure" do
82
- repeated :errors, :message, 1, "cerbos.response.v1.PlaygroundFailure.Error", json_name: "errors"
83
- end
84
- add_message "cerbos.response.v1.PlaygroundFailure.Error" do
85
- optional :file, :string, 1, json_name: "file"
86
- optional :error, :string, 2, json_name: "error"
87
- end
88
- add_message "cerbos.response.v1.PlaygroundValidateResponse" do
89
- optional :playground_id, :string, 1, json_name: "playgroundId"
90
- oneof :outcome do
91
- optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
92
- optional :success, :message, 3, "google.protobuf.Empty", json_name: "success"
93
- end
94
- end
95
- add_message "cerbos.response.v1.PlaygroundTestResponse" do
96
- optional :playground_id, :string, 1, json_name: "playgroundId"
97
- oneof :outcome do
98
- optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
99
- optional :success, :message, 3, "cerbos.response.v1.PlaygroundTestResponse.TestResults", json_name: "success"
100
- end
101
- end
102
- add_message "cerbos.response.v1.PlaygroundTestResponse.TestResults" do
103
- optional :results, :message, 1, "cerbos.policy.v1.TestResults", json_name: "results"
104
- end
105
- add_message "cerbos.response.v1.PlaygroundEvaluateResponse" do
106
- optional :playground_id, :string, 1, json_name: "playgroundId"
107
- oneof :outcome do
108
- optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
109
- optional :success, :message, 3, "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList", json_name: "success"
110
- end
111
- end
112
- add_message "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult" do
113
- optional :action, :string, 1, json_name: "action"
114
- optional :effect, :enum, 2, "cerbos.effect.v1.Effect", json_name: "effect"
115
- optional :policy, :string, 3, json_name: "policy"
116
- repeated :effective_derived_roles, :string, 4, json_name: "effectiveDerivedRoles"
117
- repeated :validation_errors, :message, 5, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
118
- end
119
- add_message "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList" do
120
- repeated :results, :message, 1, "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult", json_name: "results"
121
- end
122
- add_message "cerbos.response.v1.PlaygroundProxyResponse" do
123
- optional :playground_id, :string, 1, json_name: "playgroundId"
124
- oneof :outcome do
125
- optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
126
- optional :check_resource_set, :message, 3, "cerbos.response.v1.CheckResourceSetResponse", json_name: "checkResourceSet"
127
- optional :check_resource_batch, :message, 4, "cerbos.response.v1.CheckResourceBatchResponse", json_name: "checkResourceBatch"
128
- optional :plan_resources, :message, 5, "cerbos.response.v1.PlanResourcesResponse", json_name: "planResources"
129
- optional :check_resources, :message, 6, "cerbos.response.v1.CheckResourcesResponse", json_name: "checkResources"
130
- end
131
- end
132
- add_message "cerbos.response.v1.AddOrUpdatePolicyResponse" do
133
- optional :success, :message, 1, "google.protobuf.Empty", json_name: "success"
134
- end
135
- add_message "cerbos.response.v1.ListAuditLogEntriesResponse" do
136
- oneof :entry do
137
- optional :access_log_entry, :message, 1, "cerbos.audit.v1.AccessLogEntry", json_name: "accessLogEntry"
138
- optional :decision_log_entry, :message, 2, "cerbos.audit.v1.DecisionLogEntry", json_name: "decisionLogEntry"
139
- end
140
- end
141
79
  add_message "cerbos.response.v1.ServerInfoResponse" do
142
80
  optional :version, :string, 1, json_name: "version"
143
81
  optional :commit, :string, 2, json_name: "commit"
144
82
  optional :build_date, :string, 3, json_name: "buildDate"
145
83
  end
146
- add_message "cerbos.response.v1.ListPoliciesResponse" do
147
- repeated :policy_ids, :string, 1, json_name: "policyIds"
148
- end
149
- add_message "cerbos.response.v1.GetPolicyResponse" do
150
- repeated :policies, :message, 1, "cerbos.policy.v1.Policy", json_name: "policies"
151
- end
152
- add_message "cerbos.response.v1.AddOrUpdateSchemaResponse" do
153
- end
154
- add_message "cerbos.response.v1.ListSchemasResponse" do
155
- repeated :schema_ids, :string, 1, json_name: "schemaIds"
156
- end
157
- add_message "cerbos.response.v1.GetSchemaResponse" do
158
- repeated :schemas, :message, 1, "cerbos.schema.v1.Schema", json_name: "schemas"
159
- end
160
- add_message "cerbos.response.v1.DeleteSchemaResponse" do
161
- end
162
- add_message "cerbos.response.v1.ReloadStoreResponse" do
163
- end
164
84
  end
165
85
  end
166
86
 
@@ -181,25 +101,7 @@ module Cerbos::Protobuf::Cerbos
181
101
  CheckResourcesResponse::ResultEntry::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Resource").msgclass
182
102
  CheckResourcesResponse::ResultEntry::Meta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta").msgclass
183
103
  CheckResourcesResponse::ResultEntry::Meta::EffectMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta.EffectMeta").msgclass
184
- PlaygroundFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundFailure").msgclass
185
- PlaygroundFailure::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundFailure.Error").msgclass
186
- PlaygroundValidateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundValidateResponse").msgclass
187
- PlaygroundTestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundTestResponse").msgclass
188
- PlaygroundTestResponse::TestResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundTestResponse.TestResults").msgclass
189
- PlaygroundEvaluateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse").msgclass
190
- PlaygroundEvaluateResponse::EvalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult").msgclass
191
- PlaygroundEvaluateResponse::EvalResultList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList").msgclass
192
- PlaygroundProxyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundProxyResponse").msgclass
193
- AddOrUpdatePolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.AddOrUpdatePolicyResponse").msgclass
194
- ListAuditLogEntriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListAuditLogEntriesResponse").msgclass
195
104
  ServerInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ServerInfoResponse").msgclass
196
- ListPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListPoliciesResponse").msgclass
197
- GetPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.GetPolicyResponse").msgclass
198
- AddOrUpdateSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.AddOrUpdateSchemaResponse").msgclass
199
- ListSchemasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListSchemasResponse").msgclass
200
- GetSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.GetSchemaResponse").msgclass
201
- DeleteSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.DeleteSchemaResponse").msgclass
202
- ReloadStoreResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ReloadStoreResponse").msgclass
203
105
  end
204
106
  end
205
107
  end
@@ -3,10 +3,6 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'cerbos/protobuf/google/api/field_behavior_pb'
7
- require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
8
- require 'cerbos/protobuf/validate/validate_pb'
9
-
10
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
7
  add_file("cerbos/schema/v1/schema.proto", :syntax => :proto3) do
12
8
  add_message "cerbos.schema.v1.ValidationError" do
@@ -19,10 +15,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
15
  value :SOURCE_PRINCIPAL, 1
20
16
  value :SOURCE_RESOURCE, 2
21
17
  end
22
- add_message "cerbos.schema.v1.Schema" do
23
- optional :id, :string, 1, json_name: "id"
24
- optional :definition, :bytes, 2, json_name: "definition"
25
- end
26
18
  end
27
19
  end
28
20
 
@@ -31,7 +23,6 @@ module Cerbos::Protobuf::Cerbos
31
23
  module V1
32
24
  ValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.schema.v1.ValidationError").msgclass
33
25
  ValidationError::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.schema.v1.ValidationError.Source").enummodule
34
- Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.schema.v1.Schema").msgclass
35
26
  end
36
27
  end
37
28
  end
@@ -7,6 +7,8 @@ require 'cerbos/protobuf/cerbos/request/v1/request_pb'
7
7
  require 'cerbos/protobuf/cerbos/response/v1/response_pb'
8
8
  require 'cerbos/protobuf/google/api/annotations_pb'
9
9
  require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
10
+ require 'cerbos/protobuf/validate/validate_pb'
11
+ require 'cerbos/protobuf/google/api/field_behavior_pb'
10
12
 
11
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
14
  add_file("cerbos/svc/v1/svc.proto", :syntax => :proto3) do
@@ -1,9 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: cerbos/svc/v1/svc.proto for package 'cerbos.svc.v1'
3
- # Original file comments:
4
- # Copyright 2021-2022 Zenauth Ltd.
5
- # SPDX-License-Identifier: Apache-2.0
6
- #
7
3
 
8
4
  require 'grpc'
9
5
  require 'cerbos/protobuf/cerbos/svc/v1/svc_pb'
@@ -27,45 +23,6 @@ module Cerbos::Protobuf::Cerbos
27
23
  rpc :PlanResources, ::Cerbos::Protobuf::Cerbos::Request::V1::PlanResourcesRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlanResourcesResponse
28
24
  end
29
25
 
30
- Stub = Service.rpc_stub_class
31
- end
32
- module CerbosAdminService
33
- class Service
34
-
35
- include ::GRPC::GenericService
36
-
37
- self.marshal_class_method = :encode
38
- self.unmarshal_class_method = :decode
39
- self.service_name = 'cerbos.svc.v1.CerbosAdminService'
40
-
41
- rpc :AddOrUpdatePolicy, ::Cerbos::Protobuf::Cerbos::Request::V1::AddOrUpdatePolicyRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::AddOrUpdatePolicyResponse
42
- rpc :ListPolicies, ::Cerbos::Protobuf::Cerbos::Request::V1::ListPoliciesRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::ListPoliciesResponse
43
- rpc :GetPolicy, ::Cerbos::Protobuf::Cerbos::Request::V1::GetPolicyRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::GetPolicyResponse
44
- rpc :ListAuditLogEntries, ::Cerbos::Protobuf::Cerbos::Request::V1::ListAuditLogEntriesRequest, stream(::Cerbos::Protobuf::Cerbos::Response::V1::ListAuditLogEntriesResponse)
45
- rpc :AddOrUpdateSchema, ::Cerbos::Protobuf::Cerbos::Request::V1::AddOrUpdateSchemaRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::AddOrUpdateSchemaResponse
46
- rpc :ListSchemas, ::Cerbos::Protobuf::Cerbos::Request::V1::ListSchemasRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::ListSchemasResponse
47
- rpc :GetSchema, ::Cerbos::Protobuf::Cerbos::Request::V1::GetSchemaRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::GetSchemaResponse
48
- rpc :DeleteSchema, ::Cerbos::Protobuf::Cerbos::Request::V1::DeleteSchemaRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::DeleteSchemaResponse
49
- rpc :ReloadStore, ::Cerbos::Protobuf::Cerbos::Request::V1::ReloadStoreRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::ReloadStoreResponse
50
- end
51
-
52
- Stub = Service.rpc_stub_class
53
- end
54
- module CerbosPlaygroundService
55
- class Service
56
-
57
- include ::GRPC::GenericService
58
-
59
- self.marshal_class_method = :encode
60
- self.unmarshal_class_method = :decode
61
- self.service_name = 'cerbos.svc.v1.CerbosPlaygroundService'
62
-
63
- rpc :PlaygroundValidate, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundValidateRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundValidateResponse
64
- rpc :PlaygroundTest, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundTestRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundTestResponse
65
- rpc :PlaygroundEvaluate, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundEvaluateRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundEvaluateResponse
66
- rpc :PlaygroundProxy, ::Cerbos::Protobuf::Cerbos::Request::V1::PlaygroundProxyRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlaygroundProxyResponse
67
- end
68
-
69
26
  Stub = Service.rpc_stub_class
70
27
  end
71
28
  end
@@ -5,10 +5,6 @@ require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
7
  add_file("google/api/http.proto", :syntax => :proto3) do
8
- add_message "google.api.Http" do
9
- repeated :rules, :message, 1, "google.api.HttpRule", json_name: "rules"
10
- optional :fully_decode_reserved_expansion, :bool, 2, json_name: "fullyDecodeReservedExpansion"
11
- end
12
8
  add_message "google.api.HttpRule" do
13
9
  optional :selector, :string, 1, json_name: "selector"
14
10
  optional :body, :string, 7, json_name: "body"
@@ -32,7 +28,6 @@ end
32
28
 
33
29
  module Cerbos::Protobuf::Google
34
30
  module Api
35
- Http = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
36
31
  HttpRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
37
32
  CustomHttpPattern = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CustomHttpPattern").msgclass
38
33
  end
@@ -103,6 +103,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
103
103
  repeated :type, :enum, 35, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes", json_name: "type"
104
104
  optional :format, :string, 36, json_name: "format"
105
105
  repeated :enum, :string, 46, json_name: "enum"
106
+ optional :field_configuration, :message, 1001, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration", json_name: "fieldConfiguration"
107
+ map :extensions, :string, :message, 48, "google.protobuf.Value"
108
+ end
109
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration" do
110
+ optional :path_param_name, :string, 47, json_name: "pathParamName"
106
111
  end
107
112
  add_enum "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes" do
108
113
  value :UNKNOWN, 0
@@ -183,6 +188,7 @@ module Cerbos::Protobuf::Grpc
183
188
  ExternalDocumentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation").msgclass
184
189
  Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Schema").msgclass
185
190
  JSONSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema").msgclass
191
+ JSONSchema::FieldConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration").msgclass
186
192
  JSONSchema::JSONSchemaSimpleTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes").enummodule
187
193
  Tag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Tag").msgclass
188
194
  SecurityDefinitions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions").msgclass
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Cerbos
4
4
  # Current version of the `cerbos` gem.
5
- VERSION = "0.5.0"
5
+ VERSION = "0.6.1"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cerbos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cerbos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-09 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -53,20 +53,16 @@ files:
53
53
  - lib/cerbos/output/check_resources.rb
54
54
  - lib/cerbos/output/plan_resources.rb
55
55
  - lib/cerbos/output/server_info.rb
56
+ - lib/cerbos/output/validation_error.rb
56
57
  - lib/cerbos/protobuf.rb
57
- - lib/cerbos/protobuf/cerbos/audit/v1/audit_pb.rb
58
58
  - lib/cerbos/protobuf/cerbos/effect/v1/effect_pb.rb
59
59
  - lib/cerbos/protobuf/cerbos/engine/v1/engine_pb.rb
60
- - lib/cerbos/protobuf/cerbos/policy/v1/policy_pb.rb
61
60
  - lib/cerbos/protobuf/cerbos/request/v1/request_pb.rb
62
61
  - lib/cerbos/protobuf/cerbos/response/v1/response_pb.rb
63
62
  - lib/cerbos/protobuf/cerbos/schema/v1/schema_pb.rb
64
63
  - lib/cerbos/protobuf/cerbos/svc/v1/svc_pb.rb
65
64
  - lib/cerbos/protobuf/cerbos/svc/v1/svc_services_pb.rb
66
- - lib/cerbos/protobuf/cerbos/telemetry/v1/telemetry_pb.rb
67
65
  - lib/cerbos/protobuf/google/api/annotations_pb.rb
68
- - lib/cerbos/protobuf/google/api/expr/v1alpha1/checked_pb.rb
69
- - lib/cerbos/protobuf/google/api/expr/v1alpha1/syntax_pb.rb
70
66
  - lib/cerbos/protobuf/google/api/field_behavior_pb.rb
71
67
  - lib/cerbos/protobuf/google/api/http_pb.rb
72
68
  - lib/cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb.rb
@@ -81,7 +77,7 @@ licenses:
81
77
  metadata:
82
78
  bug_tracker_uri: https://github.com/cerbos/cerbos-sdk-ruby/issues
83
79
  changelog_uri: https://github.com/cerbos/cerbos-sdk-ruby/blob/main/CHANGELOG.md
84
- documentation_uri: https://www.rubydoc.info/gems/cerbos/0.5.0
80
+ documentation_uri: https://www.rubydoc.info/gems/cerbos/0.6.1
85
81
  homepage_uri: https://github.com/cerbos/cerbos-sdk-ruby
86
82
  source_code_uri: https://github.com/cerbos/cerbos-sdk-ruby
87
83
  rubygems_mfa_required: 'true'
@@ -100,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
96
  - !ruby/object:Gem::Version
101
97
  version: '0'
102
98
  requirements: []
103
- rubygems_version: 3.3.13
99
+ rubygems_version: 3.4.9
104
100
  signing_key:
105
101
  specification_version: 4
106
102
  summary: Client library for authorization via Cerbos
@@ -1,64 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: cerbos/audit/v1/audit.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'cerbos/protobuf/cerbos/engine/v1/engine_pb'
7
- require 'google/protobuf/timestamp_pb'
8
-
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("cerbos/audit/v1/audit.proto", :syntax => :proto3) do
11
- add_message "cerbos.audit.v1.AccessLogEntry" do
12
- optional :call_id, :string, 1, json_name: "callId"
13
- optional :timestamp, :message, 2, "google.protobuf.Timestamp", json_name: "timestamp"
14
- optional :peer, :message, 3, "cerbos.audit.v1.Peer", json_name: "peer"
15
- map :metadata, :string, :message, 4, "cerbos.audit.v1.MetaValues"
16
- optional :method, :string, 5, json_name: "method"
17
- optional :status_code, :uint32, 6, json_name: "statusCode"
18
- end
19
- add_message "cerbos.audit.v1.DecisionLogEntry" do
20
- optional :call_id, :string, 1, json_name: "callId"
21
- optional :timestamp, :message, 2, "google.protobuf.Timestamp", json_name: "timestamp"
22
- optional :peer, :message, 3, "cerbos.audit.v1.Peer", json_name: "peer"
23
- repeated :inputs, :message, 4, "cerbos.engine.v1.CheckInput", json_name: "inputs"
24
- repeated :outputs, :message, 5, "cerbos.engine.v1.CheckOutput", json_name: "outputs"
25
- optional :error, :string, 6, json_name: "error"
26
- oneof :method do
27
- optional :check_resources, :message, 7, "cerbos.audit.v1.DecisionLogEntry.CheckResources", json_name: "checkResources"
28
- optional :plan_resources, :message, 8, "cerbos.audit.v1.DecisionLogEntry.PlanResources", json_name: "planResources"
29
- end
30
- end
31
- add_message "cerbos.audit.v1.DecisionLogEntry.CheckResources" do
32
- repeated :inputs, :message, 1, "cerbos.engine.v1.CheckInput", json_name: "inputs"
33
- repeated :outputs, :message, 2, "cerbos.engine.v1.CheckOutput", json_name: "outputs"
34
- optional :error, :string, 3, json_name: "error"
35
- end
36
- add_message "cerbos.audit.v1.DecisionLogEntry.PlanResources" do
37
- optional :input, :message, 1, "cerbos.engine.v1.PlanResourcesInput", json_name: "input"
38
- optional :output, :message, 2, "cerbos.engine.v1.PlanResourcesOutput", json_name: "output"
39
- optional :error, :string, 3, json_name: "error"
40
- end
41
- add_message "cerbos.audit.v1.MetaValues" do
42
- repeated :values, :string, 1, json_name: "values"
43
- end
44
- add_message "cerbos.audit.v1.Peer" do
45
- optional :address, :string, 1, json_name: "address"
46
- optional :auth_info, :string, 2, json_name: "authInfo"
47
- optional :user_agent, :string, 3, json_name: "userAgent"
48
- optional :forwarded_for, :string, 4, json_name: "forwardedFor"
49
- end
50
- end
51
- end
52
-
53
- module Cerbos::Protobuf::Cerbos
54
- module Audit
55
- module V1
56
- AccessLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.audit.v1.AccessLogEntry").msgclass
57
- DecisionLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.audit.v1.DecisionLogEntry").msgclass
58
- DecisionLogEntry::CheckResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.audit.v1.DecisionLogEntry.CheckResources").msgclass
59
- DecisionLogEntry::PlanResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.audit.v1.DecisionLogEntry.PlanResources").msgclass
60
- MetaValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.audit.v1.MetaValues").msgclass
61
- Peer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.audit.v1.Peer").msgclass
62
- end
63
- end
64
- end