cerbos 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +9 -0
  3. data/CHANGELOG.md +9 -0
  4. data/LICENSE.txt +190 -0
  5. data/README.md +67 -0
  6. data/cerbos.gemspec +36 -0
  7. data/lib/cerbos/client.rb +188 -0
  8. data/lib/cerbos/error.rb +112 -0
  9. data/lib/cerbos/input/attributes.rb +29 -0
  10. data/lib/cerbos/input/aux_data.rb +26 -0
  11. data/lib/cerbos/input/jwt.rb +38 -0
  12. data/lib/cerbos/input/principal.rb +63 -0
  13. data/lib/cerbos/input/resource.rb +63 -0
  14. data/lib/cerbos/input/resource_check.rb +35 -0
  15. data/lib/cerbos/input/resource_query.rb +55 -0
  16. data/lib/cerbos/input.rb +36 -0
  17. data/lib/cerbos/mutual_tls.rb +33 -0
  18. data/lib/cerbos/output/check_resources.rb +226 -0
  19. data/lib/cerbos/output/plan_resources.rb +149 -0
  20. data/lib/cerbos/output/server_info.rb +38 -0
  21. data/lib/cerbos/output.rb +37 -0
  22. data/lib/cerbos/protobuf/cerbos/audit/v1/audit_pb.rb +48 -0
  23. data/lib/cerbos/protobuf/cerbos/effect/v1/effect_pb.rb +23 -0
  24. data/lib/cerbos/protobuf/cerbos/engine/v1/engine_pb.rb +166 -0
  25. data/lib/cerbos/protobuf/cerbos/policy/v1/policy_pb.rb +247 -0
  26. data/lib/cerbos/protobuf/cerbos/request/v1/request_pb.rb +178 -0
  27. data/lib/cerbos/protobuf/cerbos/response/v1/response_pb.rb +230 -0
  28. data/lib/cerbos/protobuf/cerbos/schema/v1/schema_pb.rb +37 -0
  29. data/lib/cerbos/protobuf/cerbos/svc/v1/svc_pb.rb +21 -0
  30. data/lib/cerbos/protobuf/cerbos/svc/v1/svc_services_pb.rb +73 -0
  31. data/lib/cerbos/protobuf/cerbos/telemetry/v1/telemetry_pb.rb +99 -0
  32. data/lib/cerbos/protobuf/google/api/annotations_pb.rb +17 -0
  33. data/lib/cerbos/protobuf/google/api/expr/v1alpha1/checked_pb.rb +117 -0
  34. data/lib/cerbos/protobuf/google/api/expr/v1alpha1/syntax_pb.rb +113 -0
  35. data/lib/cerbos/protobuf/google/api/field_behavior_pb.rb +27 -0
  36. data/lib/cerbos/protobuf/google/api/http_pb.rb +39 -0
  37. data/lib/cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb.rb +21 -0
  38. data/lib/cerbos/protobuf/protoc-gen-openapiv2/options/openapiv2_pb.rb +200 -0
  39. data/lib/cerbos/protobuf/validate/validate_pb.rb +293 -0
  40. data/lib/cerbos/protobuf.rb +9 -0
  41. data/lib/cerbos/tls.rb +24 -0
  42. data/lib/cerbos/version.rb +6 -0
  43. data/lib/cerbos.rb +22 -0
  44. data/yard_extensions.rb +33 -0
  45. metadata +107 -0
