aserto-authorizer 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e32471407d62a4980d843e819f6d8e87a44fff710bbe29d83cd24365dadf968
4
- data.tar.gz: 9e4e8b8f674f95e920b2bfa385d682fe8dcc628161cf206843bcbfbbd0643d75
3
+ metadata.gz: 913834d0efbf3b501d9329fafae23621ef46034f3f251230ff06b572fa85bdf0
4
+ data.tar.gz: c0495c8a1d1bc63517581765c01171f8b0dc2cc2f79404ff3404b7ee90d9a1fa
5
5
  SHA512:
6
- metadata.gz: 8f47e76eb3aabe4f315f29f2bd85f8703a99fd26fd39cad274625ef1e3e22a6feb56a5ac4dc4f4bce45ed32df4b014cedad4f98d1b8450f12e7cf4086f99d90d
7
- data.tar.gz: ac81183aa160d1a02dc6e2c3729ad3ebbb9f9c10a7d93a8d32c0abfddb288e18e878625042b54426c07ce937f37c2eb5bce1f83ef6815881b7f631c437541217
6
+ metadata.gz: 8744ccc2f8220a235fdddf0bf87db9b432fcf1d5f2395589fd58c5f541c66ab9c532a27b193b727944ed1f38ee4caa88f7419ec7ff0fa87784379a91edb983dc
7
+ data.tar.gz: 8ee0729689666355bd38efbc91a78ebc2bcf64ec61d522f873d4ef54022fd95dbecfd058fefbfec44e53df5e3e5b882990ac4a0cd8931cb74e375ce6937257be
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Aserto::Authorizer
2
2
 
