strongdm 3.6.1 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git/ORIG_HEAD +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +3 -3
- data/.git/logs/refs/heads/master +2 -2
- data/.git/logs/refs/remotes/origin/HEAD +1 -1
- data/.git/objects/pack/{pack-c0eff6575c38c9865988c2b59ce4060fff518355.idx → pack-2d53a487ade528ef84cbb5c91cde76bf875d9e95.idx} +0 -0
- data/.git/objects/pack/{pack-c0eff6575c38c9865988c2b59ce4060fff518355.pack → pack-2d53a487ade528ef84cbb5c91cde76bf875d9e95.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +311 -0
- data/lib/errors/errors.rb +1 -1
- data/lib/grpc/account_attachments_history_pb.rb +48 -0
- data/lib/grpc/account_attachments_history_services_pb.rb +37 -0
- data/lib/grpc/account_grants_history_pb.rb +48 -0
- data/lib/grpc/account_grants_history_services_pb.rb +37 -0
- data/lib/grpc/account_permissions_pb.rb +48 -0
- data/lib/grpc/account_permissions_services_pb.rb +38 -0
- data/lib/grpc/account_resources_pb.rb +49 -0
- data/lib/grpc/account_resources_services_pb.rb +38 -0
- data/lib/grpc/accounts_history_pb.rb +48 -0
- data/lib/grpc/accounts_history_services_pb.rb +37 -0
- data/lib/grpc/activities_pb.rb +77 -0
- data/lib/grpc/activities_services_pb.rb +41 -0
- data/lib/grpc/drivers_pb.rb +66 -0
- data/lib/grpc/nodes_history_pb.rb +48 -0
- data/lib/grpc/nodes_history_services_pb.rb +37 -0
- data/lib/grpc/organization_history_pb.rb +74 -0
- data/lib/grpc/organization_history_services_pb.rb +37 -0
- data/lib/grpc/plumbing.rb +1106 -1
- data/lib/grpc/queries_pb.rb +67 -0
- data/lib/grpc/queries_services_pb.rb +39 -0
- data/lib/grpc/remote_identities_history_pb.rb +48 -0
- data/lib/grpc/remote_identities_history_services_pb.rb +37 -0
- data/lib/grpc/remote_identity_groups_history_pb.rb +48 -0
- data/lib/grpc/remote_identity_groups_history_services_pb.rb +37 -0
- data/lib/grpc/replays_pb.rb +50 -0
- data/lib/grpc/replays_services_pb.rb +38 -0
- data/lib/grpc/resources_history_pb.rb +48 -0
- data/lib/grpc/resources_history_services_pb.rb +37 -0
- data/lib/grpc/role_resources_history_pb.rb +48 -0
- data/lib/grpc/role_resources_history_services_pb.rb +37 -0
- data/lib/grpc/role_resources_pb.rb +46 -0
- data/lib/grpc/role_resources_services_pb.rb +38 -0
- data/lib/grpc/roles_history_pb.rb +48 -0
- data/lib/grpc/roles_history_services_pb.rb +37 -0
- data/lib/grpc/secret_stores_history_pb.rb +48 -0
- data/lib/grpc/secret_stores_history_services_pb.rb +37 -0
- data/lib/models/porcelain.rb +1177 -1
- data/lib/strongdm.rb +220 -2
- data/lib/svc.rb +1556 -121
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +38 -4
@@ -0,0 +1,49 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# source: account_resources.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "google/protobuf/timestamp_pb"
|
21
|
+
require "options_pb"
|
22
|
+
require "spec_pb"
|
23
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
24
|
+
add_file("account_resources.proto", :syntax => :proto3) do
|
25
|
+
add_message "v1.AccountResourceListRequest" do
|
26
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
27
|
+
optional :filter, :string, 2
|
28
|
+
end
|
29
|
+
add_message "v1.AccountResourceListResponse" do
|
30
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
31
|
+
repeated :account_resources, :message, 2, "v1.AccountResource"
|
32
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
33
|
+
end
|
34
|
+
add_message "v1.AccountResource" do
|
35
|
+
optional :account_id, :string, 1
|
36
|
+
optional :resource_id, :string, 2
|
37
|
+
optional :granted_at, :message, 3, "google.protobuf.Timestamp"
|
38
|
+
optional :expires_at, :message, 4, "google.protobuf.Timestamp"
|
39
|
+
optional :role_id, :string, 5
|
40
|
+
optional :account_grant_id, :string, 6
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
module V1
|
46
|
+
AccountResourceListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountResourceListRequest").msgclass
|
47
|
+
AccountResourceListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountResourceListResponse").msgclass
|
48
|
+
AccountResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountResource").msgclass
|
49
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# Source: account_resources.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "account_resources_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module AccountResources
|
23
|
+
# AccountResources enumerates the resources to which accounts have access.
|
24
|
+
# The AccountResources service is read-only.
|
25
|
+
class Service
|
26
|
+
include GRPC::GenericService
|
27
|
+
|
28
|
+
self.marshal_class_method = :encode
|
29
|
+
self.unmarshal_class_method = :decode
|
30
|
+
self.service_name = "v1.AccountResources"
|
31
|
+
|
32
|
+
# List gets a list of AccountResource records matching a given set of criteria.
|
33
|
+
rpc :List, V1::AccountResourceListRequest, V1::AccountResourceListResponse
|
34
|
+
end
|
35
|
+
|
36
|
+
Stub = Service.rpc_stub_class
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# source: accounts_history.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "google/protobuf/timestamp_pb"
|
21
|
+
require "accounts_pb"
|
22
|
+
require "options_pb"
|
23
|
+
require "spec_pb"
|
24
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
25
|
+
add_file("accounts_history.proto", :syntax => :proto3) do
|
26
|
+
add_message "v1.AccountHistoryListRequest" do
|
27
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
28
|
+
optional :filter, :string, 2
|
29
|
+
end
|
30
|
+
add_message "v1.AccountHistoryListResponse" do
|
31
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
32
|
+
repeated :history, :message, 2, "v1.AccountHistory"
|
33
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
34
|
+
end
|
35
|
+
add_message "v1.AccountHistory" do
|
36
|
+
optional :activity_id, :string, 1
|
37
|
+
optional :timestamp, :message, 2, "google.protobuf.Timestamp"
|
38
|
+
optional :account, :message, 3, "v1.Account"
|
39
|
+
optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module V1
|
45
|
+
AccountHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountHistoryListRequest").msgclass
|
46
|
+
AccountHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountHistoryListResponse").msgclass
|
47
|
+
AccountHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccountHistory").msgclass
|
48
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# Source: accounts_history.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "accounts_history_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module AccountsHistory
|
23
|
+
# AccountsHistory records all changes to the state of an Account.
|
24
|
+
class Service
|
25
|
+
include GRPC::GenericService
|
26
|
+
|
27
|
+
self.marshal_class_method = :encode
|
28
|
+
self.unmarshal_class_method = :decode
|
29
|
+
self.service_name = "v1.AccountsHistory"
|
30
|
+
|
31
|
+
# List gets a list of AccountHistory records matching a given set of criteria.
|
32
|
+
rpc :List, V1::AccountHistoryListRequest, V1::AccountHistoryListResponse
|
33
|
+
end
|
34
|
+
|
35
|
+
Stub = Service.rpc_stub_class
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# source: activities.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "google/protobuf/timestamp_pb"
|
21
|
+
require "options_pb"
|
22
|
+
require "spec_pb"
|
23
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
24
|
+
add_file("activities.proto", :syntax => :proto3) do
|
25
|
+
add_message "v1.ActivityGetRequest" do
|
26
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
27
|
+
optional :id, :string, 2
|
28
|
+
end
|
29
|
+
add_message "v1.ActivityGetResponse" do
|
30
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
31
|
+
optional :activity, :message, 2, "v1.Activity"
|
32
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
33
|
+
end
|
34
|
+
add_message "v1.ActivityListRequest" do
|
35
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
36
|
+
optional :filter, :string, 2
|
37
|
+
end
|
38
|
+
add_message "v1.ActivityListResponse" do
|
39
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
40
|
+
repeated :activities, :message, 2, "v1.Activity"
|
41
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
42
|
+
end
|
43
|
+
add_message "v1.Activity" do
|
44
|
+
optional :id, :string, 1
|
45
|
+
optional :verb, :string, 2
|
46
|
+
optional :description, :string, 3
|
47
|
+
optional :completed_at, :message, 4, "google.protobuf.Timestamp"
|
48
|
+
repeated :entities, :message, 5, "v1.ActivityEntity"
|
49
|
+
optional :ip_address, :string, 6
|
50
|
+
optional :actor, :message, 7, "v1.ActivityActor"
|
51
|
+
end
|
52
|
+
add_message "v1.ActivityEntity" do
|
53
|
+
optional :id, :string, 1
|
54
|
+
optional :type, :string, 2
|
55
|
+
optional :name, :string, 3
|
56
|
+
optional :email, :string, 4
|
57
|
+
optional :external_id, :string, 5
|
58
|
+
end
|
59
|
+
add_message "v1.ActivityActor" do
|
60
|
+
optional :id, :string, 1
|
61
|
+
optional :email, :string, 2
|
62
|
+
optional :first_name, :string, 3
|
63
|
+
optional :last_name, :string, 4
|
64
|
+
optional :activity_external_id, :string, 5
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
module V1
|
70
|
+
ActivityGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ActivityGetRequest").msgclass
|
71
|
+
ActivityGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ActivityGetResponse").msgclass
|
72
|
+
ActivityListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ActivityListRequest").msgclass
|
73
|
+
ActivityListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ActivityListResponse").msgclass
|
74
|
+
Activity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Activity").msgclass
|
75
|
+
ActivityEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ActivityEntity").msgclass
|
76
|
+
ActivityActor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ActivityActor").msgclass
|
77
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# Source: activities.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "activities_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module Activities
|
23
|
+
# An Activity is a record of an action taken against a strongDM deployment, e.g.
|
24
|
+
# a user creation, resource deletion, sso configuration change, etc. The Activities
|
25
|
+
# service is read-only.
|
26
|
+
class Service
|
27
|
+
include GRPC::GenericService
|
28
|
+
|
29
|
+
self.marshal_class_method = :encode
|
30
|
+
self.unmarshal_class_method = :decode
|
31
|
+
self.service_name = "v1.Activities"
|
32
|
+
|
33
|
+
# Get reads one Activity by ID.
|
34
|
+
rpc :Get, V1::ActivityGetRequest, V1::ActivityGetResponse
|
35
|
+
# List gets a list of Activities matching a given set of criteria.
|
36
|
+
rpc :List, V1::ActivityListRequest, V1::ActivityListResponse
|
37
|
+
end
|
38
|
+
|
39
|
+
Stub = Service.rpc_stub_class
|
40
|
+
end
|
41
|
+
end
|