@@ -0,0 +1,178 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: cerbos/request/v1/request.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'cerbos/protobuf/cerbos/engine/v1/engine_pb'
7
+ require 'cerbos/protobuf/cerbos/policy/v1/policy_pb'
8
+ require 'cerbos/protobuf/cerbos/schema/v1/schema_pb'
9
+ require 'cerbos/protobuf/google/api/field_behavior_pb'
10
+ require 'google/protobuf/duration_pb'
11
+ require 'google/protobuf/struct_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
14
+ require 'cerbos/protobuf/validate/validate_pb'
15
+
16
+ Google::Protobuf::DescriptorPool.generated_pool.build do
17
+ add_file("cerbos/request/v1/request.proto", :syntax => :proto3) do
18
+ add_message "cerbos.request.v1.PlanResourcesRequest" do
19
+ optional :request_id, :string, 1, json_name: "requestId"
20
+ optional :action, :string, 2, json_name: "action"
21
+ optional :principal, :message, 3, "cerbos.engine.v1.Principal", json_name: "principal"
22
+ optional :resource, :message, 4, "cerbos.engine.v1.PlanResourcesRequest.Resource", json_name: "resource"
23
+ optional :aux_data, :message, 5, "cerbos.request.v1.AuxData", json_name: "auxData"
24
+ optional :include_meta, :bool, 6, json_name: "includeMeta"
25
+ end
26
+ add_message "cerbos.request.v1.CheckResourceSetRequest" do
27
+ optional :request_id, :string, 1, json_name: "requestId"
28
+ repeated :actions, :string, 2, json_name: "actions"
29
+ optional :principal, :message, 3, "cerbos.engine.v1.Principal", json_name: "principal"
30
+ optional :resource, :message, 4, "cerbos.request.v1.ResourceSet", json_name: "resource"
31
+ optional :include_meta, :bool, 5, json_name: "includeMeta"
32
+ optional :aux_data, :message, 6, "cerbos.request.v1.AuxData", json_name: "auxData"
33
+ end
34
+ add_message "cerbos.request.v1.ResourceSet" do
35
+ optional :kind, :string, 1, json_name: "kind"
36
+ optional :policy_version, :string, 2, json_name: "policyVersion"
37
+ map :instances, :string, :message, 3, "cerbos.request.v1.AttributesMap"
38
+ optional :scope, :string, 4, json_name: "scope"
39
+ end
40
+ add_message "cerbos.request.v1.AttributesMap" do
41
+ map :attr, :string, :message, 1, "google.protobuf.Value"
42
+ end
43
+ add_message "cerbos.request.v1.CheckResourceBatchRequest" do
44
+ optional :request_id, :string, 1, json_name: "requestId"
45
+ optional :principal, :message, 2, "cerbos.engine.v1.Principal", json_name: "principal"
46
+ repeated :resources, :message, 3, "cerbos.request.v1.CheckResourceBatchRequest.BatchEntry", json_name: "resources"
47
+ optional :aux_data, :message, 4, "cerbos.request.v1.AuxData", json_name: "auxData"
48
+ end
49
+ add_message "cerbos.request.v1.CheckResourceBatchRequest.BatchEntry" do
50
+ repeated :actions, :string, 1, json_name: "actions"
51
+ optional :resource, :message, 2, "cerbos.engine.v1.Resource", json_name: "resource"
52
+ end
53
+ add_message "cerbos.request.v1.CheckResourcesRequest" do
54
+ optional :request_id, :string, 1, json_name: "requestId"
55
+ optional :include_meta, :bool, 2, json_name: "includeMeta"
56
+ optional :principal, :message, 3, "cerbos.engine.v1.Principal", json_name: "principal"
57
+ repeated :resources, :message, 4, "cerbos.request.v1.CheckResourcesRequest.ResourceEntry", json_name: "resources"
58
+ optional :aux_data, :message, 5, "cerbos.request.v1.AuxData", json_name: "auxData"
59
+ end
60
+ add_message "cerbos.request.v1.CheckResourcesRequest.ResourceEntry" do
61
+ repeated :actions, :string, 1, json_name: "actions"
62
+ optional :resource, :message, 2, "cerbos.engine.v1.Resource", json_name: "resource"
63
+ end
64
+ add_message "cerbos.request.v1.AuxData" do
65
+ optional :jwt, :message, 1, "cerbos.request.v1.AuxData.JWT", json_name: "jwt"
66
+ end
67
+ add_message "cerbos.request.v1.AuxData.JWT" do
68
+ optional :token, :string, 1, json_name: "token"
69
+ optional :key_set_id, :string, 2, json_name: "keySetId"
70
+ end
71
+ add_message "cerbos.request.v1.File" do
72
+ optional :file_name, :string, 1, json_name: "fileName"
73
+ optional :contents, :bytes, 2, json_name: "contents"
74
+ end
75
+ add_message "cerbos.request.v1.PlaygroundValidateRequest" do
76
+ optional :playground_id, :string, 1, json_name: "playgroundId"
77
+ repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
78
+ end
79
+ add_message "cerbos.request.v1.PlaygroundTestRequest" do
80
+ optional :playground_id, :string, 1, json_name: "playgroundId"
81
+ repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
82
+ end
83
+ add_message "cerbos.request.v1.PlaygroundEvaluateRequest" do
84
+ optional :playground_id, :string, 1, json_name: "playgroundId"
85
+ repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
86
+ optional :principal, :message, 3, "cerbos.engine.v1.Principal", json_name: "principal"
87
+ optional :resource, :message, 4, "cerbos.engine.v1.Resource", json_name: "resource"
88
+ repeated :actions, :string, 5, json_name: "actions"
89
+ optional :aux_data, :message, 6, "cerbos.request.v1.AuxData", json_name: "auxData"
90
+ end
91
+ add_message "cerbos.request.v1.PlaygroundProxyRequest" do
92
+ optional :playground_id, :string, 1, json_name: "playgroundId"
93
+ repeated :files, :message, 2, "cerbos.request.v1.File", json_name: "files"
94
+ oneof :proxy_request do
95
+ optional :check_resource_set, :message, 3, "cerbos.request.v1.CheckResourceSetRequest", json_name: "checkResourceSet"
96
+ optional :check_resource_batch, :message, 4, "cerbos.request.v1.CheckResourceBatchRequest", json_name: "checkResourceBatch"
97
+ optional :plan_resources, :message, 5, "cerbos.request.v1.PlanResourcesRequest", json_name: "planResources"
98
+ optional :check_resources, :message, 6, "cerbos.request.v1.CheckResourcesRequest", json_name: "checkResources"
99
+ end
100
+ end
101
+ add_message "cerbos.request.v1.AddOrUpdatePolicyRequest" do
102
+ repeated :policies, :message, 1, "cerbos.policy.v1.Policy", json_name: "policies"
103
+ end
104
+ add_message "cerbos.request.v1.ListAuditLogEntriesRequest" do
105
+ optional :kind, :enum, 1, "cerbos.request.v1.ListAuditLogEntriesRequest.Kind", json_name: "kind"
106
+ oneof :filter do
107
+ optional :tail, :uint32, 2, json_name: "tail"
108
+ optional :between, :message, 3, "cerbos.request.v1.ListAuditLogEntriesRequest.TimeRange", json_name: "between"
109
+ optional :since, :message, 4, "google.protobuf.Duration", json_name: "since"
110
+ optional :lookup, :string, 5, json_name: "lookup"
111
+ end
112
+ end
113
+ add_message "cerbos.request.v1.ListAuditLogEntriesRequest.TimeRange" do
114
+ optional :start, :message, 1, "google.protobuf.Timestamp", json_name: "start"
115
+ optional :end, :message, 2, "google.protobuf.Timestamp", json_name: "end"
116
+ end
117
+ add_enum "cerbos.request.v1.ListAuditLogEntriesRequest.Kind" do
118
+ value :KIND_UNSPECIFIED, 0
119
+ value :KIND_ACCESS, 1
120
+ value :KIND_DECISION, 2
121
+ end
122
+ add_message "cerbos.request.v1.ServerInfoRequest" do
123
+ end
124
+ add_message "cerbos.request.v1.ListPoliciesRequest" do
125
+ end
126
+ add_message "cerbos.request.v1.GetPolicyRequest" do
127
+ repeated :id, :string, 1, json_name: "id"
128
+ end
129
+ add_message "cerbos.request.v1.AddOrUpdateSchemaRequest" do
130
+ repeated :schemas, :message, 1, "cerbos.schema.v1.Schema", json_name: "schemas"
131
+ end
132
+ add_message "cerbos.request.v1.ListSchemasRequest" do
133
+ end
134
+ add_message "cerbos.request.v1.GetSchemaRequest" do
135
+ repeated :id, :string, 1, json_name: "id"
136
+ end
137
+ add_message "cerbos.request.v1.DeleteSchemaRequest" do
138
+ repeated :id, :string, 1, json_name: "id"
139
+ end
140
+ add_message "cerbos.request.v1.ReloadStoreRequest" do
141
+ optional :wait, :bool, 1, json_name: "wait"
142
+ end
143
+ end
144
+ end
145
+
146
+ module Cerbos::Protobuf::Cerbos
147
+ module Request
148
+ module V1
149
+ PlanResourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlanResourcesRequest").msgclass
150
+ CheckResourceSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.CheckResourceSetRequest").msgclass
151
+ ResourceSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ResourceSet").msgclass
152
+ AttributesMap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AttributesMap").msgclass
153
+ CheckResourceBatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.CheckResourceBatchRequest").msgclass
154
+ CheckResourceBatchRequest::BatchEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.CheckResourceBatchRequest.BatchEntry").msgclass
155
+ CheckResourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.CheckResourcesRequest").msgclass
156
+ CheckResourcesRequest::ResourceEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.CheckResourcesRequest.ResourceEntry").msgclass
157
+ AuxData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AuxData").msgclass
158
+ AuxData::JWT = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AuxData.JWT").msgclass
159
+ File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.File").msgclass
160
+ PlaygroundValidateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundValidateRequest").msgclass
161
+ PlaygroundTestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundTestRequest").msgclass
162
+ PlaygroundEvaluateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundEvaluateRequest").msgclass
163
+ PlaygroundProxyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.PlaygroundProxyRequest").msgclass
164
+ AddOrUpdatePolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AddOrUpdatePolicyRequest").msgclass
165
+ ListAuditLogEntriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListAuditLogEntriesRequest").msgclass
166
+ ListAuditLogEntriesRequest::TimeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListAuditLogEntriesRequest.TimeRange").msgclass
167
+ ListAuditLogEntriesRequest::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListAuditLogEntriesRequest.Kind").enummodule
168
+ ServerInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ServerInfoRequest").msgclass
169
+ ListPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListPoliciesRequest").msgclass
170
+ GetPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.GetPolicyRequest").msgclass
171
+ AddOrUpdateSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.AddOrUpdateSchemaRequest").msgclass
172
+ ListSchemasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ListSchemasRequest").msgclass
173
+ GetSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.GetSchemaRequest").msgclass
174
+ DeleteSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.DeleteSchemaRequest").msgclass
175
+ ReloadStoreRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.request.v1.ReloadStoreRequest").msgclass
176
+ end
177
+ end
178
+ end
@@ -0,0 +1,230 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: cerbos/response/v1/response.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'cerbos/protobuf/cerbos/audit/v1/audit_pb'
7
+ require 'cerbos/protobuf/cerbos/effect/v1/effect_pb'
8
+ require 'cerbos/protobuf/cerbos/policy/v1/policy_pb'
9
+ require 'cerbos/protobuf/cerbos/schema/v1/schema_pb'
10
+ require 'google/protobuf/empty_pb'
11
+ require 'google/protobuf/struct_pb'
12
+ require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
13
+
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("cerbos/response/v1/response.proto", :syntax => :proto3) do
16
+ add_message "cerbos.response.v1.PlanResourcesResponse" do
17
+ optional :request_id, :string, 1, json_name: "requestId"
18
+ optional :action, :string, 2, json_name: "action"
19
+ optional :resource_kind, :string, 3, json_name: "resourceKind"
20
+ optional :policy_version, :string, 4, json_name: "policyVersion"
21
+ optional :filter, :message, 5, "cerbos.response.v1.PlanResourcesResponse.Filter", json_name: "filter"
22
+ optional :meta, :message, 6, "cerbos.response.v1.PlanResourcesResponse.Meta", json_name: "meta"
23
+ end
24
+ add_message "cerbos.response.v1.PlanResourcesResponse.Expression" do
25
+ optional :operator, :string, 1, json_name: "operator"
26
+ repeated :operands, :message, 2, "cerbos.response.v1.PlanResourcesResponse.Expression.Operand", json_name: "operands"
27
+ end
28
+ add_message "cerbos.response.v1.PlanResourcesResponse.Expression.Operand" do
29
+ oneof :node do
30
+ optional :value, :message, 1, "google.protobuf.Value", json_name: "value"
31
+ optional :expression, :message, 2, "cerbos.response.v1.PlanResourcesResponse.Expression", json_name: "expression"
32
+ optional :variable, :string, 3, json_name: "variable"
33
+ end
34
+ end
35
+ add_message "cerbos.response.v1.PlanResourcesResponse.Filter" do
36
+ optional :kind, :enum, 1, "cerbos.response.v1.PlanResourcesResponse.Filter.Kind", json_name: "kind"
37
+ optional :condition, :message, 2, "cerbos.response.v1.PlanResourcesResponse.Expression.Operand", json_name: "condition"
38
+ end
39
+ add_enum "cerbos.response.v1.PlanResourcesResponse.Filter.Kind" do
40
+ value :KIND_UNSPECIFIED, 0
41
+ value :KIND_ALWAYS_ALLOWED, 1
42
+ value :KIND_ALWAYS_DENIED, 2
43
+ value :KIND_CONDITIONAL, 3
44
+ end
45
+ add_message "cerbos.response.v1.PlanResourcesResponse.Meta" do
46
+ optional :filter_debug, :string, 1, json_name: "filterDebug"
47
+ optional :matched_scope, :string, 2, json_name: "matchedScope"
48
+ end
49
+ add_message "cerbos.response.v1.CheckResourceSetResponse" do
50
+ optional :request_id, :string, 1, json_name: "requestId"
51
+ map :resource_instances, :string, :message, 2, "cerbos.response.v1.CheckResourceSetResponse.ActionEffectMap"
52
+ optional :meta, :message, 3, "cerbos.response.v1.CheckResourceSetResponse.Meta", json_name: "meta"
53
+ end
54
+ add_message "cerbos.response.v1.CheckResourceSetResponse.ActionEffectMap" do
55
+ map :actions, :string, :enum, 1, "cerbos.effect.v1.Effect"
56
+ repeated :validation_errors, :message, 2, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
57
+ end
58
+ add_message "cerbos.response.v1.CheckResourceSetResponse.Meta" do
59
+ map :resource_instances, :string, :message, 1, "cerbos.response.v1.CheckResourceSetResponse.Meta.ActionMeta"
60
+ end
61
+ add_message "cerbos.response.v1.CheckResourceSetResponse.Meta.EffectMeta" do
62
+ optional :matched_policy, :string, 1, json_name: "matchedPolicy"
63
+ optional :matched_scope, :string, 2, json_name: "matchedScope"
64
+ end
65
+ add_message "cerbos.response.v1.CheckResourceSetResponse.Meta.ActionMeta" do
66
+ map :actions, :string, :message, 1, "cerbos.response.v1.CheckResourceSetResponse.Meta.EffectMeta"
67
+ repeated :effective_derived_roles, :string, 2, json_name: "effectiveDerivedRoles"
68
+ end
69
+ add_message "cerbos.response.v1.CheckResourceBatchResponse" do
70
+ optional :request_id, :string, 1, json_name: "requestId"
71
+ repeated :results, :message, 2, "cerbos.response.v1.CheckResourceBatchResponse.ActionEffectMap", json_name: "results"
72
+ end
73
+ add_message "cerbos.response.v1.CheckResourceBatchResponse.ActionEffectMap" do
74
+ optional :resource_id, :string, 1, json_name: "resourceId"
75
+ map :actions, :string, :enum, 2, "cerbos.effect.v1.Effect"
76
+ repeated :validation_errors, :message, 3, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
77
+ end
78
+ add_message "cerbos.response.v1.CheckResourcesResponse" do
79
+ optional :request_id, :string, 1, json_name: "requestId"
80
+ repeated :results, :message, 2, "cerbos.response.v1.CheckResourcesResponse.ResultEntry", json_name: "results"
81
+ end
82
+ add_message "cerbos.response.v1.CheckResourcesResponse.ResultEntry" do
83
+ optional :resource, :message, 1, "cerbos.response.v1.CheckResourcesResponse.ResultEntry.Resource", json_name: "resource"
84
+ map :actions, :string, :enum, 2, "cerbos.effect.v1.Effect"
85
+ repeated :validation_errors, :message, 3, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
86
+ optional :meta, :message, 4, "cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta", json_name: "meta"
87
+ end
88
+ add_message "cerbos.response.v1.CheckResourcesResponse.ResultEntry.Resource" do
89
+ optional :id, :string, 1, json_name: "id"
90
+ optional :kind, :string, 2, json_name: "kind"
91
+ optional :policy_version, :string, 3, json_name: "policyVersion"
92
+ optional :scope, :string, 4, json_name: "scope"
93
+ end
94
+ add_message "cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta" do
95
+ map :actions, :string, :message, 1, "cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta.EffectMeta"
96
+ repeated :effective_derived_roles, :string, 2, json_name: "effectiveDerivedRoles"
97
+ end
98
+ add_message "cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta.EffectMeta" do
99
+ optional :matched_policy, :string, 1, json_name: "matchedPolicy"
100
+ optional :matched_scope, :string, 2, json_name: "matchedScope"
101
+ end
102
+ add_message "cerbos.response.v1.PlaygroundFailure" do
103
+ repeated :errors, :message, 1, "cerbos.response.v1.PlaygroundFailure.Error", json_name: "errors"
104
+ end
105
+ add_message "cerbos.response.v1.PlaygroundFailure.Error" do
106
+ optional :file, :string, 1, json_name: "file"
107
+ optional :error, :string, 2, json_name: "error"
108
+ end
109
+ add_message "cerbos.response.v1.PlaygroundValidateResponse" do
110
+ optional :playground_id, :string, 1, json_name: "playgroundId"
111
+ oneof :outcome do
112
+ optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
113
+ optional :success, :message, 3, "google.protobuf.Empty", json_name: "success"
114
+ end
115
+ end
116
+ add_message "cerbos.response.v1.PlaygroundTestResponse" do
117
+ optional :playground_id, :string, 1, json_name: "playgroundId"
118
+ oneof :outcome do
119
+ optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
120
+ optional :success, :message, 3, "cerbos.response.v1.PlaygroundTestResponse.TestResults", json_name: "success"
121
+ end
122
+ end
123
+ add_message "cerbos.response.v1.PlaygroundTestResponse.TestResults" do
124
+ optional :results, :message, 1, "cerbos.policy.v1.TestResults", json_name: "results"
125
+ end
126
+ add_message "cerbos.response.v1.PlaygroundEvaluateResponse" do
127
+ optional :playground_id, :string, 1, json_name: "playgroundId"
128
+ oneof :outcome do
129
+ optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
130
+ optional :success, :message, 3, "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList", json_name: "success"
131
+ end
132
+ end
133
+ add_message "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult" do
134
+ optional :action, :string, 1, json_name: "action"
135
+ optional :effect, :enum, 2, "cerbos.effect.v1.Effect", json_name: "effect"
136
+ optional :policy, :string, 3, json_name: "policy"
137
+ repeated :effective_derived_roles, :string, 4, json_name: "effectiveDerivedRoles"
138
+ repeated :validation_errors, :message, 5, "cerbos.schema.v1.ValidationError", json_name: "validationErrors"
139
+ end
140
+ add_message "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList" do
141
+ repeated :results, :message, 1, "cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult", json_name: "results"
142
+ end
143
+ add_message "cerbos.response.v1.PlaygroundProxyResponse" do
144
+ optional :playground_id, :string, 1, json_name: "playgroundId"
145
+ oneof :outcome do
146
+ optional :failure, :message, 2, "cerbos.response.v1.PlaygroundFailure", json_name: "failure"
147
+ optional :check_resource_set, :message, 3, "cerbos.response.v1.CheckResourceSetResponse", json_name: "checkResourceSet"
148
+ optional :check_resource_batch, :message, 4, "cerbos.response.v1.CheckResourceBatchResponse", json_name: "checkResourceBatch"
149
+ optional :plan_resources, :message, 5, "cerbos.response.v1.PlanResourcesResponse", json_name: "planResources"
150
+ optional :check_resources, :message, 6, "cerbos.response.v1.CheckResourcesResponse", json_name: "checkResources"
151
+ end
152
+ end
153
+ add_message "cerbos.response.v1.AddOrUpdatePolicyResponse" do
154
+ optional :success, :message, 1, "google.protobuf.Empty", json_name: "success"
155
+ end
156
+ add_message "cerbos.response.v1.ListAuditLogEntriesResponse" do
157
+ oneof :entry do
158
+ optional :access_log_entry, :message, 1, "cerbos.audit.v1.AccessLogEntry", json_name: "accessLogEntry"
159
+ optional :decision_log_entry, :message, 2, "cerbos.audit.v1.DecisionLogEntry", json_name: "decisionLogEntry"
160
+ end
161
+ end
162
+ add_message "cerbos.response.v1.ServerInfoResponse" do
163
+ optional :version, :string, 1, json_name: "version"
164
+ optional :commit, :string, 2, json_name: "commit"
165
+ optional :build_date, :string, 3, json_name: "buildDate"
166
+ end
167
+ add_message "cerbos.response.v1.ListPoliciesResponse" do
168
+ repeated :policy_ids, :string, 1, json_name: "policyIds"
169
+ end
170
+ add_message "cerbos.response.v1.GetPolicyResponse" do
171
+ repeated :policies, :message, 1, "cerbos.policy.v1.Policy", json_name: "policies"
172
+ end
173
+ add_message "cerbos.response.v1.AddOrUpdateSchemaResponse" do
174
+ end
175
+ add_message "cerbos.response.v1.ListSchemasResponse" do
176
+ repeated :schema_ids, :string, 1, json_name: "schemaIds"
177
+ end
178
+ add_message "cerbos.response.v1.GetSchemaResponse" do
179
+ repeated :schemas, :message, 1, "cerbos.schema.v1.Schema", json_name: "schemas"
180
+ end
181
+ add_message "cerbos.response.v1.DeleteSchemaResponse" do
182
+ end
183
+ add_message "cerbos.response.v1.ReloadStoreResponse" do
184
+ end
185
+ end
186
+ end
187
+
188
+ module Cerbos::Protobuf::Cerbos
189
+ module Response
190
+ module V1
191
+ PlanResourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlanResourcesResponse").msgclass
192
+ PlanResourcesResponse::Expression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlanResourcesResponse.Expression").msgclass
193
+ PlanResourcesResponse::Expression::Operand = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlanResourcesResponse.Expression.Operand").msgclass
194
+ PlanResourcesResponse::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlanResourcesResponse.Filter").msgclass
195
+ PlanResourcesResponse::Filter::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlanResourcesResponse.Filter.Kind").enummodule
196
+ PlanResourcesResponse::Meta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlanResourcesResponse.Meta").msgclass
197
+ CheckResourceSetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourceSetResponse").msgclass
198
+ CheckResourceSetResponse::ActionEffectMap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourceSetResponse.ActionEffectMap").msgclass
199
+ CheckResourceSetResponse::Meta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourceSetResponse.Meta").msgclass
200
+ CheckResourceSetResponse::Meta::EffectMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourceSetResponse.Meta.EffectMeta").msgclass
201
+ CheckResourceSetResponse::Meta::ActionMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourceSetResponse.Meta.ActionMeta").msgclass
202
+ CheckResourceBatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourceBatchResponse").msgclass
203
+ CheckResourceBatchResponse::ActionEffectMap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourceBatchResponse.ActionEffectMap").msgclass
204
+ CheckResourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse").msgclass
205
+ CheckResourcesResponse::ResultEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry").msgclass
206
+ CheckResourcesResponse::ResultEntry::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Resource").msgclass
207
+ CheckResourcesResponse::ResultEntry::Meta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta").msgclass
208
+ CheckResourcesResponse::ResultEntry::Meta::EffectMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.CheckResourcesResponse.ResultEntry.Meta.EffectMeta").msgclass
209
+ PlaygroundFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundFailure").msgclass
210
+ PlaygroundFailure::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundFailure.Error").msgclass
211
+ PlaygroundValidateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundValidateResponse").msgclass
212
+ PlaygroundTestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundTestResponse").msgclass
213
+ PlaygroundTestResponse::TestResults = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundTestResponse.TestResults").msgclass
214
+ PlaygroundEvaluateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse").msgclass
215
+ PlaygroundEvaluateResponse::EvalResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse.EvalResult").msgclass
216
+ PlaygroundEvaluateResponse::EvalResultList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundEvaluateResponse.EvalResultList").msgclass
217
+ PlaygroundProxyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.PlaygroundProxyResponse").msgclass
218
+ AddOrUpdatePolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.AddOrUpdatePolicyResponse").msgclass
219
+ ListAuditLogEntriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListAuditLogEntriesResponse").msgclass
220
+ ServerInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ServerInfoResponse").msgclass
221
+ ListPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListPoliciesResponse").msgclass
222
+ GetPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.GetPolicyResponse").msgclass
223
+ AddOrUpdateSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.AddOrUpdateSchemaResponse").msgclass
224
+ ListSchemasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ListSchemasResponse").msgclass
225
+ GetSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.GetSchemaResponse").msgclass
226
+ DeleteSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.DeleteSchemaResponse").msgclass
227
+ ReloadStoreResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.response.v1.ReloadStoreResponse").msgclass
228
+ end
229
+ end
230
+ end
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: cerbos/schema/v1/schema.proto
3
+
4
+ require 'google/protobuf'
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
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("cerbos/schema/v1/schema.proto", :syntax => :proto3) do
12
+ add_message "cerbos.schema.v1.ValidationError" do
13
+ optional :path, :string, 1, json_name: "path"
14
+ optional :message, :string, 2, json_name: "message"
15
+ optional :source, :enum, 3, "cerbos.schema.v1.ValidationError.Source", json_name: "source"
16
+ end
17
+ add_enum "cerbos.schema.v1.ValidationError.Source" do
18
+ value :SOURCE_UNSPECIFIED, 0
19
+ value :SOURCE_PRINCIPAL, 1
20
+ value :SOURCE_RESOURCE, 2
21
+ 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
+ end
27
+ end
28
+
29
+ module Cerbos::Protobuf::Cerbos
30
+ module Schema
31
+ module V1
32
+ ValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.schema.v1.ValidationError").msgclass
33
+ 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
+ end
36
+ end
37
+ end
@@ -0,0 +1,21 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: cerbos/svc/v1/svc.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'cerbos/protobuf/cerbos/request/v1/request_pb'
7
+ require 'cerbos/protobuf/cerbos/response/v1/response_pb'
8
+ require 'cerbos/protobuf/google/api/annotations_pb'
9
+ require 'cerbos/protobuf/protoc-gen-openapiv2/options/annotations_pb'
10
+
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("cerbos/svc/v1/svc.proto", :syntax => :proto3) do
13
+ end
14
+ end
15
+
16
+ module Cerbos::Protobuf::Cerbos
17
+ module Svc
18
+ module V1
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,73 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
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
+
8
+ require 'grpc'
9
+ require 'cerbos/protobuf/cerbos/svc/v1/svc_pb'
10
+
11
+ module Cerbos::Protobuf::Cerbos
12
+ module Svc
13
+ module V1
14
+ module CerbosService
15
+ class Service
16
+
17
+ include ::GRPC::GenericService
18
+
19
+ self.marshal_class_method = :encode
20
+ self.unmarshal_class_method = :decode
21
+ self.service_name = 'cerbos.svc.v1.CerbosService'
22
+
23
+ rpc :CheckResourceSet, ::Cerbos::Protobuf::Cerbos::Request::V1::CheckResourceSetRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::CheckResourceSetResponse
24
+ rpc :CheckResourceBatch, ::Cerbos::Protobuf::Cerbos::Request::V1::CheckResourceBatchRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::CheckResourceBatchResponse
25
+ rpc :CheckResources, ::Cerbos::Protobuf::Cerbos::Request::V1::CheckResourcesRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::CheckResourcesResponse
26
+ rpc :ServerInfo, ::Cerbos::Protobuf::Cerbos::Request::V1::ServerInfoRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::ServerInfoResponse
27
+ rpc :PlanResources, ::Cerbos::Protobuf::Cerbos::Request::V1::PlanResourcesRequest, ::Cerbos::Protobuf::Cerbos::Response::V1::PlanResourcesResponse
28
+ end
29
+
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
+ Stub = Service.rpc_stub_class
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,99 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: cerbos/telemetry/v1/telemetry.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/duration_pb'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("cerbos/telemetry/v1/telemetry.proto", :syntax => :proto3) do
10
+ add_message "cerbos.telemetry.v1.Ping" do
11
+ optional :version, :string, 1, json_name: "version"
12
+ optional :source, :message, 2, "cerbos.telemetry.v1.Ping.Source", json_name: "source"
13
+ optional :features, :message, 3, "cerbos.telemetry.v1.Ping.Features", json_name: "features"
14
+ optional :stats, :message, 4, "cerbos.telemetry.v1.Ping.Stats", json_name: "stats"
15
+ end
16
+ add_message "cerbos.telemetry.v1.Ping.Cerbos" do
17
+ optional :version, :string, 1, json_name: "version"
18
+ optional :commit, :string, 2, json_name: "commit"
19
+ optional :build_date, :string, 3, json_name: "buildDate"
20
+ optional :module_version, :string, 4, json_name: "moduleVersion"
21
+ optional :module_checksum, :string, 5, json_name: "moduleChecksum"
22
+ end
23
+ add_message "cerbos.telemetry.v1.Ping.Source" do
24
+ optional :cerbos, :message, 1, "cerbos.telemetry.v1.Ping.Cerbos", json_name: "cerbos"
25
+ optional :os, :string, 2, json_name: "os"
26
+ optional :arch, :string, 3, json_name: "arch"
27
+ optional :num_cpus, :uint32, 4, json_name: "numCpus"
28
+ end
29
+ add_message "cerbos.telemetry.v1.Ping.Features" do
30
+ optional :audit, :message, 1, "cerbos.telemetry.v1.Ping.Features.Audit", json_name: "audit"
31
+ optional :schema, :message, 2, "cerbos.telemetry.v1.Ping.Features.Schema", json_name: "schema"
32
+ optional :admin_api, :message, 3, "cerbos.telemetry.v1.Ping.Features.AdminApi", json_name: "adminApi"
33
+ optional :storage, :message, 4, "cerbos.telemetry.v1.Ping.Features.Storage", json_name: "storage"
34
+ end
35
+ add_message "cerbos.telemetry.v1.Ping.Features.Audit" do
36
+ optional :enabled, :bool, 1, json_name: "enabled"
37
+ optional :backend, :string, 2, json_name: "backend"
38
+ end
39
+ add_message "cerbos.telemetry.v1.Ping.Features.Schema" do
40
+ optional :enforcement, :string, 1, json_name: "enforcement"
41
+ end
42
+ add_message "cerbos.telemetry.v1.Ping.Features.AdminApi" do
43
+ optional :enabled, :bool, 1, json_name: "enabled"
44
+ end
45
+ add_message "cerbos.telemetry.v1.Ping.Features.Storage" do
46
+ optional :driver, :string, 1, json_name: "driver"
47
+ oneof :store do
48
+ optional :disk, :message, 2, "cerbos.telemetry.v1.Ping.Features.Storage.Disk", json_name: "disk"
49
+ optional :git, :message, 3, "cerbos.telemetry.v1.Ping.Features.Storage.Git", json_name: "git"
50
+ optional :blob, :message, 4, "cerbos.telemetry.v1.Ping.Features.Storage.Blob", json_name: "blob"
51
+ end
52
+ end
53
+ add_message "cerbos.telemetry.v1.Ping.Features.Storage.Disk" do
54
+ optional :watch, :bool, 1, json_name: "watch"
55
+ end
56
+ add_message "cerbos.telemetry.v1.Ping.Features.Storage.Git" do
57
+ optional :protocol, :string, 1, json_name: "protocol"
58
+ optional :auth, :bool, 2, json_name: "auth"
59
+ optional :poll_interval, :message, 3, "google.protobuf.Duration", json_name: "pollInterval"
60
+ end
61
+ add_message "cerbos.telemetry.v1.Ping.Features.Storage.Blob" do
62
+ optional :provider, :string, 1, json_name: "provider"
63
+ optional :poll_interval, :message, 2, "google.protobuf.Duration", json_name: "pollInterval"
64
+ end
65
+ add_message "cerbos.telemetry.v1.Ping.Stats" do
66
+ optional :policy, :message, 1, "cerbos.telemetry.v1.Ping.Stats.Policy", json_name: "policy"
67
+ optional :schema, :message, 2, "cerbos.telemetry.v1.Ping.Stats.Schema", json_name: "schema"
68
+ end
69
+ add_message "cerbos.telemetry.v1.Ping.Stats.Policy" do
70
+ map :count, :string, :uint32, 1
71
+ map :avg_rule_count, :string, :double, 2
72
+ map :avg_condition_count, :string, :double, 3
73
+ end
74
+ add_message "cerbos.telemetry.v1.Ping.Stats.Schema" do
75
+ optional :count, :uint32, 1, json_name: "count"
76
+ end
77
+ end
78
+ end
79
+
80
+ module Cerbos::Protobuf::Cerbos
81
+ module Telemetry
82
+ module V1
83
+ Ping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping").msgclass
84
+ Ping::Cerbos = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Cerbos").msgclass
85
+ Ping::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Source").msgclass
86
+ Ping::Features = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features").msgclass
87
+ Ping::Features::Audit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features.Audit").msgclass
88
+ Ping::Features::Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features.Schema").msgclass
89
+ Ping::Features::AdminApi = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features.AdminApi").msgclass
90
+ Ping::Features::Storage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features.Storage").msgclass
91
+ Ping::Features::Storage::Disk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features.Storage.Disk").msgclass
92
+ Ping::Features::Storage::Git = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features.Storage.Git").msgclass
93
+ Ping::Features::Storage::Blob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Features.Storage.Blob").msgclass
94
+ Ping::Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Stats").msgclass
95
+ Ping::Stats::Policy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Stats.Policy").msgclass
96
+ Ping::Stats::Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cerbos.telemetry.v1.Ping.Stats.Schema").msgclass
97
+ end
98
+ end
99
+ end