3
- [![Gem Version](https://rubygems.org/gems/aserto-authorizer.svg)](https://rubygems.org/gems/aserto-authorizer)
3
+ [![Gem Version](https://badge.fury.io/rb/aserto-authorizer.svg)](https://badge.fury.io/rb/aserto-authorizer)
4
4
  [![ci](https://github.com/aserto-dev/ruby-authorizer/actions/workflows/ci.yaml/badge.svg)](https://github.com/aserto-dev/ruby-authorizer/actions/workflows/ci.yaml)
5
5
  [![slack](https://img.shields.io/badge/slack-Aserto%20Community-brightgreen)](https://asertocommunity.slack.com
6
6
  )
@@ -30,7 +30,7 @@ require 'aserto/authorizer'
30
30
  query_request = Aserto::Authorizer::V2::QueryRequest.new(
31
31
  {
32
32
  query: 'x=data',
33
- policy_context: Aserto::Authorizer::V2::Api::PolicyContext.new(
33
+ policy_instance: Aserto::Authorizer::V2::Api::PolicyInstance.new(
34
34
  { name: 'my-policy' }
35
35
  )
36
36
  }
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.4
@@ -7,6 +7,7 @@ require 'google/protobuf/struct_pb'
7
7
  require 'google/protobuf/timestamp_pb'
8
8
  require 'aserto/authorizer/v2/api/policy_context_pb'
9
9
  require 'aserto/authorizer/v2/api/identity_context_pb'
10
+ require 'aserto/authorizer/v2/api/policy_instance_pb'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("aserto/authorizer/v2/api/decision_logs.proto", :syntax => :proto3) do
@@ -19,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
20
  map :outcomes, :string, :bool, 6
20
21
  optional :resource, :message, 7, "google.protobuf.Struct", json_name: "resource"
21
22
  map :annotations, :string, :string, 8
23
+ proto3_optional :tenant_id, :string, 9, json_name: "tenantId"
22
24
  end
23
25
  add_message "aserto.authorizer.v2.api.DecisionUser" do
24
26
  optional :context, :message, 1, "aserto.authorizer.v2.api.IdentityContext", json_name: "context"
@@ -31,6 +33,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
33
  optional :registry_image, :string, 3, json_name: "registryImage"
32
34
  optional :registry_tag, :string, 4, json_name: "registryTag"
33
35
  optional :registry_digest, :string, 5, json_name: "registryDigest"
36
+ optional :policy_instance, :message, 6, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
34
37
  end
35
38
  end
36
39
  end
@@ -12,6 +12,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  proto3_optional :raw, :string, 2, json_name: "raw"
13
13
  proto3_optional :package_path, :string, 3, json_name: "packagePath"
14
14
  proto3_optional :ast, :message, 4, "google.protobuf.Value", json_name: "ast"
15
+ proto3_optional :package_root, :string, 5, json_name: "packageRoot"
15
16
  end
16
17
  end
17
18
  end
@@ -6,10 +6,8 @@ require 'google/protobuf'
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
7
  add_file("aserto/authorizer/v2/api/policy_context.proto", :syntax => :proto3) do
8
8
  add_message "aserto.authorizer.v2.api.PolicyContext" do
9
- optional :name, :string, 1, json_name: "name"
10
- optional :instance_label, :string, 2, json_name: "instanceLabel"
11
- optional :path, :string, 3, json_name: "path"
12
- repeated :decisions, :string, 4, json_name: "decisions"
9
+ optional :path, :string, 1, json_name: "path"
10
+ repeated :decisions, :string, 2, json_name: "decisions"
13
11
  end
14
12
  end
15
13
  end
@@ -0,0 +1,23 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: aserto/authorizer/v2/api/policy_instance.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("aserto/authorizer/v2/api/policy_instance.proto", :syntax => :proto3) do
8
+ add_message "aserto.authorizer.v2.api.PolicyInstance" do
9
+ optional :name, :string, 1, json_name: "name"
10
+ optional :instance_label, :string, 2, json_name: "instanceLabel"
11
+ end
12
+ end
13
+ end
14
+
15
+ module Aserto
16
+ module Authorizer
17
+ module V2
18
+ module Api
19
+ PolicyInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.api.PolicyInstance").msgclass
20
+ end
21
+ end
22
+ end
23
+ end
@@ -10,18 +10,30 @@ require 'google/protobuf/field_mask_pb'
10
10
  require 'aserto/authorizer/v2/api/identity_context_pb'
11
11
  require 'aserto/authorizer/v2/api/policy_context_pb'
12
12
  require 'aserto/authorizer/v2/api/module_pb'
13
+ require 'aserto/authorizer/v2/api/policy_instance_pb'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("aserto/authorizer/v2/authorizer.proto", :syntax => :proto3) do
17
+ add_message "aserto.authorizer.v2.InfoRequest" do
18
+ end
19
+ add_message "aserto.authorizer.v2.InfoResponse" do
20
+ optional :version, :string, 1, json_name: "version"
21
+ optional :commit, :string, 2, json_name: "commit"
22
+ optional :date, :string, 3, json_name: "date"
23
+ optional :os, :string, 4, json_name: "os"
24
+ optional :arch, :string, 5, json_name: "arch"
25
+ end
16
26
  add_message "aserto.authorizer.v2.GetPolicyRequest" do
17
27
  optional :id, :string, 1, json_name: "id"
18
28
  optional :field_mask, :message, 2, "google.protobuf.FieldMask", json_name: "fieldMask"
29
+ proto3_optional :policy_instance, :message, 3, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
19
30
  end
20
31
  add_message "aserto.authorizer.v2.GetPolicyResponse" do
21
32
  optional :result, :message, 1, "aserto.authorizer.v2.api.Module", json_name: "result"
22
33
  end
23
34
  add_message "aserto.authorizer.v2.ListPoliciesRequest" do
24
35
  optional :field_mask, :message, 1, "google.protobuf.FieldMask", json_name: "fieldMask"
36
+ proto3_optional :policy_instance, :message, 2, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
25
37
  end
26
38
  add_message "aserto.authorizer.v2.ListPoliciesResponse" do
27
39
  repeated :result, :message, 1, "aserto.authorizer.v2.api.Module", json_name: "result"
@@ -31,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
43
  optional :identity_context, :message, 2, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
32
44
  optional :options, :message, 3, "aserto.authorizer.v2.DecisionTreeOptions", json_name: "options"
33
45
  optional :resource_context, :message, 4, "google.protobuf.Struct", json_name: "resourceContext"
46
+ proto3_optional :policy_instance, :message, 5, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
34
47
  end
35
48
  add_message "aserto.authorizer.v2.DecisionTreeOptions" do
36
49
  optional :path_separator, :enum, 1, "aserto.authorizer.v2.PathSeparator", json_name: "pathSeparator"
@@ -43,6 +56,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
56
  optional :policy_context, :message, 1, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
44
57
  optional :identity_context, :message, 2, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
45
58
  optional :resource_context, :message, 3, "google.protobuf.Struct", json_name: "resourceContext"
59
+ proto3_optional :policy_instance, :message, 4, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
46
60
  end
47
61
  add_message "aserto.authorizer.v2.Decision" do
48
62
  optional :decision, :string, 1, json_name: "decision"
@@ -64,6 +78,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
64
78
  proto3_optional :policy_context, :message, 4, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
65
79
  proto3_optional :identity_context, :message, 5, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
66
80
  proto3_optional :resource_context, :message, 6, "google.protobuf.Struct", json_name: "resourceContext"
81
+ proto3_optional :policy_instance, :message, 7, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
67
82
  end
68
83
  add_message "aserto.authorizer.v2.CompileRequest" do
69
84
  optional :query, :string, 1, json_name: "query"
@@ -74,6 +89,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
74
89
  proto3_optional :policy_context, :message, 6, "aserto.authorizer.v2.api.PolicyContext", json_name: "policyContext"
75
90
  proto3_optional :identity_context, :message, 7, "aserto.authorizer.v2.api.IdentityContext", json_name: "identityContext"
76
91
  proto3_optional :resource_context, :message, 8, "google.protobuf.Struct", json_name: "resourceContext"
92
+ proto3_optional :policy_instance, :message, 9, "aserto.authorizer.v2.api.PolicyInstance", json_name: "policyInstance"
77
93
  end
78
94
  add_message "aserto.authorizer.v2.CompileResponse" do
79
95
  optional :result, :message, 1, "google.protobuf.Struct", json_name: "result"
@@ -105,6 +121,8 @@ end
105
121
  module Aserto
106
122
  module Authorizer
107
123
  module V2
124
+ InfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.InfoRequest").msgclass
125
+ InfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.InfoResponse").msgclass
108
126
  GetPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.GetPolicyRequest").msgclass
109
127
  GetPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.GetPolicyResponse").msgclass
110
128
  ListPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.authorizer.v2.ListPoliciesRequest").msgclass
@@ -22,6 +22,7 @@ module Aserto
22
22
  rpc :Compile, ::Aserto::Authorizer::V2::CompileRequest, ::Aserto::Authorizer::V2::CompileResponse
23
23
  rpc :ListPolicies, ::Aserto::Authorizer::V2::ListPoliciesRequest, ::Aserto::Authorizer::V2::ListPoliciesResponse
24
24
  rpc :GetPolicy, ::Aserto::Authorizer::V2::GetPolicyRequest, ::Aserto::Authorizer::V2::GetPolicyResponse
25
+ rpc :Info, ::Aserto::Authorizer::V2::InfoRequest, ::Aserto::Authorizer::V2::InfoResponse
25
26
  end
26
27
 
27
28
  Stub = Service.rpc_stub_class
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  map :responses, :string, :message, 10, "grpc.gateway.protoc_gen_openapiv2.options.Response"
19
19
  optional :security_definitions, :message, 11, "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions", json_name: "securityDefinitions"
20
20
  repeated :security, :message, 12, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", json_name: "security"
21
+ repeated :tags, :message, 13, "grpc.gateway.protoc_gen_openapiv2.options.Tag", json_name: "tags"
21
22
  optional :external_docs, :message, 14, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
22
23
  map :extensions, :string, :message, 15, "google.protobuf.Value"
23
24
  end
@@ -34,6 +35,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
34
35
  optional :deprecated, :bool, 11, json_name: "deprecated"
35
36
  repeated :security, :message, 12, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement", json_name: "security"
36
37
  map :extensions, :string, :message, 13, "google.protobuf.Value"
38
+ optional :parameters, :message, 14, "grpc.gateway.protoc_gen_openapiv2.options.Parameters", json_name: "parameters"
39
+ end
40
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.Parameters" do
41
+ repeated :headers, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter", json_name: "headers"
42
+ end
43
+ add_message "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter" do
44
+ optional :name, :string, 1, json_name: "name"
45
+ optional :description, :string, 2, json_name: "description"
46
+ optional :type, :enum, 3, "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type", json_name: "type"
47
+ optional :format, :string, 4, json_name: "format"
48
+ optional :required, :bool, 5, json_name: "required"
49
+ end
50
+ add_enum "grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type" do
51
+ value :UNKNOWN, 0
52
+ value :STRING, 1
53
+ value :NUMBER, 2
54
+ value :INTEGER, 3
55
+ value :BOOLEAN, 4
37
56
  end
38
57
  add_message "grpc.gateway.protoc_gen_openapiv2.options.Header" do
39
58
  optional :description, :string, 1, json_name: "description"
@@ -120,8 +139,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
120
139
  value :STRING, 7
121
140
  end
122
141
  add_message "grpc.gateway.protoc_gen_openapiv2.options.Tag" do
142
+ optional :name, :string, 1, json_name: "name"
123
143
  optional :description, :string, 2, json_name: "description"
124
144
  optional :external_docs, :message, 3, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
145
+ map :extensions, :string, :message, 4, "google.protobuf.Value"
125
146
  end
126
147
  add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" do
127
148
  map :security, :string, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"
@@ -180,6 +201,9 @@ module Grpc
180
201
  module Options
181
202
  Swagger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Swagger").msgclass
182
203
  Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Operation").msgclass
204
+ Parameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Parameters").msgclass
205
+ HeaderParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter").msgclass
206
+ HeaderParameter::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type").enummodule
183
207
  Header = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Header").msgclass
184
208
  Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Response").msgclass
185
209
  Info = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("grpc.gateway.protoc_gen_openapiv2.options.Info").msgclass
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aserto-authorizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aserto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-05 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -100,6 +100,7 @@ files:
100
100
  - generated/aserto/authorizer/v2/api/identity_context_pb.rb
101
101
  - generated/aserto/authorizer/v2/api/module_pb.rb
102
102
  - generated/aserto/authorizer/v2/api/policy_context_pb.rb
103
+ - generated/aserto/authorizer/v2/api/policy_instance_pb.rb
103
104
  - generated/aserto/authorizer/v2/authorizer_pb.rb
104
105
  - generated/aserto/authorizer/v2/authorizer_services_pb.rb
105
106
  - generated/google/api/annotations_pb.rb
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
134
  - !ruby/object:Gem::Version
134
135
  version: '0'
135
136
  requirements: []
136
- rubygems_version: 3.3.7
137
+ rubygems_version: 3.4.10
137
138
  signing_key:
138
139
  specification_version: 4
139
140
  summary: Aserto Authorizer GRPC Client