strongdm 3.14.2 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-f99e555c6751778a5cf0b0e68445bab0425bb5c1.idx → pack-f6e5d86cdaed2ee289cb0ee65c1f3fc483d1465c.idx} +0 -0
- data/.git/objects/pack/{pack-f99e555c6751778a5cf0b0e68445bab0425bb5c1.pack → pack-f6e5d86cdaed2ee289cb0ee65c1f3fc483d1465c.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +3 -3
- data/lib/grpc/accounts_pb.rb +11 -0
- data/lib/grpc/drivers_pb.rb +44 -0
- data/lib/grpc/plumbing.rb +148 -0
- data/lib/models/porcelain.rb +174 -0
- data/lib/strongdm.rb +1 -1
- data/lib/svc.rb +2 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e9d6210e206fd24163686f6640558ab65468cf63612d59aa5347517a1433877
|
|
4
|
+
data.tar.gz: d97ac80d397e72b2ff2a7829ef9260933afdf653b51f40373c5dd8b23d14de0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a333b36f152e565441b369703a38dd3b2d3b068dc8ae1afd4eb07fa1605c2d75bb9bfba98bb98b2c1b500c5e1777833145fc0d3e37f993d3ea5025aef2a800b
|
|
7
|
+
data.tar.gz: '09e21b7881b6e8206fbe6f7333fa95deab3496ef5a036ff18d745c9bc64d9d060715c48ffcab771734424c1f3fc432e7f679e3bf419d6ef478c11c4785da3bda'
|
data/.git/ORIG_HEAD
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6cd69f8e98657b0aa1c55786add9519085361ef2
|
data/.git/index
CHANGED
|
Binary file
|
data/.git/logs/HEAD
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
0000000000000000000000000000000000000000 6cd69f8e98657b0aa1c55786add9519085361ef2 root <root@dea3a5f3d225.(none)> 1685576787 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
2
|
+
6cd69f8e98657b0aa1c55786add9519085361ef2 6cd69f8e98657b0aa1c55786add9519085361ef2 root <root@dea3a5f3d225.(none)> 1685576787 +0000 checkout: moving from master to master
|
|
3
|
+
6cd69f8e98657b0aa1c55786add9519085361ef2 6e8ee132772d2663157a4263aa15ddffeac7486f root <root@dea3a5f3d225.(none)> 1685576787 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
2
|
-
|
|
1
|
+
0000000000000000000000000000000000000000 6cd69f8e98657b0aa1c55786add9519085361ef2 root <root@dea3a5f3d225.(none)> 1685576787 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
2
|
+
6cd69f8e98657b0aa1c55786add9519085361ef2 6e8ee132772d2663157a4263aa15ddffeac7486f root <root@dea3a5f3d225.(none)> 1685576787 +0000 merge origin/development: Fast-forward
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
1
|
+
0000000000000000000000000000000000000000 6cd69f8e98657b0aa1c55786add9519085361ef2 root <root@dea3a5f3d225.(none)> 1685576787 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
Binary file
|
|
Binary file
|
data/.git/packed-refs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pack-refs with: peeled fully-peeled sorted
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
6e8ee132772d2663157a4263aa15ddffeac7486f refs/remotes/origin/development
|
|
3
|
+
6cd69f8e98657b0aa1c55786add9519085361ef2 refs/remotes/origin/master
|
|
4
4
|
2e4fe8087177ddea9b3991ca499f758384839c89 refs/tags/untagged-84fd83a4484c785cce63
|
|
5
5
|
04f604866214fab4d5663b5171a3e596331577bd refs/tags/v0.9.4
|
|
6
6
|
6f9a7b75b345c65fb554884907b7060680c807b7 refs/tags/v0.9.5
|
|
@@ -47,6 +47,7 @@ a77792a22449d0029bebb3f66fc23f63e54a8e90 refs/tags/v3.11.0
|
|
|
47
47
|
f880c51210aa33186d71d9b463ddbd587ef3e4fd refs/tags/v3.12.0
|
|
48
48
|
9010771bf3315cb08f6421f7fd8290741d029f79 refs/tags/v3.13.0
|
|
49
49
|
8192d0d63f6b0357b343ee32a9e436bcaad28ebe refs/tags/v3.14.0
|
|
50
|
+
6cd69f8e98657b0aa1c55786add9519085361ef2 refs/tags/v3.14.2
|
|
50
51
|
40d185ce8d4f4375411706886f6fbbaa5493bef6 refs/tags/v3.2.0
|
|
51
52
|
dd6a8a74ad5675831f42e3a820208e96f7361f80 refs/tags/v3.2.1
|
|
52
53
|
09ee1a3be370a7b5e21709a7857d0f189f23da8b refs/tags/v3.2.2
|
data/.git/refs/heads/master
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6e8ee132772d2663157a4263aa15ddffeac7486f
|
data/lib/constants.rb
CHANGED
|
@@ -242,6 +242,7 @@ module SDM
|
|
|
242
242
|
ACCESS_REQUEST_TO_RESOURCE_DENIED = "access request to resource denied"
|
|
243
243
|
ACCESS_REQUEST_TO_RESOURCE_TIMED_OUT = "access request to resource timed out"
|
|
244
244
|
ACCESS_REQUEST_TO_RESOURCE_GRANTED = "access request to resource granted"
|
|
245
|
+
ACCESS_REQUEST_TO_RESOURCE_GRANTED_AUTOMATICALLY = "access request to resource granted automatically"
|
|
245
246
|
WORKFLOW_ADDED = "access workflow added"
|
|
246
247
|
WORKFLOW_DELETED = "access workflow deleted"
|
|
247
248
|
WORKFLOW_RESOURCE_ASSIGNED = "resource assigned to workflow"
|
|
@@ -249,9 +250,7 @@ module SDM
|
|
|
249
250
|
WORKFLOW_RESOURCE_MULTIPLE_ASSIGNED = "multiple resources assigned to workflow"
|
|
250
251
|
WORKFLOW_RESOURCE_MULTIPLE_UNASSIGNED = "multiple resources unassigned from workflow"
|
|
251
252
|
WORKFLOW_ROLES_UPDATED = "workflow roles updated"
|
|
252
|
-
|
|
253
|
-
WORKFLOW_NOTIFICATION_OPTION_REMOVED = "workflow notification type removed"
|
|
254
|
-
WORKFLOW_NOTIFICATION_OPTIONS_UPDATED = "workflow approvers updated"
|
|
253
|
+
WORKFLOW_APPROVERS_UPDATED = "workflow approvers updated"
|
|
255
254
|
WORKFLOW_NAME_UPDATED = "workflow name updated"
|
|
256
255
|
WORKFLOW_DESCRIPTION_UPDATED = "workflow description updated"
|
|
257
256
|
WORKFLOW_AUTO_GRANT_UPDATED = "workflow auto grant updated"
|
|
@@ -344,6 +343,7 @@ module SDM
|
|
|
344
343
|
GRANT_READ = "grant:read"
|
|
345
344
|
GRANT_WRITE = "grant:write"
|
|
346
345
|
REPORT_READ = "report:read"
|
|
346
|
+
BILLING_READ = "billing:read"
|
|
347
347
|
end
|
|
348
348
|
|
|
349
349
|
# Query Categories, all the categories of resource against which queries are logged.
|
data/lib/grpc/accounts_pb.rb
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
require "google/protobuf"
|
|
19
19
|
|
|
20
|
+
require "google/protobuf/timestamp_pb"
|
|
20
21
|
require "options_pb"
|
|
21
22
|
require "spec_pb"
|
|
22
23
|
require "tags_pb"
|
|
@@ -72,6 +73,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
72
73
|
oneof :account do
|
|
73
74
|
optional :user, :message, 1, "v1.User"
|
|
74
75
|
optional :service, :message, 2, "v1.Service"
|
|
76
|
+
optional :token, :message, 3, "v1.Token"
|
|
75
77
|
end
|
|
76
78
|
end
|
|
77
79
|
add_message "v1.User" do
|
|
@@ -91,6 +93,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
91
93
|
optional :suspended, :bool, 3
|
|
92
94
|
optional :tags, :message, 4, "v1.Tags"
|
|
93
95
|
end
|
|
96
|
+
add_message "v1.Token" do
|
|
97
|
+
optional :id, :string, 1
|
|
98
|
+
optional :name, :string, 2
|
|
99
|
+
optional :suspended, :bool, 3
|
|
100
|
+
optional :tags, :message, 4, "v1.Tags"
|
|
101
|
+
optional :rekeyed, :message, 5, "google.protobuf.Timestamp"
|
|
102
|
+
optional :deadline, :message, 6, "google.protobuf.Timestamp"
|
|
103
|
+
end
|
|
94
104
|
end
|
|
95
105
|
end
|
|
96
106
|
|
|
@@ -108,4 +118,5 @@ module V1
|
|
|
108
118
|
Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Account").msgclass
|
|
109
119
|
User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.User").msgclass
|
|
110
120
|
Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Service").msgclass
|
|
121
|
+
Token = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Token").msgclass
|
|
111
122
|
end
|
data/lib/grpc/drivers_pb.rb
CHANGED
|
@@ -91,6 +91,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
91
91
|
optional :redis, :message, 1600, "v1.Redis"
|
|
92
92
|
optional :redshift, :message, 1304, "v1.Redshift"
|
|
93
93
|
optional :sql_server, :message, 1800, "v1.SQLServer"
|
|
94
|
+
optional :sql_server_azure_ad, :message, 1805, "v1.SQLServerAzureAD"
|
|
95
|
+
optional :sql_server_kerberos_ad, :message, 1810, "v1.SQLServerKerberosAD"
|
|
94
96
|
optional :ssh, :message, 1900, "v1.SSH"
|
|
95
97
|
optional :ssh_cert, :message, 1901, "v1.SSHCert"
|
|
96
98
|
optional :ssh_customer_key, :message, 1902, "v1.SSHCustomerKey"
|
|
@@ -1237,6 +1239,46 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
1237
1239
|
optional :schema, :string, 6
|
|
1238
1240
|
optional :username, :string, 2
|
|
1239
1241
|
end
|
|
1242
|
+
add_message "v1.SQLServerAzureAD" do
|
|
1243
|
+
optional :id, :string, 32768
|
|
1244
|
+
optional :name, :string, 32769
|
|
1245
|
+
optional :healthy, :bool, 32770
|
|
1246
|
+
optional :tags, :message, 32771, "v1.Tags"
|
|
1247
|
+
optional :secret_store_id, :string, 32772
|
|
1248
|
+
optional :egress_filter, :string, 32773
|
|
1249
|
+
optional :bind_interface, :string, 32774
|
|
1250
|
+
optional :subdomain, :string, 32775
|
|
1251
|
+
optional :client_id, :string, 2
|
|
1252
|
+
optional :database, :string, 4
|
|
1253
|
+
optional :hostname, :string, 1
|
|
1254
|
+
optional :override_database, :bool, 8
|
|
1255
|
+
optional :port, :int32, 7
|
|
1256
|
+
optional :port_override, :int32, 5
|
|
1257
|
+
optional :schema, :string, 6
|
|
1258
|
+
optional :secret, :string, 3
|
|
1259
|
+
optional :tenant_id, :string, 9
|
|
1260
|
+
end
|
|
1261
|
+
add_message "v1.SQLServerKerberosAD" do
|
|
1262
|
+
optional :id, :string, 32768
|
|
1263
|
+
optional :name, :string, 32769
|
|
1264
|
+
optional :healthy, :bool, 32770
|
|
1265
|
+
optional :tags, :message, 32771, "v1.Tags"
|
|
1266
|
+
optional :secret_store_id, :string, 32772
|
|
1267
|
+
optional :egress_filter, :string, 32773
|
|
1268
|
+
optional :bind_interface, :string, 32774
|
|
1269
|
+
optional :subdomain, :string, 32775
|
|
1270
|
+
optional :database, :string, 4
|
|
1271
|
+
optional :hostname, :string, 1
|
|
1272
|
+
optional :keytab, :string, 3
|
|
1273
|
+
optional :krb_config, :string, 9
|
|
1274
|
+
optional :override_database, :bool, 8
|
|
1275
|
+
optional :port, :int32, 7
|
|
1276
|
+
optional :port_override, :int32, 5
|
|
1277
|
+
optional :realm, :string, 11
|
|
1278
|
+
optional :schema, :string, 6
|
|
1279
|
+
optional :server_spn, :string, 10
|
|
1280
|
+
optional :username, :string, 2
|
|
1281
|
+
end
|
|
1240
1282
|
add_message "v1.SSH" do
|
|
1241
1283
|
optional :id, :string, 32768
|
|
1242
1284
|
optional :name, :string, 32769
|
|
@@ -1470,6 +1512,8 @@ module V1
|
|
|
1470
1512
|
Redis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Redis").msgclass
|
|
1471
1513
|
Redshift = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Redshift").msgclass
|
|
1472
1514
|
SQLServer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SQLServer").msgclass
|
|
1515
|
+
SQLServerAzureAD = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SQLServerAzureAD").msgclass
|
|
1516
|
+
SQLServerKerberosAD = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SQLServerKerberosAD").msgclass
|
|
1473
1517
|
SSH = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSH").msgclass
|
|
1474
1518
|
SSHCert = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSHCert").msgclass
|
|
1475
1519
|
SSHCustomerKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SSHCustomerKey").msgclass
|
data/lib/grpc/plumbing.rb
CHANGED
|
@@ -6883,6 +6883,12 @@ module SDM
|
|
|
6883
6883
|
if porcelain.instance_of? SQLServer
|
|
6884
6884
|
plumbing.sql_server = convert_sql_server_to_plumbing(porcelain)
|
|
6885
6885
|
end
|
|
6886
|
+
if porcelain.instance_of? SQLServerAzureAD
|
|
6887
|
+
plumbing.sql_server_azure_ad = convert_sql_server_azure_ad_to_plumbing(porcelain)
|
|
6888
|
+
end
|
|
6889
|
+
if porcelain.instance_of? SQLServerKerberosAD
|
|
6890
|
+
plumbing.sql_server_kerberos_ad = convert_sql_server_kerberos_ad_to_plumbing(porcelain)
|
|
6891
|
+
end
|
|
6886
6892
|
if porcelain.instance_of? SSH
|
|
6887
6893
|
plumbing.ssh = convert_ssh_to_plumbing(porcelain)
|
|
6888
6894
|
end
|
|
@@ -7124,6 +7130,12 @@ module SDM
|
|
|
7124
7130
|
if plumbing.sql_server != nil
|
|
7125
7131
|
return convert_sql_server_to_porcelain(plumbing.sql_server)
|
|
7126
7132
|
end
|
|
7133
|
+
if plumbing.sql_server_azure_ad != nil
|
|
7134
|
+
return convert_sql_server_azure_ad_to_porcelain(plumbing.sql_server_azure_ad)
|
|
7135
|
+
end
|
|
7136
|
+
if plumbing.sql_server_kerberos_ad != nil
|
|
7137
|
+
return convert_sql_server_kerberos_ad_to_porcelain(plumbing.sql_server_kerberos_ad)
|
|
7138
|
+
end
|
|
7127
7139
|
if plumbing.ssh != nil
|
|
7128
7140
|
return convert_ssh_to_porcelain(plumbing.ssh)
|
|
7129
7141
|
end
|
|
@@ -7728,6 +7740,142 @@ module SDM
|
|
|
7728
7740
|
end
|
|
7729
7741
|
items
|
|
7730
7742
|
end
|
|
7743
|
+
def self.convert_sql_server_azure_ad_to_porcelain(plumbing)
|
|
7744
|
+
if plumbing == nil
|
|
7745
|
+
return nil
|
|
7746
|
+
end
|
|
7747
|
+
porcelain = SQLServerAzureAD.new()
|
|
7748
|
+
porcelain.bind_interface = (plumbing.bind_interface)
|
|
7749
|
+
porcelain.client_id = (plumbing.client_id)
|
|
7750
|
+
porcelain.database = (plumbing.database)
|
|
7751
|
+
porcelain.egress_filter = (plumbing.egress_filter)
|
|
7752
|
+
porcelain.healthy = (plumbing.healthy)
|
|
7753
|
+
porcelain.hostname = (plumbing.hostname)
|
|
7754
|
+
porcelain.id = (plumbing.id)
|
|
7755
|
+
porcelain.name = (plumbing.name)
|
|
7756
|
+
porcelain.override_database = (plumbing.override_database)
|
|
7757
|
+
porcelain.port = (plumbing.port)
|
|
7758
|
+
porcelain.port_override = (plumbing.port_override)
|
|
7759
|
+
porcelain.schema = (plumbing.schema)
|
|
7760
|
+
porcelain.secret = (plumbing.secret)
|
|
7761
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
|
7762
|
+
porcelain.subdomain = (plumbing.subdomain)
|
|
7763
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
|
7764
|
+
porcelain.tenant_id = (plumbing.tenant_id)
|
|
7765
|
+
porcelain
|
|
7766
|
+
end
|
|
7767
|
+
|
|
7768
|
+
def self.convert_sql_server_azure_ad_to_plumbing(porcelain)
|
|
7769
|
+
if porcelain == nil
|
|
7770
|
+
return nil
|
|
7771
|
+
end
|
|
7772
|
+
plumbing = V1::SQLServerAzureAD.new()
|
|
7773
|
+
plumbing.bind_interface = (porcelain.bind_interface)
|
|
7774
|
+
plumbing.client_id = (porcelain.client_id)
|
|
7775
|
+
plumbing.database = (porcelain.database)
|
|
7776
|
+
plumbing.egress_filter = (porcelain.egress_filter)
|
|
7777
|
+
plumbing.healthy = (porcelain.healthy)
|
|
7778
|
+
plumbing.hostname = (porcelain.hostname)
|
|
7779
|
+
plumbing.id = (porcelain.id)
|
|
7780
|
+
plumbing.name = (porcelain.name)
|
|
7781
|
+
plumbing.override_database = (porcelain.override_database)
|
|
7782
|
+
plumbing.port = (porcelain.port)
|
|
7783
|
+
plumbing.port_override = (porcelain.port_override)
|
|
7784
|
+
plumbing.schema = (porcelain.schema)
|
|
7785
|
+
plumbing.secret = (porcelain.secret)
|
|
7786
|
+
plumbing.secret_store_id = (porcelain.secret_store_id)
|
|
7787
|
+
plumbing.subdomain = (porcelain.subdomain)
|
|
7788
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
|
7789
|
+
plumbing.tenant_id = (porcelain.tenant_id)
|
|
7790
|
+
plumbing
|
|
7791
|
+
end
|
|
7792
|
+
def self.convert_repeated_sql_server_azure_ad_to_plumbing(porcelains)
|
|
7793
|
+
items = Array.new
|
|
7794
|
+
porcelains.each do |porcelain|
|
|
7795
|
+
plumbing = convert_sql_server_azure_ad_to_plumbing(porcelain)
|
|
7796
|
+
items.append(plumbing)
|
|
7797
|
+
end
|
|
7798
|
+
items
|
|
7799
|
+
end
|
|
7800
|
+
|
|
7801
|
+
def self.convert_repeated_sql_server_azure_ad_to_porcelain(plumbings)
|
|
7802
|
+
items = Array.new
|
|
7803
|
+
plumbings.each do |plumbing|
|
|
7804
|
+
porcelain = convert_sql_server_azure_ad_to_porcelain(plumbing)
|
|
7805
|
+
items.append(porcelain)
|
|
7806
|
+
end
|
|
7807
|
+
items
|
|
7808
|
+
end
|
|
7809
|
+
def self.convert_sql_server_kerberos_ad_to_porcelain(plumbing)
|
|
7810
|
+
if plumbing == nil
|
|
7811
|
+
return nil
|
|
7812
|
+
end
|
|
7813
|
+
porcelain = SQLServerKerberosAD.new()
|
|
7814
|
+
porcelain.bind_interface = (plumbing.bind_interface)
|
|
7815
|
+
porcelain.database = (plumbing.database)
|
|
7816
|
+
porcelain.egress_filter = (plumbing.egress_filter)
|
|
7817
|
+
porcelain.healthy = (plumbing.healthy)
|
|
7818
|
+
porcelain.hostname = (plumbing.hostname)
|
|
7819
|
+
porcelain.id = (plumbing.id)
|
|
7820
|
+
porcelain.keytab = (plumbing.keytab)
|
|
7821
|
+
porcelain.krb_config = (plumbing.krb_config)
|
|
7822
|
+
porcelain.name = (plumbing.name)
|
|
7823
|
+
porcelain.override_database = (plumbing.override_database)
|
|
7824
|
+
porcelain.port = (plumbing.port)
|
|
7825
|
+
porcelain.port_override = (plumbing.port_override)
|
|
7826
|
+
porcelain.realm = (plumbing.realm)
|
|
7827
|
+
porcelain.schema = (plumbing.schema)
|
|
7828
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
|
7829
|
+
porcelain.server_spn = (plumbing.server_spn)
|
|
7830
|
+
porcelain.subdomain = (plumbing.subdomain)
|
|
7831
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
|
7832
|
+
porcelain.username = (plumbing.username)
|
|
7833
|
+
porcelain
|
|
7834
|
+
end
|
|
7835
|
+
|
|
7836
|
+
def self.convert_sql_server_kerberos_ad_to_plumbing(porcelain)
|
|
7837
|
+
if porcelain == nil
|
|
7838
|
+
return nil
|
|
7839
|
+
end
|
|
7840
|
+
plumbing = V1::SQLServerKerberosAD.new()
|
|
7841
|
+
plumbing.bind_interface = (porcelain.bind_interface)
|
|
7842
|
+
plumbing.database = (porcelain.database)
|
|
7843
|
+
plumbing.egress_filter = (porcelain.egress_filter)
|
|
7844
|
+
plumbing.healthy = (porcelain.healthy)
|
|
7845
|
+
plumbing.hostname = (porcelain.hostname)
|
|
7846
|
+
plumbing.id = (porcelain.id)
|
|
7847
|
+
plumbing.keytab = (porcelain.keytab)
|
|
7848
|
+
plumbing.krb_config = (porcelain.krb_config)
|
|
7849
|
+
plumbing.name = (porcelain.name)
|
|
7850
|
+
plumbing.override_database = (porcelain.override_database)
|
|
7851
|
+
plumbing.port = (porcelain.port)
|
|
7852
|
+
plumbing.port_override = (porcelain.port_override)
|
|
7853
|
+
plumbing.realm = (porcelain.realm)
|
|
7854
|
+
plumbing.schema = (porcelain.schema)
|
|
7855
|
+
plumbing.secret_store_id = (porcelain.secret_store_id)
|
|
7856
|
+
plumbing.server_spn = (porcelain.server_spn)
|
|
7857
|
+
plumbing.subdomain = (porcelain.subdomain)
|
|
7858
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
|
7859
|
+
plumbing.username = (porcelain.username)
|
|
7860
|
+
plumbing
|
|
7861
|
+
end
|
|
7862
|
+
def self.convert_repeated_sql_server_kerberos_ad_to_plumbing(porcelains)
|
|
7863
|
+
items = Array.new
|
|
7864
|
+
porcelains.each do |porcelain|
|
|
7865
|
+
plumbing = convert_sql_server_kerberos_ad_to_plumbing(porcelain)
|
|
7866
|
+
items.append(plumbing)
|
|
7867
|
+
end
|
|
7868
|
+
items
|
|
7869
|
+
end
|
|
7870
|
+
|
|
7871
|
+
def self.convert_repeated_sql_server_kerberos_ad_to_porcelain(plumbings)
|
|
7872
|
+
items = Array.new
|
|
7873
|
+
plumbings.each do |plumbing|
|
|
7874
|
+
porcelain = convert_sql_server_kerberos_ad_to_porcelain(plumbing)
|
|
7875
|
+
items.append(porcelain)
|
|
7876
|
+
end
|
|
7877
|
+
items
|
|
7878
|
+
end
|
|
7731
7879
|
def self.convert_ssh_to_porcelain(plumbing)
|
|
7732
7880
|
if plumbing == nil
|
|
7733
7881
|
return nil
|
data/lib/models/porcelain.rb
CHANGED
|
@@ -7389,6 +7389,180 @@ module SDM
|
|
|
7389
7389
|
end
|
|
7390
7390
|
end
|
|
7391
7391
|
|
|
7392
|
+
class SQLServerAzureAD
|
|
7393
|
+
# Bind interface
|
|
7394
|
+
attr_accessor :bind_interface
|
|
7395
|
+
|
|
7396
|
+
attr_accessor :client_id
|
|
7397
|
+
|
|
7398
|
+
attr_accessor :database
|
|
7399
|
+
# A filter applied to the routing logic to pin datasource to nodes.
|
|
7400
|
+
attr_accessor :egress_filter
|
|
7401
|
+
# True if the datasource is reachable and the credentials are valid.
|
|
7402
|
+
attr_accessor :healthy
|
|
7403
|
+
|
|
7404
|
+
attr_accessor :hostname
|
|
7405
|
+
# Unique identifier of the Resource.
|
|
7406
|
+
attr_accessor :id
|
|
7407
|
+
# Unique human-readable name of the Resource.
|
|
7408
|
+
attr_accessor :name
|
|
7409
|
+
|
|
7410
|
+
attr_accessor :override_database
|
|
7411
|
+
|
|
7412
|
+
attr_accessor :port
|
|
7413
|
+
|
|
7414
|
+
attr_accessor :port_override
|
|
7415
|
+
|
|
7416
|
+
attr_accessor :schema
|
|
7417
|
+
|
|
7418
|
+
attr_accessor :secret
|
|
7419
|
+
# ID of the secret store containing credentials for this resource, if any.
|
|
7420
|
+
attr_accessor :secret_store_id
|
|
7421
|
+
# Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
|
|
7422
|
+
attr_accessor :subdomain
|
|
7423
|
+
# Tags is a map of key, value pairs.
|
|
7424
|
+
attr_accessor :tags
|
|
7425
|
+
|
|
7426
|
+
attr_accessor :tenant_id
|
|
7427
|
+
|
|
7428
|
+
def initialize(
|
|
7429
|
+
bind_interface: nil,
|
|
7430
|
+
client_id: nil,
|
|
7431
|
+
database: nil,
|
|
7432
|
+
egress_filter: nil,
|
|
7433
|
+
healthy: nil,
|
|
7434
|
+
hostname: nil,
|
|
7435
|
+
id: nil,
|
|
7436
|
+
name: nil,
|
|
7437
|
+
override_database: nil,
|
|
7438
|
+
port: nil,
|
|
7439
|
+
port_override: nil,
|
|
7440
|
+
schema: nil,
|
|
7441
|
+
secret: nil,
|
|
7442
|
+
secret_store_id: nil,
|
|
7443
|
+
subdomain: nil,
|
|
7444
|
+
tags: nil,
|
|
7445
|
+
tenant_id: nil
|
|
7446
|
+
)
|
|
7447
|
+
@bind_interface = bind_interface == nil ? "" : bind_interface
|
|
7448
|
+
@client_id = client_id == nil ? "" : client_id
|
|
7449
|
+
@database = database == nil ? "" : database
|
|
7450
|
+
@egress_filter = egress_filter == nil ? "" : egress_filter
|
|
7451
|
+
@healthy = healthy == nil ? false : healthy
|
|
7452
|
+
@hostname = hostname == nil ? "" : hostname
|
|
7453
|
+
@id = id == nil ? "" : id
|
|
7454
|
+
@name = name == nil ? "" : name
|
|
7455
|
+
@override_database = override_database == nil ? false : override_database
|
|
7456
|
+
@port = port == nil ? 0 : port
|
|
7457
|
+
@port_override = port_override == nil ? 0 : port_override
|
|
7458
|
+
@schema = schema == nil ? "" : schema
|
|
7459
|
+
@secret = secret == nil ? "" : secret
|
|
7460
|
+
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
|
7461
|
+
@subdomain = subdomain == nil ? "" : subdomain
|
|
7462
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
|
7463
|
+
@tenant_id = tenant_id == nil ? "" : tenant_id
|
|
7464
|
+
end
|
|
7465
|
+
|
|
7466
|
+
def to_json(options = {})
|
|
7467
|
+
hash = {}
|
|
7468
|
+
self.instance_variables.each do |var|
|
|
7469
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
|
7470
|
+
end
|
|
7471
|
+
hash.to_json
|
|
7472
|
+
end
|
|
7473
|
+
end
|
|
7474
|
+
|
|
7475
|
+
class SQLServerKerberosAD
|
|
7476
|
+
# Bind interface
|
|
7477
|
+
attr_accessor :bind_interface
|
|
7478
|
+
|
|
7479
|
+
attr_accessor :database
|
|
7480
|
+
# A filter applied to the routing logic to pin datasource to nodes.
|
|
7481
|
+
attr_accessor :egress_filter
|
|
7482
|
+
# True if the datasource is reachable and the credentials are valid.
|
|
7483
|
+
attr_accessor :healthy
|
|
7484
|
+
|
|
7485
|
+
attr_accessor :hostname
|
|
7486
|
+
# Unique identifier of the Resource.
|
|
7487
|
+
attr_accessor :id
|
|
7488
|
+
|
|
7489
|
+
attr_accessor :keytab
|
|
7490
|
+
|
|
7491
|
+
attr_accessor :krb_config
|
|
7492
|
+
# Unique human-readable name of the Resource.
|
|
7493
|
+
attr_accessor :name
|
|
7494
|
+
|
|
7495
|
+
attr_accessor :override_database
|
|
7496
|
+
|
|
7497
|
+
attr_accessor :port
|
|
7498
|
+
|
|
7499
|
+
attr_accessor :port_override
|
|
7500
|
+
|
|
7501
|
+
attr_accessor :realm
|
|
7502
|
+
|
|
7503
|
+
attr_accessor :schema
|
|
7504
|
+
# ID of the secret store containing credentials for this resource, if any.
|
|
7505
|
+
attr_accessor :secret_store_id
|
|
7506
|
+
|
|
7507
|
+
attr_accessor :server_spn
|
|
7508
|
+
# Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
|
|
7509
|
+
attr_accessor :subdomain
|
|
7510
|
+
# Tags is a map of key, value pairs.
|
|
7511
|
+
attr_accessor :tags
|
|
7512
|
+
|
|
7513
|
+
attr_accessor :username
|
|
7514
|
+
|
|
7515
|
+
def initialize(
|
|
7516
|
+
bind_interface: nil,
|
|
7517
|
+
database: nil,
|
|
7518
|
+
egress_filter: nil,
|
|
7519
|
+
healthy: nil,
|
|
7520
|
+
hostname: nil,
|
|
7521
|
+
id: nil,
|
|
7522
|
+
keytab: nil,
|
|
7523
|
+
krb_config: nil,
|
|
7524
|
+
name: nil,
|
|
7525
|
+
override_database: nil,
|
|
7526
|
+
port: nil,
|
|
7527
|
+
port_override: nil,
|
|
7528
|
+
realm: nil,
|
|
7529
|
+
schema: nil,
|
|
7530
|
+
secret_store_id: nil,
|
|
7531
|
+
server_spn: nil,
|
|
7532
|
+
subdomain: nil,
|
|
7533
|
+
tags: nil,
|
|
7534
|
+
username: nil
|
|
7535
|
+
)
|
|
7536
|
+
@bind_interface = bind_interface == nil ? "" : bind_interface
|
|
7537
|
+
@database = database == nil ? "" : database
|
|
7538
|
+
@egress_filter = egress_filter == nil ? "" : egress_filter
|
|
7539
|
+
@healthy = healthy == nil ? false : healthy
|
|
7540
|
+
@hostname = hostname == nil ? "" : hostname
|
|
7541
|
+
@id = id == nil ? "" : id
|
|
7542
|
+
@keytab = keytab == nil ? "" : keytab
|
|
7543
|
+
@krb_config = krb_config == nil ? "" : krb_config
|
|
7544
|
+
@name = name == nil ? "" : name
|
|
7545
|
+
@override_database = override_database == nil ? false : override_database
|
|
7546
|
+
@port = port == nil ? 0 : port
|
|
7547
|
+
@port_override = port_override == nil ? 0 : port_override
|
|
7548
|
+
@realm = realm == nil ? "" : realm
|
|
7549
|
+
@schema = schema == nil ? "" : schema
|
|
7550
|
+
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
|
7551
|
+
@server_spn = server_spn == nil ? "" : server_spn
|
|
7552
|
+
@subdomain = subdomain == nil ? "" : subdomain
|
|
7553
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
|
7554
|
+
@username = username == nil ? "" : username
|
|
7555
|
+
end
|
|
7556
|
+
|
|
7557
|
+
def to_json(options = {})
|
|
7558
|
+
hash = {}
|
|
7559
|
+
self.instance_variables.each do |var|
|
|
7560
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
|
7561
|
+
end
|
|
7562
|
+
hash.to_json
|
|
7563
|
+
end
|
|
7564
|
+
end
|
|
7565
|
+
|
|
7392
7566
|
class SSH
|
|
7393
7567
|
attr_accessor :allow_deprecated_key_exchanges
|
|
7394
7568
|
# Bind interface
|
data/lib/strongdm.rb
CHANGED
|
@@ -29,7 +29,7 @@ module SDM #:nodoc:
|
|
|
29
29
|
DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
|
|
30
30
|
DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
|
|
31
31
|
API_VERSION = "2021-08-23"
|
|
32
|
-
USER_AGENT = "strongdm-sdk-ruby/3.
|
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/3.15.0"
|
|
33
33
|
private_constant :DEFAULT_MAX_RETRIES, :DEFAULT_BASE_RETRY_DELAY, :DEFAULT_MAX_RETRY_DELAY, :API_VERSION, :USER_AGENT
|
|
34
34
|
|
|
35
35
|
# Creates a new strongDM API client.
|
data/lib/svc.rb
CHANGED
data/lib/version
CHANGED
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: strongdm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- strongDM Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-05-
|
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grpc
|
|
@@ -81,8 +81,8 @@ files:
|
|
|
81
81
|
- "./.git/logs/HEAD"
|
|
82
82
|
- "./.git/logs/refs/heads/master"
|
|
83
83
|
- "./.git/logs/refs/remotes/origin/HEAD"
|
|
84
|
-
- "./.git/objects/pack/pack-
|
|
85
|
-
- "./.git/objects/pack/pack-
|
|
84
|
+
- "./.git/objects/pack/pack-f6e5d86cdaed2ee289cb0ee65c1f3fc483d1465c.idx"
|
|
85
|
+
- "./.git/objects/pack/pack-f6e5d86cdaed2ee289cb0ee65c1f3fc483d1465c.pack"
|
|
86
86
|
- "./.git/packed-refs"
|
|
87
87
|
- "./.git/refs/heads/master"
|
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|