aserto-authorizer 0.0.2 → 0.0.3

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: 58478e625485144fa0617afae93d88a2c25b43927abfa623ddf75a00d73a39b0
4
+ data.tar.gz: 5f1ceb4ee711b8301aafd7204bbc1c2ff553012e20d20580e5d6d6891475d90a
5
5
  SHA512:
6
- metadata.gz: 8f47e76eb3aabe4f315f29f2bd85f8703a99fd26fd39cad274625ef1e3e22a6feb56a5ac4dc4f4bce45ed32df4b014cedad4f98d1b8450f12e7cf4086f99d90d
7
- data.tar.gz: ac81183aa160d1a02dc6e2c3729ad3ebbb9f9c10a7d93a8d32c0abfddb288e18e878625042b54426c07ce937f37c2eb5bce1f83ef6815881b7f631c437541217
6
+ metadata.gz: 41b9987ac937e082a2f8865a0360b04b84a47d198956a130f8eaea4e4808b5114afc60f27ac56c79081e169e9a435155cda0e542a01417f34acb2f958b1d8069
7
+ data.tar.gz: 42a6d30badaa54be727a78f72fbab4b6c1b8ee17e70029b0b958f35ee2cd1a7dad93b4c3311a7ca0077d3479decfaa2abd89e069e885ed214abe32ad41e324d6
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.3
@@ -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
@@ -120,8 +121,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
120
121
  value :STRING, 7
121
122
  end
122
123
  add_message "grpc.gateway.protoc_gen_openapiv2.options.Tag" do
124
+ optional :name, :string, 1, json_name: "name"
123
125
  optional :description, :string, 2, json_name: "description"
124
126
  optional :external_docs, :message, 3, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation", json_name: "externalDocs"
127
+ map :extensions, :string, :message, 4, "google.protobuf.Value"
125
128
  end
126
129
  add_message "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" do
127
130
  map :security, :string, :message, 1, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"
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.3
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: 2022-10-20 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